PyPI: python-docx
CVE-2016-5851
Safety vulnerability ID: SFTY-20161221-17629
Safety legacy ID: pyup.io-26081
Python-docx 0.8.6 includes a fix for CVE-2016-5851: context-dependent attackers were able to conduct XML External Entity (XXE) attacks via a crafted document.
Overview
Improper Restriction of XML External Entity Reference in python-docx
Advisory
Python-docx 0.8.6 includes a fix for CVE-2016-5851: context-dependent attackers were able to conduct XML External Entity (XXE) attacks via a crafted document.
How to Fix
Upgrade
python-docx
to0.8.6
or higher.Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20161221-17629/CVE-2016-5851
- http://www.openwall.com/lists/oss-security/2016/06/28/7
- http://www.openwall.com/lists/oss-security/2016/06/28/8
- http://www.securityfocus.com/bid/91485
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5851
- https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst
- https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/
- https://nvd.nist.gov/vuln/detail/CVE-2016-5851
- https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst
- http://www.openwall.com/lists/oss-security/2016/06/28/7
- http://www.openwall.com/lists/oss-security/2016/06/28/8
- https://github.com/pypa/advisory-database/tree/main/vulns/python-docx/PYSEC-2016-21.yaml
- https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb
- https://web.archive.org/web/20170214030949/http://www.securityfocus.com/bid/91485
- https://github.com/advisories/GHSA-34wj-p5jm-2p96
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
- http://www.securityfocus.com/bid/91485
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
