CVE-2007-3386 Cross-site scripting in n/a

Medium 4.3 Published Updated

Remote attackers can inject arbitrary scripts into the Tomcat Host Manager via crafted requests, requiring admin access to exploit.

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

What is CVE-2007-3386?

CVE-2007-3386 is a medium-severity cross-site scripting vulnerability in Apache Tomcat, published on 14 Aug 2007. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in the Host Manager Servlet for Apache Tomcat 6.0.0 to 6.0.13 and 5.5.0 to 5.5.24 allows remote attackers to inject arbitrary HTML and web script via crafted requests, as demonstrated using the aliases parameter to an html/add action.

Weakness: CWE-79

Which versions are affected by CVE-2007-3386?

It affects 1 product.

Products include Apache Tomcat.

How do I fix CVE-2007-3386?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2007-3386 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-3386 exists.

Public exploit code: 1 Exploit-DB entry.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-v66v-63h2-8q5q.

Is CVE-2007-3386 in your software?

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

Check your SBOMs for free