Lucene search

K
osvGoogleOSV:GHSA-8H9C-R582-MGGC
HistoryMar 07, 2023 - 8:41 p.m.

OWSLib vulnerable to XML External Entity (XXE) Injection

2023-03-0720:41:36
Google
osv.dev
15
owslib
xml parser
xxe injection
lxml
xml.etree
entity resolution
arbitrary file reads
xml handling
patches
workarounds
ghsl-2022-131
security advisory

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

EPSS

0.002

Percentile

56.1%

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

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

EPSS

0.002

Percentile

56.1%