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.
Remediation
References
https://github.com/swagger-api/swagger-parser/pull/481
https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208
Related Vulnerabilities
CVE-2017-4995 Vulnerability in maven package org.springframework.security:spring-security-core
CVE-2019-1003060 Vulnerability in maven package org.jenkins-ci.plugins:zap
CVE-2017-16014 Vulnerability in npm package http-proxy
CVE-2017-16006 Vulnerability in maven package org.webjars:remarkable
CVE-2019-17554 Vulnerability in maven package org.apache.olingo:odata-server-api