CVE Vulnerabilities

CVE-2017-5992

Improper Restriction of XML External Entity Reference

Published: Feb 15, 2017 | Modified: Apr 20, 2025
CVSS 3.x
8.2
HIGH
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

Weakness

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Affected Software

NameVendorStart VersionEnd Version
OpenpyxlPython2.4.1 (including)2.4.1 (including)
OpenpyxlUbuntuartful*
OpenpyxlUbuntuesm-apps/xenial*
OpenpyxlUbuntuprecise*
OpenpyxlUbuntuupstream*
OpenpyxlUbuntuxenial*
OpenpyxlUbuntuyakkety*
OpenpyxlUbuntuzesty*

Potential Mitigations

References