{"id":"CVE-2026-23903","aliases":["CVE-2026-23903","GHSA-c244-p6m5-vqj6"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Shiro: Auth bypass when accessing static files only on case-insensitive filesystems","summary":"Authentication Bypass by Alternate Name vulnerability in Apache Shiro.\n\nThis issue affects Apache Shiro: before 2.0.7.\n\nUsers are recommended to upgrade to version 2.0.7, which fixes the issue.\n\nThe issue only effects static files. If static files are served from a case-insensitive filesystem,\nsuch as default macOS setup, static files may be accessed by varying the case of the filename in the request.\nIf only lower-case (common default) filters are present in Shiro, they may be bypassed this way.\n\nShiro 2.1.0 and later has a new parameters to remediate this issue\nshiro.ini: filterChainResolver.caseInsensitive = true\napplication.properties: shiro.caseInsensitive=true\n\nShiro 3.0.0 and later makes this the default in shiro.ini-based configurations.\nShiro 3.0.1 and later makes this the default in all configurations, including programmatic and Spring / Spring Boot.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authentication Bypass by Alternate Name vulnerability in Apache Shiro.\n\nThis issue affects Apache Shiro: before 2.0.7.\n\nUsers are recommended to upgrade to version 2.0.7, which fixes the issue.\n\nThe issue only effects static files. If static files are served from a case-insensitive filesystem,\nsuch as default macOS setup, static files may be accessed by varying the case of the filename in the request.\nIf only lower-case (common default) filters are present in Shiro, they may be bypassed this way.\n\nShiro 2.1.0 and later has a new parameters to remediate this issue\nshiro.ini: filterChainResolver.caseInsensitive = true\napplication.properties: shiro.caseInsensitive=true\n\nShiro 3.0.0 and later makes this the default in shiro.ini-based configurations.\nShiro 3.0.1 and later makes this the default in all configurations, including programmatic and Spring / Spring Boot.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n**Authentication Bypass:**\nA vulnerability exists in Apache Shiro that allows authentication bypass for static files when served from a case-insensitive filesystem (such as the default configuration on macOS or Windows).\n\nThe issue arises when Shiro's URL filters are configured with lower-case rules (a common default), but the underlying operating system treats mixed-case filenames as identical. An attacker can access protected static resources by varying the capitalization of the filename in the request (e.g., requesting `/SECRET.TXT` to bypass a rule for `/secret.txt`).\n\nThis issue specifically affects static file handling and does not impact dynamic resource paths that are case-sensitive.\n\n### Patches\nUsers should upgrade to Apache Shiro **2.1.0** or later.\n\n**Important Configuration Note:**\nVersion 2.1.0 introduces a new configuration parameter to handle case-insensitivity, which must be enabled manually to resolve the issue:\n\n* **shiro.ini:**\n    ```ini\n    filterChainResolver.caseInsensitive = true\n    ```\n* **Spring Boot (application.properties):**\n    ```properties\n    shiro.caseInsensitive=true\n    ```\n\n*Note: Apache Shiro 3.0.0 (upcoming) will enable this setting by default.*\n\n### Workarounds\n* Ensure that the filesystem hosting the application is case-sensitive (e.g., Linux/Unix).\n* Manually configure all Shiro filter chains to handle all possible case variations of protected filenames (not recommended due to complexity).\n\n### Resources\n* [CVE-2026-23903](https://nvd.nist.gov/vuln/detail/CVE-2026-23903)\n* [Mailing List Announcement](https://lists.apache.org/thread/5jjf0hnjcol58z2m5y255c7scz1lnp8k)\n* [OSS-Security List](http://www.openwall.com/lists/oss-security/2026/02/08/1)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vulnerabilidad de omisión de autenticación por nombre alternativo en Apache Shiro.\n\nEste problema afecta a Apache Shiro: antes de la versión 2.0.7.\n\nSe recomienda a los usuarios actualizar a la versión 2.0.7, que soluciona el problema.\n\nEl problema solo afecta a los archivos estáticos. Si los archivos estáticos se sirven desde un sistema de archivos que no distingue entre mayúsculas y minúsculas, como la configuración predeterminada de macOS, se puede acceder a los archivos estáticos variando el uso de mayúsculas y minúsculas del nombre de archivo en la solicitud. Si solo hay filtros en minúsculas (valor predeterminado común) en Shiro, pueden ser omitidos de esta manera.\n\nShiro 2.0.7 y versiones posteriores tienen nuevos parámetros para solucionar este problema\nshiro.ini: filterChainResolver.caseInsensitive = true\napplication.propertie: shiro.caseInsensitive=true\n\nShiro 3.0.0 y versiones posteriores (próximas) lo convierten en el valor predeterminado.","source":"nvd"}],"published":"2026-02-09T09:26:21.772Z","modified":"2026-11-10T09:50:30.969Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-289"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.0.7","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Shiro","package":"org.apache.shiro:shiro-web","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Maven","package":"org.apache.shiro:shiro-spring","purl":"pkg:maven/org.apache.shiro/shiro-spring","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.7"}],"vendor":"apache","product":"shiro","cpe":"cpe:2.3:a:apache:shiro:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/5jjf0hnjcol58z2m5y255c7scz1lnp8k","tags":["mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/02/08/1","tags":["mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23903","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/shiro/commit/3b9638b957495004599aeaf24ba8949e309f26e8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/shiro","tags":["package"],"sources":["ghsa"]}],"credits":["Jesse Yang","Lenny Pimak"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-09T16:17:20.608Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23903","url":"https://www.cve.org/CVERecord?id=CVE-2026-23903","licence":"CVE Terms of Use","modified":"2026-11-10T09:50:30.969Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c244-p6m5-vqj6","url":"https://github.com/advisories/GHSA-c244-p6m5-vqj6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23903","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23903","licence":"Public domain","modified":"2026-08-20T10:16:41.287Z"}],"updatedAt":"2026-11-25T22:59:13.651Z","epss":{"score":0.00488,"percentile":0.43637,"date":"2026-12-02T12:00:21.000Z"}}