All vulnerabilities

Servers and applications

CVE-2023-28853

Blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database

Severity
Medium 6.5
Published
4 Apr 2023
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.5.8, 4.0.4, 4.1.2
Also known as
GHSA-38g9-pfm9-gfqv
Sources
NVD, Project advisories (GitHub)

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,…

Affected software

SoftwareAffected versions
MastodonServers and applications · cpe:a:joinmastodon:mastodon
  • From 2.5.0 before 3.5.8
  • From 4.0.0 before 4.0.4
  • From 4.1.0 before 4.1.2
MastodonServers and applications · github:mastodon/mastodon
  • From 2.5.0 before 3.5.8

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2023-28853
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2023-28853
  • GitHub Advisory Database https://github.com/advisories/GHSA-38g9-pfm9-gfqv
  • github.com https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv