요약
- CVE-2023-27476은(는) owslib, owslib (osgeo)에 영향을 주는 높음 (CVSS 7.5) 취약점입니다.
- 향후 30일 내 악용 확률(EPSS): 0.98%, 전체 취약점의 62.2%보다 높음.
- 조치: 0.28.1 이상으로 업데이트하세요.
| Package | Affected versions | Patched versions |
|---|
| owslib PyPI | < 0.28.1
| 0.28.1
|
| owslib | < 0.28.1
| 0.28.1
|
Description
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
Workarounds
patch_well_known_namespaces(etree)
etree.set_default_parser(
parser=etree.XMLParser(resolve_entities=False)
)
References
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free