Vulnerability · Published Apr 4, 2023 · Assigned by GitHub_M
CVE-2023-28853Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database
High 7.7
In plain English
A high-severity security flaw in mastodon from mastodon. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities).
Official 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 products (as reported)
Weakness: CWE-90 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv x_refsource_CONFIRM
- https://github.com/mastodon/mastodon/pull/24379 x_refsource_MISC
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14 x_refsource_MISC
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414 x_refsource_MISC
- https://github.com/mastodon/mastodon/releases/tag/v3.5.8 x_refsource_MISC
- https://github.com/mastodon/mastodon/releases/tag/v4.0.4 x_refsource_MISC
- https://github.com/mastodon/mastodon/releases/tag/v4.1.2 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2023/07/06/6