{"id":"CVE-2026-49268","published":"2026-06-17T13:07:44Z","modified":"2026-06-17T17:02:22Z","title":"Apache Shiro: LDAP DN Injection in DefaultLdapRealm","vendor":"Apache","product":"Apache Shiro","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00755,"percentile":0.51371,"provenance":"source"},"cwes":[{"id":"CWE-90","name":"Improper Neutralization of Special Elements used in an LDAP Query"}],"references":[{"url":"https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/17/8","tags":[]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":10.27},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-08-06","earliestUrl":"https://github.com/xiaoqiMikko/shiro-check","repos":[{"name":"sassoftware/shiro","url":"https://github.com/sassoftware/shiro","stars":2,"created":"2026-08-31"},{"name":"xiaoqiMikko/shiro-check","url":"https://github.com/xiaoqiMikko/shiro-check","stars":0,"created":"2026-08-06"}]},"first":{"date":"2026-08-06","source":"PoC-in-GitHub","url":"https://github.com/xiaoqiMikko/shiro-check"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Shiro","versions":["<= 2.2.0",">= 3.0.0-alpha-0, <= 3.0.0-alpha-1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-17T15:02:25.313149Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.shiro:shiro-core","vulnerableRanges":["<2.2.1",">=3.0.0-alpha-0, <3.0.0-alpha-2"],"patched":["2.2.1","3.0.0-alpha-2"],"from":["GHSA-x96m-rh44-vgv8"],"provenance":"source"}],"summary":{"text":"Apache Shiro's DefaultLdapRealm class builds the LDAP Distinguished Name for bind authentication by concatenating the user-supplied username directly into the DN template without escaping RFC 2253 special characters, an LDAP injection flaw affecting Shiro through 2.2.0 and 3.0.0-alpha-1 when DefaultLdapRealm is used. A remote, unauthenticated attacker can exploit this by submitting a crafted username that alters the DN structure, potentially bypassing LDAP bind authentication or impersonating other users, with no user interaction or prior authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:48Z"},"euvd":{"id":"EUVD-2026-37701","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-46749","published":"2024-01-15","fixed":"2.0.0-alpha4","kev":false},{"cve":"CVE-2026-23901","published":"2026-02-10","fixed":"2.1.0","kev":false},{"cve":"CVE-2026-43827","published":"2026-05-25","fixed":"3.0.0-alpha-2","kev":false,"link":{"from":"CVE-2026-43827","to":"CVE-2026-49268","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.shiro:shiro-core","fromFixed":"2.2.0","toFixed":"2.2.1","daysApart":23}]}},{"cve":"CVE-2026-49268","published":"2026-06-17","fixed":"3.0.0-alpha-2","kev":false},{"cve":"CVE-2026-56130","published":"2026-06-25","fixed":"3.0.0","kev":false,"link":{"from":"CVE-2026-49268","to":"CVE-2026-56130","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.shiro:shiro-core","fromFixed":"3.0.0-alpha-2","toFixed":"3.0.0","daysApart":8}]}}],"package":"Maven:org.apache.shiro:shiro-core"}}