{
  "id": "CVE-2026-49268",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-49268",
  "published_at": "2026-06-17T13:07:44.488Z",
  "title": "Apache Shiro: LDAP DN Injection in DefaultLdapRealm",
  "vendor": "Apache Software Foundation",
  "product": "Apache Shiro",
  "cvss": {
    "score": 9.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "description": "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 DefaultLdapRealm\nUpgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.",
  "cwe": "CWE-90",
  "cpes": [
    "cpe:2.3:a:apache:shiro:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:apache:shiro:3.0.0:alpha1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 9.1
  },
  "repos": [
    {
      "repo": "ncurran/exploits",
      "url": "https://github.com/ncurran/exploits",
      "created_at": "2026-04-12T22:00:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-08-21T23:40:17Z"
    },
    {
      "repo": "xiaoqiMikko/shiro-check",
      "url": "https://github.com/xiaoqiMikko/shiro-check",
      "created_at": "2026-08-06T16:50:12Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-03-13T01:16:39Z"
    },
    {
      "repo": "sassoftware/shiro",
      "url": "https://github.com/sassoftware/shiro",
      "created_at": "2026-08-31T21:23:36Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 100,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Md2Hash.java",
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Md5Hash.java",
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Sha1Hash.java",
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Sha256Hash.java",
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Sha384Hash.java",
        "pipes a download into a shell / encoded PowerShell in crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Sha512Hash.java",
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2013-08-22T20:22:40Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Shiro",
        "ranges": [
          "\u003c= 2.2.0",
          "\u003e= 3.0.0-alpha-0, \u003c= 3.0.0-alpha-1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "org.apache.shiro:shiro-core",
        "ranges": [
          "\u003c 2.2.1"
        ],
        "fixed_in": [
          "2.2.1"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-x96m-rh44-vgv8"
      },
      {
        "vendor": "",
        "product": "org.apache.shiro:shiro-core",
        "ranges": [
          "\u003e= 3.0.0-alpha-0, \u003c 3.0.0-alpha-2"
        ],
        "fixed_in": [
          "3.0.0-alpha-2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-x96m-rh44-vgv8"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.shiro:shiro-core to 2.2.1 or later.",
      "Upgrade org.apache.shiro:shiro-core to 3.0.0-alpha-2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
