CVE-2026-40982: Spring Cloud Config Server unauthenticated directory traversal (CVSS 9.1); open-source fixes only for 4.3.x and 5.0.x
Unauthenticated directory traversal in Spring Cloud Config Server; open-source fixes only for the 4.3 and 5.0 branches
Analysis
Spring published CVE-2026-40982 on 2026-05-06: a request with a specially crafted URL can lead to a directory traversal in the spring-cloud-config-server module, which serves text and binary files to applications (Spring, 2026-05-06). The flaw affects 5.0.0 to 5.0.2, 4.3.0 to 4.3.2, 4.2.0 to 4.2.6, 4.1.0 to 4.1.9 and 3.1.13 and earlier; open-source fixes are 5.0.3 and 4.3.3, while 4.2.7, 4.1.10 and 3.1.14 are available through enterprise support only, and Spring lists no other mitigation (Spring, 2026-05-06). HeroDevs gives the CVSS 3.1 score as 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), unauthenticated and low-complexity (HeroDevs, 2026-05-08). HeroDevs first says an attacker can read or write arbitrary files the server process can access, then that the Config Server's resource endpoints are read-only, so the direct impact is information disclosure of secrets, credentials or any other file the server process can read, although the vector scores integrity High (HeroDevs, 2026-05-08). CERT-FR relayed the advisory together with the companion flaws CVE-2026-40981, CVE-2026-41002 and CVE-2026-41004 (CERT-FR, 2026-05-07). No source reports exploitation.
Updates2
CVE-2026-40982 scores CVSS 9.1, not 9.8 (HeroDevs, 2026-05-08), and Spring describes a directory traversal, not code execution (Spring, 2026-05-06). Open-source fixes exist only for the 5.0 and 4.3 branches; the 4.2, 4.1 and 3.1 fixes are available through enterprise support only (Spring, 2026-05-06).
HeroDevs states that the Config Server's resource endpoints are read-only, so the direct impact of the traversal is information disclosure: secrets, credentials or any other file the server process can read, which in typical deployments includes the secrets the Config Server centralizes for a fleet of microservices (HeroDevs, 2026-05-08). The same post also says an attacker can read or write arbitrary files, and the CVSS vector it gives scores integrity High (HeroDevs, 2026-05-08); Spring's advisory describes only a directory traversal (Spring, 2026-05-06).
Sources3
Revision history
- Published 2026-05-09-migrated
- Correction 2026-10-11T1307Z-audit
The CVSS was wrong: the score is 9.1, not 9.8. Not every maintained branch has a fix: only 4.3.x and 5.0.x have open-source releases, while 4.2.7, 4.1.10 and 3.1.14 are enterprise-support only. The flaw is a directory traversal, not remote code execution; the advisory is dated 2026-05-06; and the claim that Spring Cloud Config is pervasive in EU government projects had no source. The entry is rewritten with the per-branch fix table, a rating, an ATT&CK mapping and priority routine.
Changed: title headline summary event_date priority tags regions cves affected_products techniques sources classification actions body
- Improvement 2026-10-21T1149Z-audit
The impact is now stated as HeroDevs gives it: the resource endpoints are read-only, so the direct impact is disclosure of secrets, credentials and other files the server process can read, while the same post also mentions writing files and the CVSS vector scores integrity High. The exposure line no longer cites Spring for what the server can read, which Spring's advisory does not say.
Changed: body headline
AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.