8.2high

CVE-2017-5992

Improper Restriction of XML External Entity Reference in Openpyxl

Also known as GHSA-chqf-hx79-gxc6, PYSEC-2017-48

Published 9 y ago · modified 4 mo ago · JSON

CVSS
8.2
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.4%
percentile 73%
Public exploits
0
none known

Summary

Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.

Exploit prediction (EPSS)

1.41% probability of exploitation in the next 30 days, higher than 73% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.08.2CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H
NVD2.05.8AV:N/AC:M/Au:N/C:P/I:N/A:P
GitHub3.08.2CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H

Affected packages

EcosystemPackageAffectedFixed in
pypiopenpyxl
<2.4.2
<2.4.1
2.4.2
2.4.1

Classification

Weakness
  • CWE-611 Improper Restriction of XML External Entity Reference

References

  • bitbucket.org /openpyxl/openpyxl/issues/749 · x_refsource_CONFIRM, x_transferred
  • bugs.debian.org /cgi-bin/bugreport.cgi?bug=854442 · x_refsource_CONFIRM, x_transferred
  • bitbucket.org /openpyxl/openpyxl/commits/3b4905f428e1 · x_refsource_CONFIRM, x_transferred
  • openwall.com /lists/oss-security/2017/02/07/5 · x_refsource_CONFIRM, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2017-5992 · advisory
  • foss.heptapod.net /openpyxl/openpyxl · package
  • foss.heptapod.net /openpyxl/openpyxl/-/commit/7fe678fd89fd · web
  • foss.heptapod.net /openpyxl/openpyxl/-/issues/749 · web
  • github.com /advisories/GHSA-chqf-hx79-gxc6 · advisory
  • github.com /pypa/advisory-database/tree/main/vulns/openpyxl/PYSEC-2017-48.yaml · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.