CVE-2017-1000208
Description
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.
How to fix
- io.swagger:swagger-codegen2.2.2 or later
- io.swagger:swagger-parser1.0.31 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| swagger swagger-codegen | v ≤ 2.2.2 | — |
| swagger swagger-parser | v ≤ 1.0.30 | — |
| io.swagger:swagger-codegenMaven | v < 2.2.2 | 2.2.2 |
| io.swagger:swagger-parserMaven | v < 1.0.31 | 1.0.31 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.