{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.shiro:shiro-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-49268 in the wild and no public exploit code.","fix":"Upgrade org.apache.shiro:shiro-core to a fixed version for your release line: 2.2.1 or 3.0.0-alpha-2.","what":"CVE-2026-49268 is a high-severity authentication bypass vulnerability in Apache Shiro, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49268 and fix it if it is affected.\n\nWhat it is: CVE-2026-49268 is a high-severity authentication bypass vulnerability in Apache Shiro, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-49268 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.shiro:shiro-core (Maven): affected all versions; fixed in 2.2.1\n- org.apache.shiro:shiro-core (Maven): affected all versions; fixed in 2.2.1\n- org.apache.shiro:shiro-core (Maven): affected from 3.0.0-alpha-0; fixed in 3.0.0-alpha-2\n- org.apache.shiro:shiro-core (Maven): affected from 3.0.0-alpha-0; fixed in 3.0.0-alpha-2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49268/ (Markdown: https://insights.sbomify.com/CVE-2026-49268/index.md)","id":"CVE-2026-49268","markdown":"https://insights.sbomify.com/CVE-2026-49268/index.md","name":"CVE-2026-49268","record":{"aliases":["CLEANSTART-2026-FA74097","CLEANSTART-2026-LY45593","DEBIAN-CVE-2026-49268","ECHO-985f-7fd1-0025","GHSA-x96m-rh44-vgv8","MINI-233j-5pg3-fr3v","MINI-342r-fw74-77f4","MINI-3g7g-5c6g-ph96","MINI-3mc7-v4fp-4q5x","MINI-49mr-v8fh-2254","MINI-5h3g-jmg3-vxvq","MINI-677g-45wv-g5g4","MINI-6qg3-hchj-q3wx","MINI-6rqh-9crg-92w3","MINI-7jxr-g2q7-mqrq","MINI-7m68-45g5-x6g9","MINI-8728-r4h3-rpcj","MINI-9h4c-rmg2-9gqm","MINI-9r2v-5h7x-2734","MINI-c67f-5mvg-p9q4","MINI-f7p4-3vw6-g53x","MINI-fp5w-q9qq-f98x","MINI-gmhx-6vf5-5482","MINI-gqqv-qh95-3x5x","MINI-jhcp-rh3h-h679","MINI-qhc4-cvjv-qc7v","MINI-r337-4phg-jgx5","MINI-w96j-8xrx-52vr","MINI-wgvf-h4j8-h4x2","UBUNTU-CVE-2026-49268"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Java security library","requires_auth":"none","summary":"Remote attackers can bypass authentication or impersonate users by injecting LDAP special characters into the DN construction in Apache Shiro's DefaultLdapRealm.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"shiro","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-90","name":"Improper Neutralization of Special Elements used in an LDAP Query"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-08-06","github_poc":2,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-31T21:23:36Z","kind":"github_poc","ref":"https://github.com/sassoftware/shiro","stars":2,"title":"CVE-2026-49268 — Analysis and Remediation of an LDAP Injection Authentication Bypass Vulnerability"},{"date":"2026-08-06T16:50:12Z","kind":"github_poc","ref":"https://github.com/xiaoqiMikko/shiro-check","stars":0,"title":"扫出你实际装的 Apache Shiro 模块与版本,逐条判定官方 26 条 CVE 里哪些真的落在你身上。按「CVE × 模块」判定,零依赖单 jar。 CVE-2026-49268"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache Shiro: LDAP DN Injection in DefaultLdapRealm","id":"CVE-2026-49268","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Information disclosure in n/a","id":"CVE-2026-49269"},"packages":[{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.shiro:shiro-core","purl":null,"source":"GHSA-x96m-rh44-vgv8"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.shiro:shiro-core","purl":"pkg:maven/org.apache.shiro/shiro-core","source":"GHSA-x96m-rh44-vgv8"},{"ecosystem":"Maven","fixed":["3.0.0-alpha-2"],"introduced":["3.0.0-alpha-0"],"last_affected":[],"package":"org.apache.shiro:shiro-core","purl":null,"source":"GHSA-x96m-rh44-vgv8"},{"ecosystem":"Maven","fixed":["3.0.0-alpha-2"],"introduced":["3.0.0-alpha-0"],"last_affected":[],"package":"org.apache.shiro:shiro-core","purl":"pkg:maven/org.apache.shiro/shiro-core","source":"GHSA-x96m-rh44-vgv8"}],"prev":{"headline":"Apache Airflow: No certificate validation on SMTP STARTTLS connections","id":"CVE-2026-49267"},"products":["Apache Shiro"],"published":"2026-06-17","related":[{"cvss_score":9.8,"headline":"Path Traversal in Apache Shiro","id":"CVE-2023-34478","kev_date_added":null,"published":"2023-07-24"},{"cvss_score":9.8,"headline":"Authentication Bypass Vulnerability in Shiro when forwarding or including via RequestDispatcher","id":"CVE-2022-40664","kev_date_added":null,"published":"2022-10-12"},{"cvss_score":9.8,"headline":"Authentication Bypass Vulnerability","id":"CVE-2022-32532","kev_date_added":null,"published":"2022-06-28"},{"cvss_score":9.8,"headline":"Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass","id":"CVE-2021-41303","kev_date_added":null,"published":"2021-09-17"},{"cvss_score":9.8,"headline":"Authentication bypass in Apache Shiro","id":"CVE-2020-17523","kev_date_added":null,"published":"2021-02-03"},{"cvss_score":9.8,"headline":"Authentication bypass in Apache Shiro","id":"CVE-2020-17510","kev_date_added":null,"published":"2020-11-05"},{"cvss_score":9.8,"headline":"Improper Authentication in Apache Shiro","id":"CVE-2020-11989","kev_date_added":null,"published":"2020-06-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-17","vendors":["Apache Software Foundation"]},"summary":"Remote attackers can bypass authentication or impersonate users by injecting LDAP special characters into the DN construction in Apache Shiro's DefaultLdapRealm.","url":"https://insights.sbomify.com/CVE-2026-49268/"}