SecurityContext

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

IdName
CWE-502Deserialization of Untrusted Data

Public exploits

UrlSourceAdded date
https://www.exploit-db.com/download/47655nvd2020-02-19

References

Same in every row:

  • Source: nvd
UrlTags
https://www.exploit-db.com/download/47655Exploit, Third Party Advisory, VDB Entry
https://github.com/yaml/pyyaml/blob/master/CHANGESRelease Notes, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/

Products

ProductAffectedPlatform boundSourcesUrl
pyyaml:pyyaml>= 5.1, <= 5.1.2nonvd/v1/products/pyyaml/pyyaml
fedoraproject:fedora= 31, = 30nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
yaml/pyyamlpackageyes/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