CVE-2023-42450 Mastodon Server-Side Request Forgery vulnerability
Attackers can inject data into HTTP requests to access local services if private addresses are allowed, requiring a patch.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-42450?
CVE-2023-42450 is a medium-severity server-side request forgery vulnerability in mastodon, published on 19 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 4.2.0-beta1 and prior to version 4.2.0-rc2, by crafting specific input, attackers can inject arbitrary data into HTTP requests issued by Mastodon. This can be used to perform confused deputy attacks if the server configuration includes `ALLOWED_PRIVATE_ADDRESSES` to allow access to local exploitable services. Version 4.2.0-rc2 has a patch for the issue.
Which versions are affected by CVE-2023-42450?
1 open source package ship an affected version, including mastodon. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mastodon Bitnami | From 4.2.0-beta1 | 4.2.0, 4.2.0, 4.2.0, 4.2.0 |
Products include Joinmastodon Mastodon.
How do I fix CVE-2023-42450?
Upgrade mastodon to 4.2.0 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2023-42450 being exploited?
There is no known exploitation of CVE-2023-42450 in the wild and no public exploit code.
Other vulnerabilities in mastodon
- CVE-2023-36460 Mastodon vulnerable to arbitrary file creation through media attachments
- CVE-2022-2166 Improper Restriction of Excessive Authentication Attempts in mastodon/mastodon
- CVE-2022-24307 Missing authorization in n/a
- CVE-2018-21018 Auth bypass in n/a
- CVE-2024-23832 Mastodon Remote user impersonation and takeover
Sources
Also known as BIT-mastodon-2023-42450, GHSA-hcqf-fw2r-52g4.