Advisory

PYSEC-2026-2058

Also known as: CVE-2025-11058, GHSA-cfmv-h8fx-85m7

Summary

xml2rfc has an arbitrary file read vulnerability

Details

Impact
When generating PDF files, this vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link element into the XML.

Workarounds
Test untrusted input with link elements with rel="attachment" before processing.

Credits
This vulnerability was reported by Mohamed Ouad from Doyensec.

Severity

Not rated by the source.

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

xml2rfc

PyPI · All systems

Affected

  • introduced 0, fixed 3.30.1 (ecosystem)

Fixed versions

3.30.1

Fix

  • Fixed version 3.30.1
    pip install --upgrade xml2rfc==3.30.1

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: PyPA Advisory Database · CC BY 4.0

Sources & licences