CVE-2023-28853 Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database

High 7.7 Published Updated

Attackers can leak arbitrary LDAP attributes via blind injection during login if LDAP authentication is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28853?

CVE-2023-28853 is a high-severity vulnerability in mastodon, published on 4 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for authentication. Starting in version 2.5.0 and prior to versions 3.5.8, 4.0.4, and 4.1.2, the LDAP query made during login is insecure and the attacker can perform LDAP injection attack to leak arbitrary attributes from LDAP database. This issue is fixed in versions 3.5.8, 4.0.4, and 4.1.2.

Weakness: CWE-74, CWE-90

Which versions are affected by CVE-2023-28853?

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

PackageAffectedFixed in
mastodon BitnamiFrom 2.5.03.5.8, 4.0.4, 4.1.2

Products include Joinmastodon Mastodon.

How do I fix CVE-2023-28853?

Upgrade mastodon to a fixed version for your release line: 3.5.8, 4.0.4 or 4.1.2.

Is CVE-2023-28853 being exploited?

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

Sources

Also known as BIT-mastodon-2023-28853, GHSA-38g9-pfm9-gfqv.

Is CVE-2023-28853 in your software?

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

Check your SBOMs for free