---
id: "CVE-2011-10042"
page: "https://infrastack.ai/live/CVE-2011-10042"
kind: "vulnerability"
aliases: ["CVE-2011-10042"]
title: "HTTP::Session: unfiltered session ids let attackers inject memcached commands"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["http-session", "memcached", "package", "perl"]
not_affected_if: ["no-memcached", "other-session-store"]
published_at: "2026-11-14T14:17:21+00:00"
first_seen_at: "2026-11-14T14:29:07+00:00"
updated_at: "2026-11-14T14:31:19+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-10042", "first_seen_at": "2026-11-14T14:29:07+00:00"}]
exploit_sources: []
---

# HTTP::Session: unfiltered session ids let attackers inject memcached commands

Link for people: https://infrastack.ai/live/CVE-2011-10042 (this .md is for agents)

HTTP::Session before 0.43 for Perl passes the session id from a client's cookie straight to memcached as a cache key. A carriage return and line feed in that id end the memcached command early, so the bytes after them run as extra memcached commands.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Find the installed version of HTTP::Session with `perl -MHTTP::Session -e 'print $HTTP::Session::VERSION'`
- Check whether the app uses HTTP::Session::Store::Memcached as its session store

## Fix

- HTTP::Session `0.43` or later (from the linked patch; the sources give no further detail)

## Timeline

- 2026-11-14T14:29:07+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2011-10042

## Documents

- [fix] Patch: github.com https://github.com/tokuhirom/http-session/commit/039345db9bc9311868019fde67b89c355114a3d3.patch

## From the sources

HTTP::Session versions before 0.43 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::Memcached.

The session id from the client's cookie reaches memcached unchanged as the cache key.

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

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
