{"answers":{"affected":"3 open source packages ship an affected version, including openpyxl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-5992 in the wild and no public exploit code.","fix":"Upgrade openpyxl to a fixed version for your release line: 2.4.1 or 2.4.2.","what":"CVE-2017-5992 is a high-severity vulnerability in n/a, published on 15 Feb 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-5992 and fix it if it is affected.\n\nWhat it is: CVE-2017-5992 is a high-severity vulnerability in n/a, published on 15 Feb 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-5992 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openpyxl (PyPI): affected all versions; fixed in 2.4.1\n- openpyxl (PyPI): affected all versions; fixed in 2.4.2\n- openpyxl (PyPI): affected all versions; fixed in 2.4.2\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-2017-5992/ (Markdown: https://insights.sbomify.com/CVE-2017-5992/index.md)","id":"CVE-2017-5992","markdown":"https://insights.sbomify.com/CVE-2017-5992/index.md","name":"CVE-2017-5992","record":{"aliases":["DEBIAN-CVE-2017-5992","GHSA-chqf-hx79-gxc6","PYSEC-2017-48","UBUNTU-CVE-2017-5992","USN-4821-1","openSUSE-SU-2024:11248-1","openSUSE-SU-2024:14028-1","openSUSE-SU-2026:12023-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python Excel library","requires_auth":"none","summary":"Remote attackers can exploit external entity resolution in Openpyxl to read sensitive files or cause denial of service via crafted Excel documents.","user_interaction":"required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"openpyxl","vendor":"python"}],"cvss":{"score":8.2,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Restriction of XML External Entity Reference in Openpyxl","id":"CVE-2017-5992","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xxe","year":"2017"},"n_packages":5,"n_references":4,"next":{"headline":"Denial of service in n/a","id":"CVE-2017-5993"},"packages":[{"ecosystem":"PyPI","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"openpyxl","purl":"pkg:pypi/openpyxl","source":"PYSEC-2017-48"},{"ecosystem":"PyPI","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"openpyxl","purl":null,"source":"GHSA-chqf-hx79-gxc6"},{"ecosystem":"PyPI","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"openpyxl","purl":"pkg:pypi/openpyxl","source":"GHSA-chqf-hx79-gxc6"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.1.3-1.1"],"introduced":["0"],"last_affected":[],"package":"python-openpyxl","purl":"pkg:rpm/opensuse/python-openpyxl\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14028-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.1.5-1.8"],"introduced":["0"],"last_affected":[],"package":"python-openpyxl","purl":"pkg:rpm/opensuse/python-openpyxl\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12023-1"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2017-5991"},"products":["n/a"],"published":"2017-02-15","related":[],"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":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Remote attackers can exploit external entity resolution in Openpyxl to read sensitive files or cause denial of service via crafted Excel documents.","url":"https://insights.sbomify.com/CVE-2017-5992/"}