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

Published Apr 4, 2023
·
Updated

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.

Affected Software

3 affected components
Joinmastodon Mastodon>=2.5.0<3.5.8
Joinmastodon Mastodon>=4.0.0<4.0.4
Joinmastodon Mastodon>=4.1.0<4.1.2

Event History

Apr 4, 2023
CVE Published
via MITRE·09:14 PM
Data Sourced
via MITRE·09:14 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-28853?

CVE-2023-28853 is a vulnerability in Mastodon, an open-source social network server, that allows LDAP injection attacks during login when LDAP is configured for authentication.

2

How does the CVE-2023-28853 vulnerability affect Mastodon?

The CVE-2023-28853 vulnerability affects Mastodon versions prior to 3.5.8, 4.0.4, and 4.1.2, allowing attackers to perform LDAP injection attacks during login when LDAP is used for authentication.

3

What is the severity of CVE-2023-28853?

CVE-2023-28853 has a severity rating of 6.5 (High).

4

How can the CVE-2023-28853 vulnerability be fixed?

To fix the CVE-2023-28853 vulnerability, it is recommended to update Mastodon to versions 3.5.8, 4.0.4, or 4.1.2, which have addressed the LDAP injection vulnerability.

5

Where can I find more information about CVE-2023-28853?

You can find more information about CVE-2023-28853 in the following references: [Link 1](http://www.openwall.com/lists/oss-security/2023/07/06/6), [Link 2](https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14), [Link 3](https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203