Live threats

All CVEs / Swagger

CVE-2017-1000208Swagger-codegen

High 8.8 No auth needed

Priority
68
CVSS 3.0
8.8
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Nov 17, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

A vulnerability in Swagger-Parser's (version <= 1.0.30) yaml parsing functionality results in arbitrary code being executed when a maliciously crafted yaml Open-API specification is parsed. This in particular, affects the 'generate' and 'validate' command in swagger-codegen (<= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.

Original NVD text.

What to do

  1. Apply the vendor's security update for Swagger-codegen.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven io.swagger:swagger-codegen < 2.2.2 2.2.2 —
Maven io.swagger:swagger-parser < 1.0.31 1.0.31 —

Per OSV / GitHub Advisories (GHSA-q7pf-qr96-2vq5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
swaggerswagger-codegen≤ 2.2.2
swaggerswagger-parser≤ 1.0.30

Official sources

References

Links published by the sources. Open them with care.