Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-34035

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.) Specifically, an application is vulnerable when all of the following are true: * Spring MVC is on the classpath * Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet) * The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints An application is not vulnerable if any of the following is true: * The application does not have Spring MVC on the classpath * The application secures no servlets other than Spring MVC’s DispatcherServlet * The application uses requestMatchers(String) only for Spring MVC endpoints

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-34035
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:00 UTC · Revision 1

Source evidence

CVE-2023-34035

core-osv · Original source

Published 18 Jul 2023, 15:29 UTC

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.) Specifically, an application is vulnerable when all of the following are true: * Spring MVC is on the classpath * Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet) * The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints An application is not vulnerable if any of the following is true: * The application does not have Spring MVC on the classpath * The application secures no servlets other than Spring MVC’s DispatcherServlet * The application uses requestMatchers(String) only for Spring MVC endpoints

osv:CVE-2023-34035
Complete source record
{
  "id": "0ebc5b94757f2f52633ae25aa4456984f50a3faa4774a728edff6a4238748059",
  "url": "https://osv.dev/vulnerability/CVE-2023-34035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-34035",
    "summary": "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.) Specifically, an application is vulnerable when all of the following are true: * Spring MVC is on the classpath * Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet) * The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints An application is not vulnerable if any of the following is true: * The application does not have Spring MVC on the classpath * The application secures no servlets other than Spring MVC’s DispatcherServlet * The application uses requestMatchers(String) only for Spring MVC endpoints",
    "evidence": "osv:CVE-2023-34035",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-34035",
      "aliases": [
        "CVE-2023-34035",
        "GHSA-4vpr-xfrp-cj64"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-security",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b873b244138eb7371e954cff9a2dcc791217ed5e"
                },
                {
                  "fixed": "d02ab505770f6405634d287ca409b448cc52d688"
                },
                {
                  "introduced": "10ee03c6638a07867bb08dca24dbbfd87c46a20a"
                },
                {
                  "fixed": "0686b461afdbfa2404b2248b8de4fef97561cace"
                },
                {
                  "introduced": "ad2b1d40b881850de5d3a2a3b5e5d1a56a0d2b4c"
                },
                {
                  "fixed": "a41278781d4d431197c17bb1e19230b7f387a819"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.8.0"
                      },
                      {
                        "fixed": "5.8.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0.0"
                      },
                      {
                        "fixed": "6.0.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.1.0"
                      },
                      {
                        "fixed": "6.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.0.4",
            "5.8.4",
            "6.1.1",
            "6.1.0",
            "5.8.3",
            "6.0.3",
            "6.0.2",
            "5.8.2",
            "5.8.1",
            "6.0.1",
            "5.8.0",
            "6.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-34035.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.158734868Z",
      "provider": "osv",
      "references": [
        "https://spring.io/security/cve-2023-34035",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34035.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-34035"
      ],
      "provider_metadata": {
        "cna_assigner": "vmware",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "Spring Security 5.8.0 to 5.8.4, Spring Security 6.0.0 to 6.0.4, Spring Security 6.1.0 to 6.1.1"
                  },
                  {
                    "last_affected": "Spring Security 5.8.0 to 5.8.4, Spring Security 6.0.0 to 6.0.4, Spring Security 6.1.0 to 6.1.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34035.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-34035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510085,
  "published_at": "2023-07-18T15:29:10.091+00:00"
}