{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "2.5.0"
                  },
                  {
                    "fixed": "3.5.8"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "cpe": "cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "4.0.4"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "cpe": "cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "4.1.0"
                  },
                  {
                    "fixed": "4.1.2"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "original_tag": "v3.5.8",
                "range": [
                  {
                    "fixed": "1bd831b9a9d288566ca38045f6410c771946634b"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v4.0.4",
                "range": [
                  {
                    "fixed": "214c3670959361230c5199e668df4de3da513b22"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v4.1.2",
                "range": [
                  {
                    "fixed": "4b9e4f6398760cc04f9fde2c659f30ffea216e12"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "ccc2f608c5c1caac2ea4796f4490f29d59d67068"
            },
            {
              "fixed": "1bd831b9a9d288566ca38045f6410c771946634b"
            },
            {
              "introduced": "fb389bd73c8a4bc2924496f6041c8eee27572d21"
            },
            {
              "fixed": "214c3670959361230c5199e668df4de3da513b22"
            },
            {
              "introduced": "61c5dfb9295ea66c376c452a7ef7379e8c562416"
            },
            {
              "fixed": "4b9e4f6398760cc04f9fde2c659f30ffea216e12"
            }
          ],
          "repo": "https://github.com/mastodon/mastodon",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-38g9-pfm9-gfqv"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-90"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28853.json"
  },
  "details": "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.",
  "id": "CVE-2023-28853",
  "modified": "2026-10-28T02:30:57.199401437Z",
  "published": "2023-04-04T21:14:53.350Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2023/07/06/6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mastodon/mastodon/releases/tag/v3.5.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mastodon/mastodon/releases/tag/v4.0.4"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mastodon/mastodon/releases/tag/v4.1.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28853.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-28853"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mastodon/mastodon/pull/24379"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database"
}