# CVE-2025-11059: xml2rfc is vulnerable to arbitrary file reads through prepped files

- 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-09-10T20:44:58.000Z
- Modified: 2026-07-07T17:56:15.443Z
- Also known as: GHSA-9mv7-3c64-mmqw, PYSEC-2026-2057
- 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 prepped RFCXML.

### Workarounds

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

### References
This is related to [GHSA-cfmv-h8fx-85m7](https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cfmv-h8fx-85m7).

(As written by GitHub Advisory Database.)

## Affected

- xml2rfc (PyPI): before 3.30.2

## 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-9mv7-3c64-mmqw> (web)
- <https://github.com/ietf-tools/xml2rfc/commit/73fb1c91fc62ac540bb6bd24f982f2becf84c1b0> (web)
- <https://github.com/ietf-tools/xml2rfc> (package)
- <https://github.com/ietf-tools/xml2rfc/releases/tag/v3.30.2> (web)
- <https://pypi.org/project/xml2rfc> (package)
- <https://github.com/advisories/GHSA-9mv7-3c64-mmqw> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-11059> (advisory)

## Sources

- GitHub Advisory Database: [GHSA-9mv7-3c64-mmqw](https://github.com/advisories/GHSA-9mv7-3c64-mmqw), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-2057](https://osv.dev/vulnerability/PYSEC-2026-2057), CC-BY-4.0, modified 2026-07-07

---

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