8.2
CWE
611
Advisory Published
CVE Published
Updated

CVE-2023-27476: XML External Entity (XXE) Injection in OWSLib

First published: Tue Mar 07 2023(Updated: )

### Impact OWSLib's XML parser (which supports both `lxml` and `xml.etree`) does not disable entity resolution for `lxml`, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase. ### Patches - Use only lxml for XML handling, adding `resolve_entities=False` to `lxml`'s parser: https://github.com/geopython/OWSLib/pull/863 ### Workarounds ```python patch_well_known_namespaces(etree) etree.set_default_parser( parser=etree.XMLParser(resolve_entities=False) ) ``` ### References - [`GHSL-2022-131`](https://securitylab.github.com/advisories/GHSL-2022-131_OWSLib/)

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Osgeo Owslib<0.28.1
debian/owslib<=0.17.1-1
0.17.1-1+deb10u1
0.23.0-1+deb11u1
0.27.2-3
0.29.2-1
pip/OWSLib<0.28.1
0.28.1

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.

Frequently Asked Questions

  • What is CVE-2023-27476?

    CVE-2023-27476 is a vulnerability in the OWSLib Python package that allows arbitrary file reads from the file system.

  • How does CVE-2023-27476 occur?

    CVE-2023-27476 occurs because OWSLib's XML parser does not disable entity resolution.

  • What is the severity of CVE-2023-27476?

    CVE-2023-27476 has a severity rating of 7.5 (high).

  • Which versions of OWSLib are affected by CVE-2023-27476?

    OWSLib versions up to and including 0.28.1 are affected by CVE-2023-27476.

  • How can I fix CVE-2023-27476?

    To fix CVE-2023-27476, update OWSLib to version 0.29.2-1 or higher.

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