Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. xml2rfc
  4. ›
  5. GHSA-432c-wxpg-m4q3

GHSA-432c-wxpg-m4q3: xml2rfc has file inclusion irregularities

February 7, 2025

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:

xincludeXML entity referenceartwork src=sourcecode src=
without --allow-local-file-access flagNo filesystem accessAny file in xml2rfc templates dir and below, any file in source directory and belowAccess source directory and belowAccess source directory and below
with --allow-local-file-access flagAccess any file on filesystem1Access any file on filesystem1Access source directory and belowAccess source directory and below

  1. Access any file of the filesystem with the permissions of the user running xml2rfc can access. ↩︎ ↩︎

References

  • github.com/advisories/GHSA-432c-wxpg-m4q3
  • github.com/ietf-tools/xml2rfc
  • github.com/ietf-tools/xml2rfc/commit/ec98f9cb4b9a8658222117df037dda473ca3f4e4
  • github.com/ietf-tools/xml2rfc/security/advisories/GHSA-432c-wxpg-m4q3

Code Behaviors & Features

Detect and mitigate GHSA-432c-wxpg-m4q3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.12.0 before 3.27.0

Fixed versions

  • 3.27.0

Solution

Upgrade to version 3.27.0 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/xml2rfc/GHSA-432c-wxpg-m4q3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.