CVE-2025-41243

10.0 CRITICAL

📋 TL;DR

CVE-2025-41243 allows attackers to modify Spring Environment properties through unsecured Spring Boot actuator endpoints in Spring Cloud Gateway Server Webflux. This vulnerability affects applications using Spring Cloud Gateway Server Webflux with exposed actuator endpoints that lack proper security controls.

💻 Affected Systems

Products:
  • Spring Cloud Gateway Server Webflux
Versions: Specific affected versions not specified in CVE description, check Spring Security advisory
Operating Systems: All
Default Config Vulnerable: ✅ No
Notes: Requires specific configuration: Spring Boot actuator dependency, gateway actuator endpoint enabled, and unsecured endpoints

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise through remote code execution by modifying critical Spring properties

🟠

Likely Case

Unauthorized configuration changes leading to service disruption or data exposure

🟢

If Mitigated

No impact if actuator endpoints are properly secured or disabled

🌐 Internet-Facing: HIGH - Directly exploitable if endpoints are exposed to the internet without authentication
🏢 Internal Only: MEDIUM - Still exploitable by internal attackers or through lateral movement

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires network access to unsecured actuator endpoints

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check Spring Security advisory for specific patched versions

Vendor Advisory: https://spring.io/security/cve-2025-41243

Restart Required: Yes

Instructions:

1. Update Spring Cloud Gateway to patched version 2. Apply Spring Security configuration to secure actuator endpoints 3. Restart application

🔧 Temporary Workarounds

Disable gateway actuator endpoint

all

Remove gateway from exposed actuator endpoints

management.endpoints.web.exposure.include=health,info

Secure actuator endpoints

all

Add authentication and authorization to actuator endpoints

spring.security.user.name=admin
spring.security.user.password=securepassword
management.endpoint.health.roles=ACTUATOR

🧯 If You Can't Patch

  • Disable actuator endpoints entirely by removing Spring Boot actuator dependency
  • Implement network-level access controls to restrict access to actuator endpoints

🔍 How to Verify

Check if Vulnerable:

Check if application uses Spring Cloud Gateway Server Webflux, has Spring Boot actuator dependency, and has management.endpoints.web.exposure.include containing 'gateway'

Check Version:

Check Spring Boot and Spring Cloud Gateway version in pom.xml or build.gradle

Verify Fix Applied:

Verify actuator endpoints are either disabled or properly secured with authentication

📡 Detection & Monitoring

Log Indicators:

  • Unauthorized access attempts to /actuator/gateway endpoints
  • Unexpected property modification logs

Network Indicators:

  • HTTP requests to actuator endpoints from unauthorized sources

SIEM Query:

source_ip NOT IN (trusted_ips) AND url_path CONTAINS '/actuator/gateway'

🔗 References

📤 Share & Export