Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. openpyxl
  4. ›
  5. CVE-2017-5992

CVE-2017-5992: Improper Restriction of XML External Entity Reference in Openpyxl

May 17, 2022 (updated October 7, 2024)

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

References

  • bitbucket.org/openpyxl/openpyxl/commits/3b4905f428e1
  • bitbucket.org/openpyxl/openpyxl/issues/749
  • bugs.debian.org/cgi-bin/bugreport.cgi?bug=854442
  • foss.heptapod.net/openpyxl/openpyxl
  • foss.heptapod.net/openpyxl/openpyxl/-/commit/7fe678fd89fd
  • 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
  • nvd.nist.gov/vuln/detail/CVE-2017-5992

Code Behaviors & Features

Detect and mitigate CVE-2017-5992 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.2

Fixed versions

  • 2.4.2

Solution

Upgrade to version 2.4.2 or above.

Impact 8.2 HIGH

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H

Learn more about CVSS

Weakness

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

Source file

pypi/openpyxl/CVE-2017-5992.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:36 +0000.