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

Medium 6.4 Published Updated

PHP's HTML encoding functions mishandle partial multibyte sequences, potentially allowing XSS attacks by bypassing output sanitization.

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

What is CVE-2007-5898?

CVE-2007-5898 is a medium-severity cross-site scripting vulnerability in Php Php, published on 20 Nov 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The (1) htmlentities and (2) htmlspecialchars functions in PHP before 5.2.5 accept partial multibyte sequences, which has unknown impact and attack vectors, a different issue than CVE-2006-5465.

Which versions are affected by CVE-2007-5898?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-5898?

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-5898 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-6gp5-g2h4-r5fv.

Is CVE-2007-5898 in your software?

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

Check your SBOMs for free