HIGH 8.8

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)

ArtifactAffected versionsFixed in
io.swagger » swagger-codegen
< 2.2.2
2.2.2
io.swagger » swagger-parser
< 1.0.31
1.0.31

Blast radius

2affected artifacts
43affected versions
319dependent artifacts (est.)
9,251dependent versions

46% of the dependent artifacts (147) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,713
2 hops
4,645
3 hops
1,305
4 hops
399
5 hops
115
6 hops
74

Most used dependents

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.