CWE
20
Advisory Published
CVE Published
CVE Published
Advisory Published
Updated

CVE-2020-1747: Input Validation

First published: Wed Feb 26 2020(Updated: )

A vulnerability was discovered in the PyYAML library in versions before 5.3.1, 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/new constructor.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Pyyaml Pyyaml>=5.1<5.3.1
Fedoraproject Fedora=30
Fedoraproject Fedora=31
Fedoraproject Fedora=32
Fedoraproject Fedora=33
openSUSE Leap=15.1
Oracle Communications Cloud Native Core Network Function Cloud Native Environment=22.1.0
redhat/PyYAML<5.3.1
5.3.1
pip/pyyaml>=5.1b7<5.3.1
5.3.1

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-2020-1747?

    CVE-2020-1747 is a vulnerability in the PyYAML library that can allow a remote attacker to execute arbitrary code on the system.

  • What is the severity level of CVE-2020-1747?

    CVE-2020-1747 has a severity level of critical.

  • How does CVE-2020-1747 affect PyYAML?

    CVE-2020-1747 affects PyYAML versions before 5.3.1.

  • How can an attacker exploit CVE-2020-1747?

    An attacker can exploit CVE-2020-1747 by processing untrusted YAML files through the full_load method or with the FullLoader loader.

  • How can I fix CVE-2020-1747?

    To fix CVE-2020-1747, update PyYAML to version 5.3.1 or later.

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