CWE
502
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2019-20477

First published: Mon Nov 18 2019(Updated: )

A vulnerability was discovered in the PyYAML library, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/apply constructor.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Pyyaml Pyyaml>=5.1<=5.1.2
Fedoraproject Fedora=30
Fedoraproject Fedora=31
redhat/pyYAML<5.2
5.2
pip/pyyaml>=5.1<5.2
5.2

Remedy

Use `yaml.safe_load` or the SafeLoader loader when you parse untrusted input.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2019-20477?

    CVE-2019-20477 is a vulnerability in the PyYAML library that allows arbitrary code execution when processing untrusted YAML files.

  • What software versions are affected by CVE-2019-20477?

    PyYAML versions 5.1 through 5.1.2 are affected by CVE-2019-20477.

  • How severe is CVE-2019-20477?

    CVE-2019-20477 has a severity rating of 9.8 (Critical).

  • How can I fix CVE-2019-20477?

    To fix CVE-2019-20477, upgrade to PyYAML version 5.2.

  • Where can I find more information about CVE-2019-20477?

    You can find more information about CVE-2019-20477 at the following references: [Link 1](https://access.redhat.com/security/cve/CVE-2017-18342), [Link 2](https://github.com/yaml/pyyaml/blob/master/CHANGES), [Link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1806010).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203