{"answers":{"affected":"3 open source packages ship an affected version, including pyyaml and PyYAML. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-14343 in the wild and no public exploit code.","fix":"Upgrade pyyaml to 5.4 or later.","what":"CVE-2020-14343 is a critical code injection vulnerability in PyYAML, published on 9 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-14343 and fix it if it is affected.\n\nWhat it is: CVE-2020-14343 is a critical code injection vulnerability in PyYAML, published on 9 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-14343 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyyaml (PyPI): affected all versions; fixed in 5.4\n- pyyaml (PyPI): affected all versions; fixed in 5.4\n- PyYAML (PyPI): affected all versions; fixed in 5.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-14343/ (Markdown: https://insights.sbomify.com/CVE-2020-14343/index.md)","id":"CVE-2020-14343","markdown":"https://insights.sbomify.com/CVE-2020-14343/index.md","name":"CVE-2020-14343","record":{"aliases":["ALPINE-CVE-2020-14343","AZL-31782","CLSA-2025-1762733645","DEBIAN-CVE-2020-14343","GHSA-8q59-q68h-6hv4","MGASA-2021-0119","OESA-2021-1257","PYSEC-2021-142","RHSA-2021:2583","RLSA-2021:2583","SUSE-SU-2021:2818-1","SUSE-SU-2022:3231-1","SUSE-SU-2026:4402-1","UBUNTU-CVE-2020-14343","USN-4940-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python YAML library","requires_auth":"none","summary":"Attackers can execute arbitrary code by providing malicious YAML files to applications using the vulnerable PyYAML library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"communications_cloud_native_core_network_function_cloud_native_environment","vendor":"oracle"},{"product":"pyyaml","vendor":"pyyaml"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A vulnerability was discovered in the PyYAML library in versions before 5.4, 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. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.","ecosystems":["PyPI","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Containers 12","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Manager Client Tools 12","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9"],"exploits":{"exploitdb":0,"first_seen":"2022-04-19","github_poc":4,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-04-19T02:06:41Z","kind":"github_poc","ref":"https://github.com/j4k0m/loader-CVE-2020-14343","stars":3,"title":"A web application vulnerable to CVE-2020-14343 insecure deserialization leading to command execution in PyYAML package."},{"date":"2025-11-27T08:57:28Z","kind":"github_poc","ref":"https://github.com/Kairo-one/CVE-2020-14343-PyYAML","stars":0,"title":"CVE-2020-14343的payload"},{"date":"2026-01-29T12:49:46Z","kind":"github_poc","ref":"https://github.com/sijie52/yasa-cve-2020-14343","stars":0,"title":null},{"date":"2026-09-19T20:55:40Z","kind":"github_poc","ref":"https://github.com/saina15/cve-2020-14343-lab","stars":0,"title":"Controlled vulnerability research and reproduction lab for CVE-2020-14343 in PyYAML"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Input Validation in PyYAML","id":"CVE-2020-14343","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2020"},"n_packages":174,"n_references":5,"next":{"headline":"Integer overflow in libX11","id":"CVE-2020-14344"},"packages":[{"ecosystem":"PyPI","fixed":["5.4"],"introduced":["0"],"last_affected":[],"package":"PyYAML","purl":null,"source":"GHSA-8q59-q68h-6hv4"},{"ecosystem":"PyPI","fixed":["5.4"],"introduced":["0"],"last_affected":[],"package":"pyyaml","purl":"pkg:pypi/pyyaml","source":"GHSA-8q59-q68h-6hv4"},{"ecosystem":"PyPI","fixed":["5.4"],"introduced":["0"],"last_affected":[],"package":"pyyaml","purl":"pkg:pypi/pyyaml","source":"PYSEC-2021-142"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.29.14-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"Cython","purl":"pkg:rpm/redhat/Cython","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.29.14-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"Cython-debugsource","purl":"pkg:rpm/redhat/Cython-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.4.1-1.module+el8.4.0+10706+5c295a3e"],"introduced":["0"],"last_affected":[],"package":"PyYAML","purl":"pkg:rpm/redhat/PyYAML","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.4.1-1.module+el8.4.0+10706+5c295a3e"],"introduced":["0"],"last_affected":[],"package":"PyYAML-debugsource","purl":"pkg:rpm/redhat/PyYAML-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.7.0-10.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"babel","purl":"pkg:rpm/redhat/babel","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.6.8-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"mod_wsgi","purl":"pkg:rpm/redhat/mod_wsgi","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.17.3-5.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:rpm/redhat/numpy","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.17.3-5.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"numpy-debugsource","purl":"pkg:rpm/redhat/numpy-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.1-1.module+el8.4.0+9692+8e86ab84"],"introduced":["0"],"last_affected":[],"package":"python-PyMySQL","purl":"pkg:rpm/redhat/python-PyMySQL","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.0-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-asn1crypto","purl":"pkg:rpm/redhat/python-asn1crypto","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.13.2-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-cffi","purl":"pkg:rpm/redhat/python-cffi","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.13.2-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-cffi-debugsource","purl":"pkg:rpm/redhat/python-cffi-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.0.4-19.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-chardet","purl":"pkg:rpm/redhat/python-chardet","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.8-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-cryptography","purl":"pkg:rpm/redhat/python-cryptography","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.8-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-cryptography-debugsource","purl":"pkg:rpm/redhat/python-cryptography-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.8-6.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.10.3-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.4.1-5.module+el8.4.0+9001+fc421f6c"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.4.1-5.module+el8.4.0+9001+fc421f6c"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.1.1-6.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-markupsafe","purl":"pkg:rpm/redhat/python-markupsafe","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.1.1-6.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-markupsafe-debugsource","purl":"pkg:rpm/redhat/python-markupsafe-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.11-10.module+el8.4.0+9579+e9717e18"],"introduced":["0"],"last_affected":[],"package":"python-ply","purl":"pkg:rpm/redhat/python-ply","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.6.4-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-psutil","purl":"pkg:rpm/redhat/python-psutil","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.6.4-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-psutil-debugsource","purl":"pkg:rpm/redhat/python-psutil-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.8.4-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-psycopg2","purl":"pkg:rpm/redhat/python-psycopg2","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.8.4-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-psycopg2-debugsource","purl":"pkg:rpm/redhat/python-psycopg2-debugsource","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.19-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-pycparser","purl":"pkg:rpm/redhat/python-pycparser","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.7.1-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-pysocks","purl":"pkg:rpm/redhat/python-pysocks","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.22.0-9.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-requests","purl":"pkg:rpm/redhat/python-requests","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.25.7-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-urllib3","purl":"pkg:rpm/redhat/python-urllib3","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.33.6-5.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python-wheel","purl":"pkg:rpm/redhat/python-wheel","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.8.6-3.module+el8.4.0+9579+e9717e18"],"introduced":["0"],"last_affected":[],"package":"python38","purl":"pkg:rpm/redhat/python38","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.29.14-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python38-Cython","purl":"pkg:rpm/redhat/python38-Cython","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.29.14-4.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python38-Cython-debuginfo","purl":"pkg:rpm/redhat/python38-Cython-debuginfo","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.1-1.module+el8.4.0+9692+8e86ab84"],"introduced":["0"],"last_affected":[],"package":"python38-PyMySQL","purl":"pkg:rpm/redhat/python38-PyMySQL","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.0-3.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python38-asn1crypto","purl":"pkg:rpm/redhat/python38-asn1crypto","source":"RHSA-2021:2583"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.7.0-10.module+el8.4.0+8888+89bc7e79"],"introduced":["0"],"last_affected":[],"package":"python38-babel","purl":"pkg:rpm/redhat/python38-babel","source":"RHSA-2021:2583"}],"prev":{"headline":"Command injection in cifs-utils","id":"CVE-2020-14342"},"products":["PyYAML"],"published":"2021-02-09","related":[{"cvss_score":7.5,"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2020-7733","kev_date_added":null,"published":"2020-09-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by providing malicious YAML files to applications using the vulnerable PyYAML library.","url":"https://insights.sbomify.com/CVE-2020-14343/"}