{"id":"CVE-2017-1000208","aliases":["EUVD-2018-0659","GHSA-q7pf-qr96-2vq5"],"status":"published","title":"Deserialization of Untrusted Data in swagger-parser","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01705,"percentile":0.77468,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502"],"published":"2017-11-17T02:00:00Z","modified":"2026-10-20T10:48:07Z","fixes":[{"ecosystem":"Maven","package":"io.swagger:swagger-codegen","fixed_in":["2.2.2"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"io.swagger:swagger-parser","fixed_in":["1.0.31"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"io.swagger:swagger-codegen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"io.swagger:swagger-parser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.31"}]}]},{"source":"osv","ecosystem":"Maven","package":"io.swagger:swagger-codegen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2"}]}],"versions":["2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.2.0","2.2.1"]},{"source":"osv","ecosystem":"Maven","package":"io.swagger:swagger-parser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.31"}]}],"versions":["1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.17","1.0.18","1.0.19","1.0.2","1.0.20","1.0.21","1.0.22","1.0.23","1.0.24","1.0.25","1.0.26","1.0.27","1.0.28","1.0.29","1.0.3","1.0.30","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9"]}],"products":[{"vendor":"swagger","product":"swagger-codegen"},{"vendor":"swagger","product":"swagger-parser"}],"references":[{"url":"https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/swagger-api/swagger-parser/releases/tag/v1.0.31","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000208","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q7pf-qr96-2vq5","tags":["advisory"]},{"url":"https://github.com/swagger-api/swagger-parser","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2017-1000208","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2017-11-17T02:00:00Z","modified":"2024-08-05T21:53:07.295Z","updated_at":"2026-11-02T14:33:20.843976Z"}],"euvd":[{"id":"EUVD-2018-0659","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2017-11-17T02:00:00Z","modified":"2024-08-05T21:53:07Z","updated_at":"2026-11-03T02:23:03.593375Z"}],"ghsa":[{"id":"GHSA-q7pf-qr96-2vq5","title":"Deserialization of Untrusted Data in swagger-parser","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2018-10-19T16:46:41Z","modified":"2023-01-09T05:04:19Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:36:09.554044Z"}],"nvd":[{"id":"CVE-2017-1000208","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2017-11-17T02:29:01.05Z","modified":"2026-06-17T00:58:54.62Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:04:08.635428Z"}],"osv":[{"id":"CVE-2017-1000208","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2017-11-17T02:29:01.05Z","modified":"2026-10-20T10:48:07.800279566Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:03.851821Z"},{"id":"GHSA-q7pf-qr96-2vq5","title":"Deserialization of Untrusted Data in swagger-parser","description":"A vulnerability in Swagger-Parser's (version \u003c= 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 (\u003c= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.","status":"published","published":"2018-10-19T16:46:41Z","modified":"2023-11-08T03:58:44.108818Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:54.055966Z"}]}}
