CVE-2017-1000208 json
Deserialization of Untrusted Data in swagger-parser
published 8y ago modified 4mo ago also GHSA-q7pf-qr96-2vq5 , EUVD-2018-0659
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven io.swagger:swagger-codegen 2.2.2
- maven io.swagger:swagger-parser 1.0.31
Is CVE-2017-1000208 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.71% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | io.swagger:swagger-codegen | <2.2.2 |
2.2.2 |
| maven | io.swagger:swagger-parser | <1.0.31 |
1.0.31 |
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
lgtm.com
/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208
web, third-party-advisory
-
github.com
/swagger-api/swagger-parser/releases/tag/v1.0.31
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2017-1000208
advisory
-
github.com
/advisories/GHSA-q7pf-qr96-2vq5
advisory
-
github.com
/swagger-api/swagger-parser
package
Sources
- CVE List CVE-2017-1000208
- GitHub Advisory GHSA-q7pf-qr96-2vq5
- NVD CVE-2017-1000208
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.