CVE-2024-34467 ThinkPHP Cross-Site Scripting Vulnerability

Medium 6.1 Published Updated

Remote attackers can execute arbitrary scripts via XSS in ThinkPHP due to inadequate filtering in exception templates.

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-2024-34467?

CVE-2024-34467 is a medium-severity cross-site scripting vulnerability in n/a, published on 4 May 2024. 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

ThinkPHP 8.0.3 allows remote attackers to exploit XSS due to inadequate filtering of function argument values in think_exception.tpl.

Weakness: CWE-79

Which versions are affected by CVE-2024-34467?

6 open source packages ship an affected version, including topthink/framework. It affects 1 product.

PackageAffectedFixed in
topthink/framework PackagistAll versions6.0.17
topthink/framework PackagistAll versions6.0.17
topthink/framework PackagistFrom 6.1.06.1.5
topthink/framework PackagistFrom 6.1.06.1.5
topthink/framework PackagistFrom 8.0.08.0.4
topthink/framework PackagistFrom 8.0.08.0.4

Products include Thinkphp Thinkphp.

How do I fix CVE-2024-34467?

Upgrade topthink/framework to a fixed version for your release line: 6.0.17, 6.1.5 or 8.0.4.

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-2024-34467 being exploited?

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

Sources

Also known as CVE-2024-34466, GHSA-969f-v7jv-pgj3.

Is CVE-2024-34467 in your software?

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

Check your SBOMs for free