{
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09"
      },
      "title": "LDAP DN Injection in DefaultLdapRealm",
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')",
              "lang": "en",
              "cweId": "CWE-90",
              "type": "CWE"
            }
          ]
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "affected": [
        {
          "vendor": "Apache Software Foundation",
          "product": "Apache Shiro",
          "collectionURL": "https://repo.maven.apache.org/maven2",
          "packageName": "org.apache.shiro:shiro-core",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThanOrEqual": "2.2.0",
              "versionType": "semver"
            },
            {
              "status": "affected",
              "version": "3.0.0-alpha-0",
              "lessThanOrEqual": "3.0.0-alpha-1",
              "versionType": "semver"
            }
          ],
          "defaultStatus": "unaffected"
        }
      ],
      "descriptions": [
        {
          "value": "A remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction in DefaultLdapRealm class. User-supplied username input is directly concatenated into the LDAP DN template without any escaping of RFC 2253 special characters. This allows an attacker to manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users.\n\nThis issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using\u00a0DefaultLdapRealm\nUpgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.",
          "lang": "en",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "A remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction in DefaultLdapRealm class. User-supplied username input is directly concatenated into the LDAP DN template without any escaping of RFC 2253 special characters. This allows an attacker to manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users.<br><br>This issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using&nbsp;<span style=\"background-color: rgb(239, 239, 239);\">DefaultLdapRealm</span><br>Upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue."
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s",
          "tags": [
            "vendor-advisory"
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ],
          "cvssV4_0": {
            "version": "4.0",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "NONE",
            "userInteraction": "NONE",
            "vulnConfidentialityImpact": "LOW",
            "subConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "HIGH",
            "subIntegrityImpact": "NONE",
            "vulnAvailabilityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "Safety": "PRESENT",
            "Automatable": "YES",
            "Recovery": "AUTOMATIC",
            "valueDensity": "NOT_DEFINED",
            "vulnerabilityResponseEffort": "LOW",
            "providerUrgency": "RED",
            "baseSeverity": "HIGH",
            "baseScore": 8.8,
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/S:P/AU:Y/R:A/RE:L/U:Red"
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "zhaokaifei (reporter) - ChinaTelecom",
          "type": "finder"
        },
        {
          "lang": "en",
          "value": "Lenny Primak <lenny@flowlogix.com>",
          "type": "remediation developer"
        }
      ],
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "cveId": "CVE-2026-49268",
    "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
    "serial": 1,
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}