{"id":"GHSA-34wj-p5jm-2p96","summary":"Improper Restriction of XML External Entity Reference in python-docx","details":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.","aliases":["CVE-2016-5851","PYSEC-2016-21"],"modified":"2024-10-25T21:23:06.511961Z","published":"2022-05-13T01:06:10Z","database_specific":{"nvd_published_at":"2016-12-21T22:59:00Z","cwe_ids":["CWE-611"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-07-06T19:44:36Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5851"},{"type":"WEB","url":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-34wj-p5jm-2p96"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/python-docx/PYSEC-2016-21.yaml"},{"type":"PACKAGE","url":"https://github.com/python-openxml/python-docx"},{"type":"WEB","url":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ"},{"type":"WEB","url":"https://web.archive.org/web/20170214030949/http://www.securityfocus.com/bid/91485"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2016/06/28/7"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2016/06/28/8"},{"type":"WEB","url":"http://www.securityfocus.com/bid/91485"}],"affected":[{"package":{"name":"python-docx","ecosystem":"PyPI","purl":"pkg:pypi/python-docx"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6"}]}],"versions":["0.3.0a1","0.3.0a2","0.3.0a3","0.3.0a4","0.3.0a5","0.3.0dev1","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5"],"database_specific":{"last_known_affected_version_range":"\u003c= 0.8.5","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-34wj-p5jm-2p96/GHSA-34wj-p5jm-2p96.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}