{"api_version":"1","generated_at":"2026-04-23T03:06:37+00:00","cve":"CVE-2023-28853","urls":{"html":"https://cve.report/CVE-2023-28853","api":"https://cve.report/api/cve/CVE-2023-28853.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-28853","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-28853"},"summary":{"title":"CVE-2023-28853","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-04 22:15:00","updated_at":"2023-07-07 00:15:00"},"problem_types":["CWE-90"],"metrics":[],"references":[{"url":"https://github.com/mastodon/mastodon/releases/tag/v4.0.4","name":"https://github.com/mastodon/mastodon/releases/tag/v4.0.4","refsource":"MISC","tags":[],"title":"Release v4.0.4 · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv","name":"https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv","refsource":"MISC","tags":[],"title":"Blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database · Advisory · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414","name":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414","refsource":"MISC","tags":[],"title":"mastodon/devise.rb at 94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mastodon/mastodon/pull/24379","name":"https://github.com/mastodon/mastodon/pull/24379","refsource":"MISC","tags":[],"title":"Fix unescaped user input in LDAP query by ClearlyClaire · Pull Request #24379 · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2023/07/06/6","name":"http://www.openwall.com/lists/oss-security/2023/07/06/6","refsource":"MISC","tags":[],"title":"oss-security - CVE-2023-28853: mastodon: Blind LDAP injection in login","mime":"text/x-ruby","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14","name":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14","refsource":"MISC","tags":[],"title":"mastodon/ldap_authenticable.rb at 94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mastodon/mastodon/releases/tag/v3.5.8","name":"https://github.com/mastodon/mastodon/releases/tag/v3.5.8","refsource":"MISC","tags":[],"title":"Release v3.5.8 · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mastodon/mastodon/releases/tag/v4.1.2","name":"https://github.com/mastodon/mastodon/releases/tag/v4.1.2","refsource":"MISC","tags":[],"title":"Release v4.1.2 · mastodon/mastodon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-28853","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28853","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"28853","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"joinmastodon","cpe5":"mastodon","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-28853","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')","cweId":"CWE-90"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"mastodon","product":{"product_data":[{"product_name":"mastodon","version":{"version_data":[{"version_affected":"=","version_value":">= 2.5.0, < 3.5.8"},{"version_affected":"=","version_value":">= 4.0.0, < 4.0.4"},{"version_affected":"=","version_value":">= 4.1.0, < 4.1.2"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv","refsource":"MISC","name":"https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv"},{"url":"https://github.com/mastodon/mastodon/pull/24379","refsource":"MISC","name":"https://github.com/mastodon/mastodon/pull/24379"},{"url":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14","refsource":"MISC","name":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14"},{"url":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414","refsource":"MISC","name":"https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414"},{"url":"https://github.com/mastodon/mastodon/releases/tag/v3.5.8","refsource":"MISC","name":"https://github.com/mastodon/mastodon/releases/tag/v3.5.8"},{"url":"https://github.com/mastodon/mastodon/releases/tag/v4.0.4","refsource":"MISC","name":"https://github.com/mastodon/mastodon/releases/tag/v4.0.4"},{"url":"https://github.com/mastodon/mastodon/releases/tag/v4.1.2","refsource":"MISC","name":"https://github.com/mastodon/mastodon/releases/tag/v4.1.2"},{"url":"http://www.openwall.com/lists/oss-security/2023/07/06/6","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/07/06/6"}]},"source":{"advisory":"GHSA-38g9-pfm9-gfqv","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-04 22:15:00","lastModifiedDate":"2023-07-07 00:15:00","problem_types":["CWE-90"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1.0","versionEndExcluding":"4.1.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.0.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*","versionStartIncluding":"2.5.0","versionEndExcluding":"3.5.8","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}