CVE-2010-4312 Apache Tomcat has cookies without HTTPOnly flag in Set-Cookie header

Medium 6.4 Published Updated

Attackers can hijack user sessions via script access to cookies because the default configuration lacks the HTTPOnly flag.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2010-4312?

CVE-2010-4312 is a medium-severity vulnerability in Apache Tomcat, published on 26 Nov 2010. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The default configuration of Apache Tomcat 6.x does not include the HTTPOnly flag in a Set-Cookie header, which makes it easier for remote attackers to hijack a session via script access to a cookie.

Weakness: CWE-16

Which versions are affected by CVE-2010-4312?

2 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.35
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.35

Products include Apache Tomcat.

How do I fix CVE-2010-4312?

Upgrade org.apache.tomcat:tomcat to 6.0.35 or later.

Is CVE-2010-4312 being exploited?

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

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-pvjh-7h8q-q56r.

Is CVE-2010-4312 in your software?

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

Check your SBOMs for free