CVE-2019-20477: PyYAML - Insecure Deserialization
- Cve: CVE-2019-20477
- Name: PyYAML - Insecure Deserialization
- Description: PyYAML 5.1 through 5.1.2 has insufficient restrictions on the load and load_all functions because of a class deserialization issue, e.g., Popen is a class in the subprocess module. NOTE: this issue exists because of an incomplete fix for CVE-2017-18342.
- Impact: Attackers can execute arbitrary code or commands through crafted YAML input, leading to remote code execution.
- Remediation: Update to the latest version of PyYAML where the issue is fixed.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.05114
- Epss percentile: 0.92586
- Assignee: [email protected]
- Published at: 2020-02-19T04:15:10Z
- Age in days: 2470
- Modified at: 2026-06-17T02:30:32Z
- Public exploits total: 1
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-20477
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.exploit-db.com/download/47655 | nvd | 2020-02-19 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pyyaml:pyyaml | >= 5.1, <= 5.1.2 | no | nvd | /v1/products/pyyaml/pyyaml |
| fedoraproject:fedora | = 31, = 30 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| yaml/pyyaml | package | yes | /v1/repositories/yaml/pyyaml |
Index
- Repositories: 1257
- Repositories high signal: 720
- Packages: 1
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-02-19
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports