Skip to content

CVE Watch · Ilia Dubovskii · 2 December 2026

Spring Boot Cloud Foundry security bypass (CVE-2026-59411): How to Check and Fix

CVE-2026-59411 is a missing-authentication bug in Spring Boot 3.5.0 to 3.5.17, 4.0.0 to 4.0.9 and 4.1.0 to 4.1.2. When a servlet-based Spring Boot application that uses Actuator runs on Cloud Foundry, Spring Boot's default web security is switched off, so anyone who can reach the app can call endpoints the default login should have protected. The open-source fixes are Spring Boot 4.0.10 and 4.1.3; for 3.5.x the only fix, 3.5.18, is an enterprise-support release. Spring rates the bug Critical, the CVE record scores it 9.1, and no exploitation has been reported.

The short version

Do nowFind every servlet Spring Boot app with Actuator on Cloud Foundry and move it to 4.1.3 or 4.0.10, or add your own SecurityFilterChain bean today.

1. What CVE-2026-59411 is

Spring Boot auto-configures web security when Spring Security is on the classpath. The Spring Boot reference states that in that case "web applications are secured by default", with HTTP Basic or form login applied to the whole application, including Actuator endpoints. That default protects an app whose developers never wrote a security configuration.

Spring Boot also ships extended Actuator support for Cloud Foundry, "activated when you deploy to a compatible Cloud Foundry instance" (docs). In the Spring Boot source, Cloud Foundry is detected when the environment contains a VCAP_APPLICATION or VCAP_SERVICES variable.

The advisory says that when a servlet-based web application that uses Actuator is deployed to Cloud Foundry, "Spring Boot's default web security is disabled." It does not explain the mechanism, and the 4.1.3 and 4.0.10 release notes do not name the CVE. Spring classifies it as CWE-306, missing authentication for a critical function.

An application which relied on the generated default login therefore has no login at all. An attacker needs only network access to the app's route and gets whatever the application serves: exposed Actuator endpoints and any application endpoints that only the default chain protected. The CVSS vector rates confidentiality and integrity impact as high and availability as none.

2. Impact: who is exposed and how badly

All four conditions must hold at once, according to the advisory:

  1. Spring Boot 3.5.0 to 3.5.17, 4.0.0 to 4.0.9 or 4.1.0 to 4.1.2.
  2. A servlet web application (Spring MVC, not WebFlux).
  3. Actuator is on the classpath.
  4. The app runs on Cloud Foundry and relies on Spring Boot's default security configuration.

The advisory says plainly who is NOT affected: reactive (WebFlux) applications, and servlet applications that define their own security configuration. Apps not on Cloud Foundry and apps without Actuator are not affected. If Spring Security is not on the classpath at all, there was never a default chain to lose; such an app is open by design.

The worst realistic outcome is unauthenticated read and write access to the application. By default only /health is exposed over HTTP (Actuator endpoints docs), so the damage grows where management.endpoints.web.exposure.include was widened to env, heapdump or loggers.

Branch Affected Open-source fix Enterprise fix OSS support status
4.1.x4.1.0 to 4.1.24.1.34.1.2.1OSS support to 31 Jul 2027
4.0.x4.0.0 to 4.0.94.0.104.0.9.1OSS support to 31 Dec 2026
3.5.x3.5.0 to 3.5.17none3.5.18OSS support ended 30 Jun 2026

Versions and fixes are from the Spring advisory and the CVE record; support dates from endoflife.date. 4.1.3 and 4.0.10 reached Maven Central on 19 November 2026; 3.5.18 is not there.

Spring Boot is a build dependency, not an OS package or a Docker image, so there are no distribution packages or image tags to track. The version lives inside your application artefact.

3. How to check if you are affected

  1. Confirm the app runs on Cloud Foundry. List the apps in each targeted space and look at each one's environment for VCAP_APPLICATION. Any other platform that sets VCAP_APPLICATION or VCAP_SERVICES would also trigger detection, because that is the test in the source linked above.
cf apps
cf env APP_NAME
  1. Find the Spring Boot version. Filter the Maven dependency tree to the core artefact, ask Gradle for dependency insight, or list the nested libraries in a built jar.
# Maven
./mvnw dependency:tree -Dincludes=org.springframework.boot:spring-boot
# Gradle
./gradlew dependencyInsight --dependency org.springframework.boot:spring-boot --configuration runtimeClasspath
# Built artefact
unzip -l app.jar | grep 'BOOT-INF/lib/spring-boot-'

A result of 3.5.0 to 3.5.17, 4.0.0 to 4.0.9 or 4.1.0 to 4.1.2 means the version condition holds. The version is also the spring-boot-starter-parent version in pom.xml or the org.springframework.boot plugin version in build.gradle.

  1. Check servlet versus reactive and Actuator presence. In the same dependency tree, spring-webmvc means a servlet app and spring-webflux means reactive. Look for spring-boot-actuator too. A servlet app with Actuator meets two more conditions.
./mvnw dependency:tree | grep -E 'spring-webmvc|spring-webflux|spring-boot-actuator|spring-security'
  1. Check for a custom security configuration. The advisory says apps with their own security configuration are not affected. The reference says a SecurityFilterChain bean is what makes the default configuration back off. Search the source.
