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
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208 | nvd | Third Party Advisory |
| https://github.com/swagger-api/swagger-parser/releases/tag/v1.0.31 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| swagger:swagger-codegen | <= 2.2.2 | no | nvd | /v1/products/swagger/swagger-codegen |
| swagger:swagger-parser | <= 1.0.30 | no | nvd | /v1/products/swagger/swagger-parser |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| swagger-api/swagger-parser | package, releases | yes | /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