CVE-2024-34467 ThinkPHP Cross-Site Scripting Vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
topthink/framework Packagist | All versions | 6.0.17 |
topthink/framework Packagist | All versions | 6.0.17 |
topthink/framework Packagist | From 6.1.0 | 6.1.5 |
topthink/framework Packagist | From 6.1.0 | 6.1.5 |
topthink/framework Packagist | From 8.0.0 | 8.0.4 |
topthink/framework Packagist | From 8.0.0 | 8.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.
Other vulnerabilities in n/a
Sources
Also known as CVE-2024-34466, GHSA-969f-v7jv-pgj3.