grep -rl 'SecurityFilterChain' src/main

No match means the app relies on the default chain and all four conditions hold: you are affected.

  1. Confirm from outside. Request a page of the running Cloud Foundry app that you know requires login, without credentials. A login page or a 401 means the default chain is active; the content itself means it is off. The startup log shows the Spring Boot version in the default banner.
cf logs APP_NAME --recent

Kubernetes, ECS, Lambda and plain hosts are out of scope unless something sets VCAP_APPLICATION or VCAP_SERVICES in their environment.

4. How to fix it

  1. Pick the target version. 4.1.x goes to 4.1.3. 4.0.x goes to 4.0.10, though its OSS support ends on 31 December 2026, so 4.1.3 is the better target if you can. 3.5.x has no open-source fix: take 3.5.18 through Spring enterprise support, do the major upgrade to 4.1.3, or apply the workaround below.
  1. Change the version in the build. Maven: set the spring-boot-starter-parent version, or the spring-boot-dependencies import version, to 4.1.3 or 4.0.10. Gradle: set the org.springframework.boot plugin version to the same. Rebuild and run your tests.
  1. Redeploy. Push the new artefact to Cloud Foundry. This changes the running app.
cf push APP_NAME
  1. Confirm the running app. Read the new version from the startup banner, or list the nested jars inside the running container.
cf logs APP_NAME --recent
cf ssh APP_NAME -c 'ls app/BOOT-INF/lib | grep spring-boot-'
  1. Repeat the outside check from step 5 above. A protected page must now ask for login.

5. If you cannot patch today

The advisory gives one workaround: "Applications that cannot upgrade immediately can work around this issue by defining their own security configuration." In practice that means a SecurityFilterChain bean with your access rules, which the reference says replaces the default configuration. Its limit is that you now own those rules, including Actuator rules, and a mistake there is a new hole. Test the chain before pushing it.

The documented switch management.cloudfoundry.enabled=false turns off the /cloudfoundryapplication endpoints (docs). The advisory does not list it as a mitigation and does not say whether it restores the default security, so do not rely on it alone.

Generic cuts, not from the vendor: unmap the public route from affected apps until they are fixed, and keep management.endpoints.web.exposure.include at its default so only /health is reachable.

6. How to tell if you were already hit

Neither the advisory nor the CVE record publishes indicators, and there is no public write-up of exploitation at the time of writing. Review Cloud Foundry router and application access logs for unauthenticated requests to /actuator/ paths and to pages that normally require login. The general pattern after a missing-authentication bug is that attackers read configuration and credentials from the environment and use them elsewhere. If env or heapdump were exposed, rotate the secrets they could have shown.

7. How autonomous DevOps handles a bug like this

Compass, Beamreach's open-source operations agent for AWS, does not cover this CVE: it is AWS only, Cloud Foundry is a different platform, Java is not on its default product list, and Maven and Gradle manifests are not among the lockfiles it maps. The three questions this bug asks still apply: do we run an affected version on something exposed, is the fix in the running workload, and what covers the gap. An always-current inventory of each app's platform, Spring Boot version, web stack, and presence of Actuator and a SecurityFilterChain bean would answer steps 1 to 4 above in one query. The fix is a single version pin, the kind of deterministic edit a patch pull request can make, followed by a push a person approves. Until it lands, a decoy credential in the app's environment is a tripwire for anyone reading env through an unprotected Actuator; it only catches an attacker who touches the decoy, and it does not fix the vulnerability. Our own experience with both approaches is at PHP2Shell contained in two minutes and the first 24 hours checklist.

8. Sources

9. FAQ

Am I affected by CVE-2026-59411 if my Spring Boot app is not on Cloud Foundry?

No, according to the advisory. Cloud Foundry detection in the Spring Boot source happens when VCAP_APPLICATION or VCAP_SERVICES is in the environment. Apps on Kubernetes, ECS, virtual machines or other platforms that do not set those variables are not affected.

Which Spring Boot version fixes CVE-2026-59411?

Spring Boot 4.1.3 and 4.0.10 are the open-source fixes, both on Maven Central since 19 November 2026. 4.1.2.1, 4.0.9.1 and 3.5.18 are enterprise-support releases. Spring Boot 3.5.x has no open-source fix because its OSS support ended on 30 June 2026.

Is CVE-2026-59411 being exploited?

Not that anyone has reported. The Spring advisory does not mention exploitation, and the CVE is not in the CISA Known Exploited Vulnerabilities catalogue as of 2 December 2026. The bug needs no credentials and no user interaction, so treat an exposed app as urgent regardless.

Is there a workaround for CVE-2026-59411 without upgrading?

Yes. Spring says applications that cannot upgrade immediately can define their own security configuration. In Spring Boot terms that is a SecurityFilterChain bean with your own access rules, which makes the default auto-configuration back off.

Does CVE-2026-59411 affect Spring Boot apps that use WebFlux?

No. The advisory states that reactive web applications are not affected. Only servlet-based applications with Actuator and the default security are.

Related

Last checked: 2 December 2026. Written from the vendor advisory and the CVE record, linked below. Confirm against the vendor advisory before acting.

Related: CVE Watch: all pages · How to protect against *2Shell vulnerabilities · Automated patching compared · AWS canary credentials