CVE-2017-5992
Improper 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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.2
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
CVE-2017-5992- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:P - Weakness
- CWE-611
- Updated
- 2026-11-02
CVE List No score
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
CVE-2017-5992- Updated
- 2026-11-02
EUVDEUVD-2017-0081 No score
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
EUVD-2017-0081- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-chqf-hx79-gxc6
6.4
Improper 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.
- Record
GHSA-chqf-hx79-gxc6- CVSS 4.0
- 6.4 Medium
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 - CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - Weakness
- CWE-611
- Updated
- 2026-11-02
OSV
8.2
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
CVE-2017-5992- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-5992
8.2
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
DEBIAN-CVE-2017-5992- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-chqf-hx79-gxc6
6.4
Improper 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.
- Record
GHSA-chqf-hx79-gxc6- CVSS 4.0
- 6.4 Medium
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 - CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - Weakness
- CWE-611
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-5992
8.2
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
UBUNTU-CVE-2017-5992- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11248-1 No score
python36-openpyxl-3.0.7-1.2 on GA media
These are all security issues fixed in the python36-openpyxl-3.0.7-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11248-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14028-1 No score
python310-openpyxl-3.1.3-1.1 on GA media
These are all security issues fixed in the python310-openpyxl-3.1.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14028-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:12023-1 No score
python313-openpyxl-3.1.5-1.8 on GA media
These are all security issues fixed in the python313-openpyxl-3.1.5-1.8 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:12023-1- Updated
- 2026-11-02
OSVPYSEC-2017-48 No score
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
- Record
PYSEC-2017-48- Updated
- 2026-11-02
OSVUSN-4821-1 No score
openpyxl vulnerability
It was discovered that openpyxl incorrectly handled certain documents. A remote attacker could possibly use this issue to cause a denial of service or other unspecified impact.
- Record
USN-4821-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openpyxlPyPI |
through 2.4.1 | 2.4.2 |
openpyxlDebian:12 |
before 2.3.0-3 | 2.3.0-3 |
openpyxlDebian:13 |
before 2.3.0-3 | 2.3.0-3 |
openpyxlDebian:14 |
before 2.3.0-3 | 2.3.0-3 |
openpyxlPyPI |
before 2.4.2, plus listed versions 1.1.01.1.51.1.61.1.71.2.3 Show 44 moreShow less1.5.01.5.11.5.21.5.31.5.41.5.51.5.61.5.71.5.81.6.11.6.21.7.01.8.01.8.11.8.21.8.31.8.41.8.51.8.62.0.22.0.32.0.42.0.52.1.02.1.12.1.22.1.32.1.42.1.52.2.02.2.12.2.22.2.32.2.42.2.52.2.62.3.02.3.12.3.22.3.32.3.42.3.52.4.02.4.1 |
2.4.2 |
openpyxlPyPI |
before 2.4.1, plus listed versions 1.1.01.1.51.1.61.1.71.2.3 Show 43 moreShow less1.5.01.5.11.5.21.5.31.5.41.5.51.5.61.5.71.5.81.6.11.6.21.7.01.8.01.8.11.8.21.8.31.8.41.8.51.8.62.0.22.0.32.0.42.0.52.1.02.1.12.1.22.1.32.1.42.1.52.2.02.2.12.2.22.2.32.2.42.2.52.2.62.3.02.3.12.3.22.3.32.3.42.3.52.4.0 |
2.4.1 |
openpyxlUbuntu:Pro:16.04:LTS |
before 2.3.0-1ubuntu0.1~esm1, plus listed versions 2.3.0~b1-1ubuntu12.3.0-1 |
2.3.0-1ubuntu0.1~esm1 |
python-openpyxlopenSUSE:Tumbleweed |
before 3.1.3-1.1 | 3.1.3-1.1 |
python-openpyxlopenSUSE:Tumbleweed |
before 3.1.5-1.8 | 3.1.5-1.8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-5992 is a high vulnerability (CVSS 8.2) in Python Openpyxl, published February 15, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.41%, the 72nd percentile. Fixed in openpyxl 2.4.2.
References
bitbucket.org/openpyxl/openpyxl/issues/749
bugs.debian.org/cgi-bin/bugreport.cgi?bug=854442
bitbucket.org/openpyxl/openpyxl/commits/3b4905f428e1
openwall.com/lists/oss-security/2017/02/07/5
nvd.nist.gov/vuln/detail/CVE-2017-5992
foss.heptapod.net/openpyxl/openpyxl/-/commit/7fe678fd89fd
Show 9 moreShow less
foss.heptapod.net/openpyxl/openpyxl/-/issues/749
github.com/advisories/GHSA-chqf-hx79-gxc6
github.com/pypa/advisory-database/tree/main/vulns/openpyxl/PYSEC-2017-48.yaml
security-tracker.debian.org/tracker/CVE-2017-5992
foss.heptapod.net/openpyxl/openpyxl
ubuntu.com/security/CVE-2017-5992
cve.org/CVERecord?id=CVE-2017-5992
ubuntu.com/security/notices/USN-4821-1
suse.com/security/cve/CVE-2017-5992