SecurityContext

CVE-2017-1000208: Swagger-Parser - Command Injection

  • Cve: CVE-2017-1000208
  • Name: Swagger-Parser - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary code on the system by crafting malicious yaml specifications, leading to full system compromise.
  • Remediation: Update Swagger-Parser to the latest version where the vulnerability is fixed, or apply security patches that address this issue.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.01705
  • Epss percentile: 0.77879
  • Assignee: [email protected]
  • Published at: 2017-11-17T02:29:01Z
  • Age in days: 3294
  • Modified at: 2026-06-17T00:58:54Z
  • References total: 2
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-1000208
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-502Deserialization of Untrusted Data

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208nvdThird Party Advisory
https://github.com/swagger-api/swagger-parser/releases/tag/v1.0.31nvdRelease Notes

Products

ProductAffectedPlatform boundSourcesUrl
swagger:swagger-codegen<= 2.2.2nonvd/v1/products/swagger/swagger-codegen
swagger:swagger-parser<= 1.0.30nonvd/v1/products/swagger/swagger-parser

Projects

RepositoryLink kindsIndexedUrl
swagger-api/swagger-parserpackage, releasesyes/v1/repositories/swagger-api/swagger-parser

Index

  • Repositories: 3
  • Repositories high signal: 1
  • Checked, none or zero: packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts