CVE-2024-34507 Cross-site scripting in n/a
Cross-site scripting vulnerability in MediaWiki allows attackers to execute arbitrary scripts via mishandled escape characters in comments.
- 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-34507?
CVE-2024-34507 is a high-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 5 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
An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki before 1.39.7, 1.40.x before 1.40.3, and 1.41.x before 1.41.1. XSS can occur because of mishandling of the 0x1b character, as demonstrated by Special:RecentChanges#%1b0000000.
Weakness: CWE-80
Which versions are affected by CVE-2024-34507?
1 open source package ship an affected version, including mediawiki. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | All versions | 1.41.1 |
Products include Fedoraproject Fedora, Mediawiki Mediawiki.
How do I fix CVE-2024-34507?
Upgrade mediawiki to 1.41.1 or later.
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-34507 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34507 exists.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-mediawiki-2024-34507, DEBIAN-CVE-2024-34507, GHSA-gwp7-78vh-mpmm, UBUNTU-CVE-2024-34507.