CVE-2017-1000207
Deserialization of Untrusted Data in swagger-codegen
Description
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.swagger » swagger-codegen | < 2.2.2 | 2.2.2 |
| io.swagger » swagger-parser | < 1.0.31 | 1.0.31 |
Blast radius
46% of the dependent artifacts (147) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,713 |
| 2 hops | 4,645 |
| 3 hops | 1,305 |
| 4 hops | 399 |
| 5 hops | 115 |
| 6 hops | 74 |
Most used dependents
- io.swagger » swagger-codegen-maven-plugin165 usages
- com.networknt » utility149 usages
- com.networknt » client148 usages
- com.networknt » status84 usages
- com.networknt » handler83 usages
- com.networknt » metrics75 usages
- com.networknt » body74 usages
- com.networknt » correlation71 usages
- com.networknt » info68 usages
- com.networknt » health63 usages
- com.atlassian.oai » swagger-request-validator-core60 usages
- io.swagger » swagger-codegen55 usages
- com.networknt » rpc-router54 usages
- com.networknt » cors52 usages
- com.networknt » rpc-security50 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
