PoC Monitor
← All CVEs
CVE-2026-49268published 17 Jun 2026 13:07 UTCData: JSON · API

Apache Software Foundation Apache Shiro

Apache Shiro: LDAP DN Injection in DefaultLdapRealm

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.

First public PoC Date pendingpublic PoC known, its date not yet looked up
Public PoCs11 on GitHub · +1 suspicious, not counted
CVSS9.1critical · scored by NVD · CWE-90
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

Apache Software Foundation Apache Shiro
  • <= 2.2.0
  • >= 3.0.0-alpha-0, <= 3.0.0-alpha-1
org.apache.shiro:shiro-core (Maven)
  • < 2.2.1

Fixed in 2.2.1

from GitHub Security Advisory GHSA-x96m-rh44-vgv8

org.apache.shiro:shiro-core (Maven)
  • >= 3.0.0-alpha-0, < 3.0.0-alpha-2

Fixed in 3.0.0-alpha-2

from GitHub Security Advisory GHSA-x96m-rh44-vgv8

Mitigation

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

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published17 Jun 2026 · t = 0

Public PoC known, its date not yet looked up; not in CISA KEV.

PoC repositories

Found on GitHub.

1 PoCs · 1 informational · 1 suspicious or fake

PoCs 1
RepositoryCreatedStarsAssessment
ncurran/exploits 12 Apr 2026 −66 d 0 PoC older repo: PoC date unknown, not used for the first PoC
Informational 1
RepositoryCreatedStarsAssessment
xiaoqiMikko/shiro-check 6 Aug 2026 +50 d 0 Informational · list
Suspicious or fake 1
RepositoryCreatedStarsAssessment
sassoftware/shiro 31 Aug 2026 +75 d 2 Suspicious · score 100
Why suspicious
  • 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

Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.