CVE-2023-28853 json
Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database
published 3y ago modified 2mo ago also BIT-mastodon-2023-28853 , EUVD-2023-32477 , GHSA-38g9-pfm9-gfqv
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami mastodon 3.5.8, 4.0.4, 4.1.2
- joinmastodon mastodon 3.5.8, 4.0.4, 4.1.2
Is CVE-2023-28853 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.28% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | mastodon | >=2.5.0, <3.5.8 >=4.0.0, <4.0.4 >=4.1.0, <4.1.2 |
3.5.8 4.0.4 4.1.2 |
Affected products
- mastodon mastodon
Classification
References
-
github.com
/mastodon/mastodon/pull/24379
patch
-
github.com
/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv
exploit, vendor-advisory, advisory
-
github.com
/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-
product, web
-
github.com
/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414
product, web
-
github.com
/mastodon/mastodon/releases/tag/v3.5.8
release-notes, article
-
github.com
/mastodon/mastodon/releases/tag/v4.0.4
release-notes, article
-
github.com
/mastodon/mastodon/releases/tag/v4.1.2
release-notes, article
-
openwall.com
/lists/oss-security/2023/07/06/6
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-28853
web
Sources
- CVE List CVE-2023-28853
- NVD CVE-2023-28853
- OSV BIT-mastodon-2023-28853
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.