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

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

Name Vendor Start Version End Version
Openpyxl Python 2.4.1 (including) 2.4.1 (including)
Openpyxl Ubuntu artful *
Openpyxl Ubuntu esm-apps/xenial *
Openpyxl Ubuntu precise *
Openpyxl Ubuntu upstream *
Openpyxl Ubuntu xenial *
Openpyxl Ubuntu yakkety *
Openpyxl Ubuntu zesty *

Potential Mitigations

References