Advisory

GHSA-chqf-hx79-gxc6

Also known as: CVE-2017-5992, PYSEC-2017-48

Summary

Improper Restriction of XML External Entity Reference in Openpyxl

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 02:58 UTC
Modified
2024-10-07 21:35 UTC

Affected packages and fixes

openpyxl

PyPI · All systems

Affected

  • introduced 0, fixed 2.4.2 (ecosystem)

Fixed versions

2.4.2

Fix

  • Fixed version 2.4.2
    pip install --upgrade openpyxl==2.4.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences