CVE-2018-25160 Code injection in HTTP::Session2

Medium 6.5 Published Updated

Attackers can inject code via session IDs in HTTP::Session2 if the backend allows it, requiring specific session storage configurations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-25160?

CVE-2018-25160 is a medium-severity code injection vulnerability in TOKUHIROM HTTP::Session2, published on 27 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2018-25160?

It affects 1 product.

Products include Tokuhirom Http\.

How do I fix CVE-2018-25160?

No fix has been published for CVE-2018-25160 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-25160 being exploited?

There is no known exploitation of CVE-2018-25160 in the wild and no public exploit code.

Sources

Also known as GHSA-hg4g-pqvm-c557.

Is CVE-2018-25160 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free