{"id":"CVE-2017-1000207","published":"2017-11-27T15:00:00Z","modified":"2024-08-05T21:53:07Z","title":"A vulnerability in Swagger-Parser's version <= 1.0.30 and Swagger codegen version <= 2.2.2 yaml parsing functionality…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01623,"percentile":0.76699,"provenance":"source"},"cwes":[],"references":[{"url":"https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208","tags":["x_refsource_MISC"]},{"url":"https://github.com/swagger-api/swagger-parser/pull/481","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":15.34}]},"affected":[{"ecosystem":"Maven","package":"io.swagger:swagger-parser","vulnerableRanges":["<1.0.31"],"patched":["1.0.31"],"from":["GHSA-vgvf-9jh3-fg75"],"provenance":"source"},{"ecosystem":"Maven","package":"io.swagger:swagger-codegen","vulnerableRanges":["<2.2.2"],"patched":["2.2.2"],"from":["GHSA-vgvf-9jh3-fg75"],"provenance":"source"}],"summary":{"text":"A flaw in the YAML parsing functionality of Swagger-Parser (version 1.0.30 and earlier) and Swagger Codegen (version 2.2.2 and earlier) allows arbitrary code to be executed when a maliciously crafted YAML OpenAPI specification is parsed. An attacker who supplies such a specification to the 'generate' or 'validate' command in Swagger Codegen can execute arbitrary code, provided a user runs one of those commands against the crafted file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:42Z"},"euvd":{"id":"EUVD-2018-0697","exploited":false,"provenance":"source"}}