CVE-2018-25160

HTTP::Session2 versions through 1.09 for Perl does not validate the format of user provided session ids, enabling code injection or other impact depending on session backend

Published Feb 27, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
HTTP::Session2 versions through 1.09 for Perl does not validate the format of user provided session ids, enabling code injection or other impact depending on session backend.

For example, if an application uses memcached for session storage, then it may be possible for a remote attacker to inject memcached commands in the session id value.

Remediation

Vendor Solution

HTTP::Session2 has been deprecated since version 1.11, users are recommended to migrate to a different solution.


Vendor Workaround

Upgrade to version 1.10 or later. Use a session storage module that offers protection against command injections, such as Cache::Memcached::Fast::Safe.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Tokuhirom http\
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:tokuhirom:http\:\:session2:*:*:*:*:*:perl:*:*
Vendors & Products Tokuhirom http\
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'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, '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::Session2 versions through 1.09 for Perl does not validate the format of user provided session ids, enabling code injection or other impact depending on session backend. For example, if an application uses memcached for session storage, then it may be possible for a remote attacker to inject memcached commands in the session id value.
Title HTTP::Session2 versions through 1.09 for Perl does not validate the format of user provided session ids, enabling code injection or other impact depending on session backend
Weaknesses CWE-20
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Mar 3, 2026, 8:22 PM
Reserved
Feb 26, 2026, 11:50 AM
Status
Analyzed
Published
Feb 27, 2026, 9:16 PM
Modified
Jun 17, 2026, 1:54 AM