CVE-2026-59414

Description

A flaw was found in Spring Boot. Improper handling of trailing slashes in security path matching rules can prevent security configurations from being properly applied to incoming web requests. An unauthenticated remote attacker can exploit this flaw by sending a crafted HTTP (Hypertext Transfer Protocol) request, allowing them to bypass access controls and gain unauthorized access to protected application endpoints and sensitive data.

Statement

An authorization bypass vulnerability exists in Spring Boot's EndpointRequest and PathRequest security matchers due to improper handling of trailing slashes in configured paths. Sending a crafted HTTP request with or without a trailing slash to a protected Actuator endpoint or static resource path can cause the security matcher to fail to match the route, allowing an unauthenticated remote attacker to bypass access controls and read sensitive configuration or alter application state.

Red Hat Product Security assesses this flaw as Important rather than Critical because it does not directly enable arbitrary code execution or host compromise under default configurations. Exploitation requires specific non-default Spring Security matcher configurations with trailing slashes, and sensitive Actuator endpoints and the H2 console are disabled by default in Spring Boot.

Mitigation

Avoid relying on EndpointRequest or PathRequest helpers in Spring Security configurations; instead, secure Actuator and static resource routes using explicit PathPatternRequestMatcher rules that account for both normalized and trailing-slash variants, and restrict management endpoints to an internal network interface or separate management port.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score9.1N/A9.1
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity,Access Control

Technical Impact: Read Files or Directories; Modify Files or Directories; Bypass Protection Mechanism

An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism than an attacker may be able to bypass the mechanism.

Frequently Asked Questions

Want to get errata notifications? Sign up here.