{"answers":{"affected":"3 open source packages ship an affected version, including owslib and OWSLib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-27476 in the wild and no public exploit code.","fix":"Upgrade owslib to 0.28.1 or later.","what":"CVE-2023-27476 is a high-severity vulnerability in geopython OWSLib, published on 7 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-27476 and fix it if it is affected.\n\nWhat it is: CVE-2023-27476 is a high-severity vulnerability in geopython OWSLib, published on 7 Mar 2023. 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-2023-27476 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- owslib (PyPI): affected all versions; fixed in 0.28.1\n- owslib (PyPI): affected all versions; fixed in 0.28.1\n- OWSLib (PyPI): affected all versions; fixed in 0.28.1\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-2023-27476/ (Markdown: https://insights.sbomify.com/CVE-2023-27476/index.md)","id":"CVE-2023-27476","markdown":"https://insights.sbomify.com/CVE-2023-27476/index.md","name":"CVE-2023-27476","record":{"aliases":["DEBIAN-CVE-2023-27476","DLA-3470-1","DSA-5426-1","GHSA-8h9c-r582-mggc","MGASA-2023-0112","PYSEC-2023-86","UBUNTU-CVE-2023-27476"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python OGC client library","requires_auth":"none","summary":"An attacker can read arbitrary files via XML External Entity injection in OWSLib's XML parser, affecting users of this Python library.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"owslib","vendor":"osgeo"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service interface standards, and their related content models. OWSLib's XML parser (which supports both `lxml` and `xml.etree`) does not disable entity resolution, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase. This issue has been addressed in version 0.28.1. All users are advised to upgrade. The only known workaround is to patch the library manually. See `GHSA-8h9c-r582-mggc` for details.","ecosystems":["PyPI"],"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":"XML External Entity (XXE) Injection in OWSLib","id":"CVE-2023-27476","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xxe","year":"2023"},"n_packages":3,"n_references":5,"next":{"headline":"wasmtime vulnerable to miscompilation of `i8x16.select` with the same inputs on x86_64","id":"CVE-2023-27477"},"packages":[{"ecosystem":"PyPI","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"OWSLib","purl":null,"source":"GHSA-8h9c-r582-mggc"},{"ecosystem":"PyPI","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"owslib","purl":"pkg:pypi/owslib","source":"GHSA-8h9c-r582-mggc"},{"ecosystem":"PyPI","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"owslib","purl":"pkg:pypi/owslib","source":"PYSEC-2023-86"}],"prev":{"headline":"Goutil vulnerable to path traversal when unzipping files","id":"CVE-2023-27475"},"products":["OWSLib"],"published":"2023-03-07","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":"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["geopython"]},"summary":"An attacker can read arbitrary files via XML External Entity injection in OWSLib's XML parser, affecting users of this Python library.","url":"https://insights.sbomify.com/CVE-2023-27476/"}