CVE-2023-28853
published high CVSS 3.1 · 7.7Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mastodon | — | mastodon>= 2.5.0, < 3.5.8 · >= 4.0.0, < 4.0.4 · >= 4.1.0, < 4.1.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mastodon | mastodon | >= 2.5.0, < 3.5.8 (affected)>= 4.0.0, < 4.0.4 (affected)>= 4.1.0, < 4.1.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-90 CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
References
8- http://www.openwall.com/lists/oss-security/2023/07/06/6
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414
- https://github.com/mastodon/mastodon/pull/24379
- https://github.com/mastodon/mastodon/releases/tag/v3.5.8
- https://github.com/mastodon/mastodon/releases/tag/v4.0.4
- https://github.com/mastodon/mastodon/releases/tag/v4.1.2
- https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv
Provider assertions
3GitHub_M · cna
Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7ec5ab5e6ab19ab0916ad7ce6851d01bfc26b2f4803e63d79b86e7ccbc54db60
- Ingested
- 23 Sep 2026, 08:07:45 UTC
- Source record
- Official CVE record