{"cve":"CVE-2023-34035","nvd":{"published":"2023-07-18T16:15:11.753","modified":"2026-06-17T06:02:46.143","status":"Modified","description":"Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet. (DispatcherServlet is a Spring MVC component that maps HTTP endpoints to methods on @Controller-annotated classes.)\n\nSpecifically, an application is vulnerable when all of the following are true:\n\n  *  Spring MVC is on the classpath\n  *  Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet)\n  *  The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints\n\n\nAn application is not vulnerable if any of the following is true:\n\n  *  The application does not have Spring MVC on the classpath\n  *  The application secures no servlets other than Spring MVC’s DispatcherServlet\n  *  The application uses requestMatchers(String) only for Spring MVC endpoints","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3},"cwes":["CWE-863"],"references":["https://spring.io/security/cve-2023-34035","https://spring.io/security/cve-2023-34035"],"products":["vmware:spring_security"],"source":"nvd","synced_at":"2026-10-19T21:38:35.729974749+00:00"},"epss":{"cve":"CVE-2023-34035","score":0.00658,"percentile":0.51518,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4vpr-xfrp-cj64","url":"https://osv.dev/vulnerability/GHSA-4vpr-xfrp-cj64","summary":"Spring Security's authorization rules can be misconfigured when using multiple servlets","modified":"2024-02-16T08:20:17.503929Z","packages":[{"ecosystem":"Maven","name":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","ranges":[">=5.8.0 <5.8.5"],"fixed":["5.8.5"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","ranges":[">=6.0.0 <6.0.5"],"fixed":["6.0.5"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-config","purl":"pkg:maven/org.springframework.security/spring-security-config","ranges":[">=6.1.0 <6.1.2"],"fixed":["6.1.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}