CVE-2023-42450 Mastodon Server-Side Request Forgery vulnerability

Medium 5.4 Published Updated

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.

Weakness: CWE-918, CWE-113

Which versions are affected by CVE-2023-42450?

1 open source package ship an affected version, including mastodon. It affects 1 product.

PackageAffectedFixed in
mastodon BitnamiFrom 4.2.0-beta14.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.

Sources

Also known as BIT-mastodon-2023-42450, GHSA-hcqf-fw2r-52g4.

Is CVE-2023-42450 in your software?

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

Check your SBOMs for free