
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-11059 is an arbitrary file read vulnerability in the xml2rfc Python package (pip) that allows attackers to read arbitrary files from the filesystem by injecting a malicious link element into prepped RFCXML files during PDF generation. It affects all versions up to and including 3.30.1, with version 3.30.2 containing the fix. The vulnerability was published on September 9, 2025, by maintainer kesara via a GitHub Security Advisory. It carries a CVSS v4 base score of 8.7 (High) per the GitHub Advisory Database, though the original security advisory classifies it as Critical (GitHub Advisory, xml2rfc Advisory).
The root cause is improper limitation of a pathname to a restricted directory (CWE-22, Path Traversal). When xml2rfc processes a prepped RFCXML file to generate a PDF, it does not sanitize <link> elements with rel="attachment" before parsing, allowing an attacker-controlled file path to resolve outside the intended directory and read arbitrary filesystem files. The fix, introduced in commit 73fb1c9, adds a sanitize() method to the parser that strips link attachments from the document tree before further processing, and moves this sanitization step to occur after XML validation but before any output generation (GitHub Commit, GitHub Advisory). This vulnerability is related to a prior advisory GHSA-cfmv-h8fx-85m7, suggesting a pattern of similar file-read issues in the tool (xml2rfc Advisory).
Successful exploitation results in a high confidentiality impact — an attacker can read arbitrary files accessible to the process running xml2rfc, such as configuration files, credentials, private keys, or other sensitive data on the host filesystem. There is no integrity or availability impact. The attack vector is network-accessible (CVSS AV:N), requires no privileges, no user interaction, and no special attack conditions, making it exploitable by any party who can supply a malicious prepped RFCXML file to a system running a vulnerable version of xml2rfc (GitHub Advisory).
xml2rfc version ≤ 3.30.1 to generate PDF output.<link> element with rel="attachment" whose href attribute points to a target file on the server filesystem (e.g., href="/etc/passwd" or href="../../sensitive_config.ini").xml2rfc processing pipeline — for example, by uploading it to a document conversion service or passing it as input to an automated RFC toolchain.xml2rfc generates the PDF, the malicious link attachment causes the tool to read and embed the targeted file's contents, which the attacker can then extract from the generated PDF output (GitHub Advisory, xml2rfc Advisory)./etc/passwd, private key material, configuration files).xml2rfc accessing files outside the expected working directory or document root during PDF generation.xml2rfc process opening file descriptors to sensitive paths (e.g., /etc/, ~/.ssh/, application config directories) detectable via auditd or strace monitoring.<link rel="attachment"> elements with filesystem paths rather than standard URLs, visible in web application or API request logs.Upgrade xml2rfc to version 3.30.2 or later, which introduces a sanitization step that strips malicious link attachment elements before document processing (xml2rfc Release). As a temporary workaround for environments that cannot immediately upgrade, validate and reject any untrusted input RFCXML files containing <link> elements with rel="attachment" before passing them to xml2rfc (xml2rfc Advisory). Additionally, restrict the filesystem permissions of the user account running xml2rfc to limit the scope of files that could be read if exploitation occurs.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."