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.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:swagger:swagger-codegen:*:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"last_affected": "2.2.2"
}
],
"source": "CPE_RANGE"
}
],
"vendor_product": "swagger:swagger-codegen"
},
{
"cpes": [
"cpe:2.3:a:swagger:swagger-parser:*:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"last_affected": "1.0.30"
}
],
"source": "CPE_RANGE"
}
],
"vendor_product": "swagger:swagger-parser"
},
{
"extracted_events": [
{
"range": [
{
"last_affected": "1.0.30"
}
],
"source": "DESCRIPTION"
}
]
}
]
}{
"extracted_events": [
{
"original_tag": "v1.0.31",
"range": [
{
"fixed": "67a2226436627c7c6de924de792b6b2ed09faa46"
}
],
"source": "REFERENCES_TAG"
}
]
}