# CVE-2026-49268: Apache Shiro: LDAP DN Injection in DefaultLdapRealm

- Severity: High 8.8 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-06-17T13:07:44.488Z
- Modified: 2026-10-26T00:10:00.150Z
- Also known as: GHSA-x96m-rh44-vgv8
- Weaknesses: CWE-90
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## 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.

This issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using DefaultLdapRealm
Upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.

(As written by CVE List.)

## Affected

- org.apache.shiro:shiro-core: up to 2.2.0; from 3.0.0-alpha-0 up to 3.0.0-alpha-1
- org.apache.shiro:shiro-core (Maven): before 2.2.1; from 3.0.0-alpha-0 before 3.0.0-alpha-2
- apache shiro: before 2.2.1; 3.0.0

## Every score

- apache: CVSS:4.0 8.8 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/06/17/8> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49268> (advisory)
- <https://github.com/apache/shiro> (package)

## Sources

- CVE List: [CVE-2026-49268](https://www.cve.org/CVERecord?id=CVE-2026-49268), CVE Terms of Use, modified 2026-06-17
- GitHub Advisory Database: [GHSA-x96m-rh44-vgv8](https://github.com/advisories/GHSA-x96m-rh44-vgv8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49268](https://nvd.nist.gov/vuln/detail/CVE-2026-49268), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-49268 · Whole record: https://cve.day/CVE-2026-49268.json · Rebuilt by cve.day 2026-11-25T22:59:24.940Z
