CVE-2017-1000207
HIGH 8.8CVSS 3.0Deserialization of Untrusted Data in swagger-codegen
A vulnerability in Swagger-Parser's version <= 1.0.30 and Swagger codegen version <= 2.2.2 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.
- Published
- 27 Nov 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-vgvf-9jh3-fg75
- Sources
- NVDJSONOSV GHSA-vgvf-9jh3-fg75JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | swagger | swagger-codegencpe:2.3:a:swagger:swagger-codegen:*:*:*:*:*:*:*:* |
<= 2.2.2 | |
| NVD | swagger | swagger-parsercpe:2.3:a:swagger:swagger-parser:*:*:*:*:*:*:*:* |
<= 1.0.30 | |
| OSV | Maven | io.swagger:swagger-parser | < 1.0.31 | 1.0.31 |
| OSV | Maven | io.swagger:swagger-codegen | < 2.2.2 | 2.2.2 |
References
- https://github.com/swagger-api/swagger-parser/pull/481 · Issue Tracking, WEB
- https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000207 · ADVISORY
- https://github.com/advisories/GHSA-vgvf-9jh3-fg75 · ADVISORY
- https://github.com/swagger-api/swagger-parser · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 27 Nov 2017)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Oct 2018)