CVE-2026-13575

HTTP::Session versions before 0.54 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::CHI

Published Nov 1, 2026 CVSS 3.1 · 5.6 Medium EPSS 1.1% KEV · Not listed
Description
HTTP::Session versions before 0.54 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::CHI.

The session id from the client's cookie reaches the CHI cache unchanged. The sibling HTTP::Session::Store::Memcached rejects ids that contain control characters, but the CHI store has no such check, and CHI does not escape keys for its memcached drivers.

With a memcached driver, a CR and LF in the session id end the cache command early, and the server reads the bytes after them as further commands.

Analysis

AI-generated

Technical impact

Versions of HTTP::Session prior to 0.54 expose a flaw where the client’s session id cookie value is passed unfiltered into a memcached key used by HTTP::Session::Store::CHI. Because CHI does not escape or validate key data, an attacker crafting a cookie containing CR and LF characters can terminate the current memcached command and inject arbitrary commands. This allows the attacker to send any memcached command that the cache instance accepts, potentially leading to remote code execution, data loss, or denial of service against the memcached server and the application it supports.

Affected Systems

Any deployment of the HTTP::Session Perl module using the CHI store with a memcached backend and a module version earlier than 0.54 is affected. The vulnerability resides solely in the HTTP::Session::Store::CHI implementation; other storage backends are not impacted. Users of the module should identify their installed version and verify whether they rely on a memcached driver for caching session data.

Risk and Exploitability

The flaw can be exploited remotely by presenting a crafted cookie to the vulnerable web application. The attack requires the attacker to control the session id value, which is typically possible via network traffic to the web service. While the EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog, the mechanism permits arbitrary command injection on the memcached service, which could lead to severe compromise depending on the memcached configuration. The CVSS score is 5.6, indicating a medium risk. Attackers could exploit this vulnerability without privileged access, making it relatively low effort if the application is exposed to the internet.

Remediation

Vendor Solution

Upgrade to http-session 0.54 or later.


OpenCVE Recommended Actions

  • Upgrade HTTP::Session to version 0.54 or later.
  • If an upgrade cannot be performed immediately, modify the application so that any session id value stored via CHI is first stripped of CR and LF characters or otherwise escaped before being used as a memcached key.
  • Implement input validation on incoming session cookie values to reject any control characters, thereby preventing injection into the memcached command stream.

Generated by OpenCVE AI on November 9, 2026 at 18:37 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': 'total'}, 'version': '2.0.3'}

ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Tokuhirom
Tokuhirom http::session2
Vendors & Products Tokuhirom
Tokuhirom http::session2
Type Values Removed Values Added
Description HTTP::Session versions before 0.54 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::CHI. The session id from the client's cookie reaches the CHI cache unchanged. The sibling HTTP::Session::Store::Memcached rejects ids that contain control characters, but the CHI store has no such check, and CHI does not escape keys for its memcached drivers. With a memcached driver, a CR and LF in the session id end the cache command early, and the server reads the bytes after them as further commands.
Title HTTP::Session versions before 0.54 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::CHI
Weaknesses CWE-93
References
Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 5:04 PM
Reserved
Jun 28, 2026, 8:29 PM
Status
Deferred
Published
Nov 1, 2026, 11:18 AM
Modified
Nov 9, 2026, 5:17 PM