# CVE-2025-11058: xml2rfc has an arbitrary file read vulnerability

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-08-26T17:45:11.000Z
- Modified: 2026-07-07T17:56:37.537Z
- Also known as: GHSA-cfmv-h8fx-85m7, PYSEC-2026-2058
- Weaknesses: CWE-22

## 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/).

(As written by GitHub Advisory Database.)

## Affected

- xml2rfc (PyPI): before 3.30.1

## Every score

- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cfmv-h8fx-85m7> (web)
- <https://github.com/ietf-tools/xml2rfc/commit/f2b245bc0aeeac0667c8f74e976c466c5991f0e4> (web)
- <https://github.com/ietf-tools/xml2rfc> (package)
- <https://pypi.org/project/xml2rfc> (package)
- <https://github.com/advisories/GHSA-cfmv-h8fx-85m7> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-11058> (advisory)

## Sources

- GitHub Advisory Database: [GHSA-cfmv-h8fx-85m7](https://github.com/advisories/GHSA-cfmv-h8fx-85m7), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-2058](https://osv.dev/vulnerability/PYSEC-2026-2058), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-11058 · Whole record: https://cve.day/CVE-2025-11058.json · Rebuilt by cve.day 2026-11-25T22:56:38.678Z
