CVE-2017-5992
HIGH 8.2CVSS 3.0Improper Restriction of XML External Entity Reference in Openpyxl
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Published
- 15 Feb 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-611
- Also known as
- GHSA-chqf-hx79-gxc6PYSEC-2017-48
- Sources
- NVDJSONOSV GHSA-chqf-hx79-gxc6JSONOSV PYSEC-2017-48JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:H | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.2 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.2 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | openpyxlcpe:2.3:a:python:openpyxl:2.4.1:*:*:*:*:*:*:* |
= 2.4.1 | |
| OSV | PyPI | openpyxl | < 2.4.2 | 2.4.2 |
| OSV | PyPI | openpyxl | < 2.4.1 | 2.4.1 |
References
- http://www.openwall.com/lists/oss-security/2017/02/07/5 · Mailing List, Third Party Advisory, WEB
- https://bitbucket.org/openpyxl/openpyxl/commits/3b4905f428e1 · Issue Tracking, Third Party Advisory, WEB
- https://bitbucket.org/openpyxl/openpyxl/issues/749 · Issue Tracking, Third Party Advisory, WEB
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854442 · Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-5992 · ADVISORY
- https://foss.heptapod.net/openpyxl/openpyxl · PACKAGE
- https://foss.heptapod.net/openpyxl/openpyxl/-/commit/7fe678fd89fd · WEB
- https://foss.heptapod.net/openpyxl/openpyxl/-/issues/749 · WEB
- https://github.com/advisories/GHSA-chqf-hx79-gxc6 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/openpyxl/PYSEC-2017-48.yaml · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 15 Feb 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Feb 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)