CVE-2023-27476
XML External Entity (XXE) Injection in OWSLib
Reported by github_m · Published March 7, 2023
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| geopython | OWSLib | < 0.28.1 |
| geopython | OWSLib | 0 |
| PyPI | owslib | 0 |
Timeline
- Mar 7, 2023 CVE Published
- Mar 8, 2023 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Feb 19, 2026 Distribution Patch
- Feb 19, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-27476
vulnetix vdb fixes CVE-2023-27476
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-27476/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc x_refsource_CONFIRM
- https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2022-131_owslib/ x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-27476 advisory
- https://github.com/advisories/GHSA-8h9c-r582-mggc advisory
- https://github.com/geopython/OWSLib/pull/863 patch
- https://github.com/geopython/OWSLib url
- https://github.com/geopython/OWSLib/releases/tag/0.28.1 url
- https://github.com/pypa/advisory-database/tree/main/vulns/owslib/PYSEC-2023-86.yaml advisory
- https://securitylab.github.com/advisories/GHSL-2022-131_owslib advisory