CVE-2025-11058
xml2rfc has an arbitrary file read vulnerability
Description
### 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](https://doyensec.com/).
How to fix CVE-2025-11058
To remediate CVE-2025-11058, upgrade the affected package to a fixed version below.
- PyPI/xml2rfc—upgrade to 3.30.1 or later
Is CVE-2025-11058 being exploited?
No exploitation signal available. Neither CISA KEV nor a current EPSS score has been published for CVE-2025-11058.
Affected packages (1)
- from 0, < 3.30.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |