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.