Original 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.
Affected software
- Mastodon ≥ 4.1.0 < 4.1.2*≥ 2.5.0 < 3.5.8≥ 4.0.0 < 4.0.4 Fixed in: 4.1.2, 3.5.8, 4.0.4 exact match
Details
- Published
- 2023-04-04
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- CWE
- CWE-90, CWE-74
- EPSS (30-day exploit probability)
- 1.28% (percentile 70)
References
- cve.org/CVE-2023-28853
- nvd.nist.gov/vuln/detail/CVE-2023-28853
- www.openwall.com/lists/oss-security/2023/07/06/6
- github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/conc...
- github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initiali...
- github.com/mastodon/mastodon/pull/24379
- github.com/mastodon/mastodon/releases/tag/v3.5.8
- github.com/mastodon/mastodon/releases/tag/v4.0.4
- github.com/mastodon/mastodon/releases/tag/v4.1.2
- github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.