CVE-2026-116130

HTTP::Parser::XS versions before 0.18 for Perl truncate PATH_INFO at an encoded NUL byte in parse_http_request

Published Oct 30, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
HTTP::Parser::XS versions before 0.18 for Perl truncate PATH_INFO at an encoded NUL byte in parse_http_request.

The XS parser URL-decodes the request path and measures the result with strlen(), so PATH_INFO ends at the first byte decoded from %00. The pure-Perl backend is not affected.

A remote attacker can send a path that a proxy or filter checks in full while the application routes on a shorter one.

Analysis

AI-generated

Technical impact

The XS backend of HTTP::Parser::XS decodes the request path and then calculates its length with the C function strlen. When an attacker encodes a NUL byte (%00) in the path, the parser truncates PATH_INFO at that byte. As a result, upstream proxies or filters that examine the full request see the complete path, while the application receives only the shortened path for routing decisions. This mismatch allows a remote attacker to strand requests on unintended resources or bypass authorization checks that rely on the original path.

Affected Systems

Any Perl application that uses HTTP::Parser::XS version 0.17 or earlier is affected. The pure‑Perl backend implementation is not impacted and therefore does not exhibit this behavior. No other vendors or products are listed in the official data.

Risk and Exploitability

The vulnerability can be triggered entirely remotely by sending a crafted HTTP request containing an encoded NUL byte in the path; no local privilege escalation is required. The CVSS score of 9.1 denotes critical severity, the EPSS score is below 1 %, and the vulnerability is not catalogued in CISA KEV, indicating limited known exploitation but non‑zero risk. Based on CWE‑464 and CWE‑626, an attacker can exploit the path‑truncation mismatch to subvert upstream filtering or the application’s routing logic, potentially accessing unintended resources or bypassing security controls.

Remediation

Vendor Solution

Upgrade to HTTP-Parser-XS 0.18 or later.


OpenCVE Recommended Actions

  • Upgrade HTTP::Parser::XS to version 0.18 or later.
  • If an upgrade cannot be performed immediately, replace the XS backend with the pure‑Perl implementation, which is immune to this truncation issue.
  • During remediation, verify that the application’s routing logic operates correctly with the upgraded or alternative parser, ensuring that PATH_INFO matches the full request path when required.

Generated by OpenCVE AI on November 6, 2026 at 18:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-464
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Perl
Perl http::parser::xs
Vendors & Products Perl
Perl http::parser::xs
Type Values Removed Values Added
Description HTTP::Parser::XS versions before 0.18 for Perl truncate PATH_INFO at an encoded NUL byte in parse_http_request. The XS parser URL-decodes the request path and measures the result with strlen(), so PATH_INFO ends at the first byte decoded from %00. The pure-Perl backend is not affected. A remote attacker can send a path that a proxy or filter checks in full while the application routes on a shorter one.
Title HTTP::Parser::XS versions before 0.18 for Perl truncate PATH_INFO at an encoded NUL byte in parse_http_request
Weaknesses CWE-626
References
Weaknesses
  • CWE-464

    Addition of Data Structure Sentinel

  • CWE-626

    Null Byte Interaction Error (Poison Null Byte)

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 6, 2026, 4:41 PM
Reserved
Oct 25, 2026, 10:58 AM
Status
Deferred
Published
Oct 30, 2026, 1:18 PM
Modified
Nov 6, 2026, 5:17 PM
Severity
Moderate
Public date
Oct 30, 2026, 12:38 PM