GHSA-432c-wxpg-m4q3
xml2rfc has file inclusion irregularities
Version 3.12.0 changed xml2rfc so that it would not access local files without the presence of its new --allow-local-file-access flag.
This prevented XML External Entity (XXE) injection attacks with xinclude and XML entity references.
It was discovered that xml2rfc does not respect --allow-local-file-access when a local file is specified as src in artwork or sourcecode elements. Furthermore, XML entity references can include any file inside the source dir and below without using the --allow-local-file-access flag.
The xml2rfc <= 3.26.0 behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | Any file in xml2rfc templates dir and below, any file in source directory and below | Access source directory and below | Access source directory and below |
| with --allow-local-file-access flag | Access any file on filesystem[^1] | Access any file on filesystem[^1] | Access source directory and below | Access source directory and below | Access source directory and below |
[^1]: Access any file of the filesystem with the permissions of the user running xml2rfc can access.
Impact
Anyone running xml2rfc as a service that accepts input from external users is impacted by this issue.
Specifying a file in src attribute in artwork or sourcecode elements will cause the contents of that file to appear in xml2rfc’s output results.
But that file has to be inside the same directory as the XML input source file.
For artwork and sourcecode, xml2rfc will not look above the source file directory.
The proposed new behaviour
- Generalize file access checks.
- Only allow access to files within src dir and below. (xml entity include can access templates dir).
- Always allow access to
templates_dirfor XML entity includes.
New behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | No filesystem access (except for templates_dir) | No filesystem access | No filesystem access |
| with --allow-local-file-access flag | Access source directory and below | Access source directory and below (Can accesstemplates_dir). | Access source directory and below | Access source directory and below |
Workarounds
Use a secure temporary directory to process un-trusted XML files, and do not reuse it for processing other XML documents.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
What each source reports
GitHub Advisories Score used 6.9
xml2rfc has file inclusion irregularities
Version 3.12.0 changed xml2rfc so that it would not access local files without the presence of its new --allow-local-file-access flag.
This prevented XML External Entity (XXE) injection attacks with xinclude and XML entity references.
It was discovered that xml2rfc does not respect --allow-local-file-access when a local file is specified as src in artwork or sourcecode elements. Furthermore, XML entity references can include any file inside the source dir and below without using the --allow-local-file-access flag.
The xml2rfc <= 3.26.0 behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | Any file in xml2rfc templates dir and below, any file in source directory and below | Access source directory and below | Access source directory and below |
| with --allow-local-file-access flag | Access any file on filesystem[^1] | Access any file on filesystem[^1] | Access source directory and below | Access source directory and below | Access source directory and below |
[^1]: Access any file of the filesystem with the permissions of the user running xml2rfc can access.
Impact
Anyone running xml2rfc as a service that accepts input from external users is impacted by this issue.
Specifying a file in src attribute in artwork or sourcecode elements will cause the contents of that file to appear in xml2rfc’s output results.
But that file has to be inside the same directory as the XML input source file.
For artwork and sourcecode, xml2rfc will not look above the source file directory.
The proposed new behaviour
- Generalize file access checks.
- Only allow access to files within src dir and below. (xml entity include can access templates dir).
- Always allow access to
templates_dirfor XML entity includes.
New behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | No filesystem access (except for templates_dir) | No filesystem access | No filesystem access |
| with --allow-local-file-access flag | Access source directory and below | Access source directory and below (Can accesstemplates_dir). | Access source directory and below | Access source directory and below |
Workarounds
Use a secure temporary directory to process un-trusted XML files, and do not reuse it for processing other XML documents.
- Record
GHSA-432c-wxpg-m4q3- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV 6.9
xml2rfc has file inclusion irregularities
Version 3.12.0 changed xml2rfc so that it would not access local files without the presence of its new --allow-local-file-access flag.
This prevented XML External Entity (XXE) injection attacks with xinclude and XML entity references.
It was discovered that xml2rfc does not respect --allow-local-file-access when a local file is specified as src in artwork or sourcecode elements. Furthermore, XML entity references can include any file inside the source dir and below without using the --allow-local-file-access flag.
The xml2rfc <= 3.26.0 behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | Any file in xml2rfc templates dir and below, any file in source directory and below | Access source directory and below | Access source directory and below |
| with --allow-local-file-access flag | Access any file on filesystem[^1] | Access any file on filesystem[^1] | Access source directory and below | Access source directory and below | Access source directory and below |
[^1]: Access any file of the filesystem with the permissions of the user running xml2rfc can access.
Impact
Anyone running xml2rfc as a service that accepts input from external users is impacted by this issue.
Specifying a file in src attribute in artwork or sourcecode elements will cause the contents of that file to appear in xml2rfc’s output results.
But that file has to be inside the same directory as the XML input source file.
For artwork and sourcecode, xml2rfc will not look above the source file directory.
The proposed new behaviour
- Generalize file access checks.
- Only allow access to files within src dir and below. (xml entity include can access templates dir).
- Always allow access to
templates_dirfor XML entity includes.
New behaviour:
| | xinclude | XML entity reference | artwork src= | sourcecode src= |
|---|---|---|---|---|
| without --allow-local-file-access flag | No filesystem access | No filesystem access (except for templates_dir) | No filesystem access | No filesystem access |
| with --allow-local-file-access flag | Access source directory and below | Access source directory and below (Can accesstemplates_dir). | Access source directory and below | Access source directory and below |
Workarounds
Use a secure temporary directory to process un-trusted XML files, and do not reuse it for processing other XML documents.
- Record
GHSA-432c-wxpg-m4q3- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-22
- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
xml2rfcPyPI | 3.12.0 up to 3.27.0 | 3.27.0 |
xml2rfcPyPI | 3.12.0 up to 3.27.0, plus listed versions 3.12.13.12.103.12.23.12.33.12.4 Show 39 moreShow less3.12.53.12.63.12.73.12.83.12.93.13.03.13.13.14.03.14.13.14.23.15.03.15.13.15.23.15.33.16.03.17.03.17.13.17.23.17.33.17.43.17.53.18.03.18.13.18.23.19.03.19.13.19.23.19.33.19.43.20.03.20.13.21.03.22.03.23.03.23.13.23.23.24.03.25.03.26.0 | 3.27.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-432c-wxpg-m4q3 is a medium vulnerability (CVSS 6.9) in xml2rfc, published February 7, 2025. No source lists public exploit code. Fixed in xml2rfc 3.27.0.