{"id":"CVE-2025-11058","aliases":["CVE-2025-11058","GHSA-cfmv-h8fx-85m7","PYSEC-2026-2058"],"related":[],"kind":"vulnerability","state":"published","title":"xml2rfc has an arbitrary file read vulnerability","summary":"### Impact\nWhen generating PDF files, this vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link element into the XML.\n\n### Workarounds\nTest untrusted input with `link` elements with `rel=\"attachment\"` before processing.\n\n### Credits\nThis vulnerability was reported by Mohamed Ouad from [Doyensec](https://doyensec.com/).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nWhen generating PDF files, this vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link element into the XML.\n\n### Workarounds\nTest untrusted input with `link` elements with `rel=\"attachment\"` before processing.\n\n### Credits\nThis vulnerability was reported by Mohamed Ouad from [Doyensec](https://doyensec.com/).","format":"markdown","source":"ghsa"}],"published":"2025-08-26T17:45:11.000Z","modified":"2026-07-07T17:56:37.537Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.30.1"}],"ecosystem":"PyPI","package":"xml2rfc","purl":"pkg:pypi/xml2rfc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.30.1"}],"ecosystem":"PyPI","package":"xml2rfc","purl":"pkg:pypi/xml2rfc","source":"pysec"}],"references":[{"url":"https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cfmv-h8fx-85m7","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ietf-tools/xml2rfc/commit/f2b245bc0aeeac0667c8f74e976c466c5991f0e4","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ietf-tools/xml2rfc","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/xml2rfc","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cfmv-h8fx-85m7","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11058","tags":["advisory"],"sources":["pysec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cfmv-h8fx-85m7","url":"https://github.com/advisories/GHSA-cfmv-h8fx-85m7","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:37.537Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2058","url":"https://osv.dev/vulnerability/PYSEC-2026-2058","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:17.468Z"}],"updatedAt":"2026-11-25T22:56:38.678Z"}