CVE-2023-34036
Forwarded header exploit with Spring HATEOAS on WebFlux
Reported by vmware · Published July 17, 2023
spring-hateoas is fixed in 2.1.1, 2.0.5 and 1.5.5 (Maven Central)
Reactive web applications that use Spring HATEOAS to produce hypermedia-based responses might be exposed to malicious forwarded headers if they are not behind a trusted proxy that ensures correctness of such headers, or if they don't have anything else in place to handle (and possibly discard) forwarded headers either in WebFlux or at the level of the underlying HTTP server. For the application to be affected, it needs to satisfy the following requirements: * It needs to use the reactive web stack (Spring WebFlux) and Spring HATEOAS to create links in hypermedia-based responses. * The application infrastructure does not guard against clients submitting (X-)Forwarded… headers.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.hateoas:spring-hateoas | Maven Central | 2.1.1, 2.0.5, 1.5.5 |
| spring_hateoas | vmware | 2.0.5, 1.5.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring HATEOAS | 1.5.4 or older, 2.0.4 or older, 2.1.0 |
| Maven | org.springframework.hateoas:spring-hateoas | 0, 2.0.0, 2.1.0 |
| Spring | Spring HATEOAS | 1.5.4, 2.0.4, 2.1.0 |
Timeline
- Jul 17, 2023 CVE Published
- Jul 17, 2023 PoC Published
- Jul 18, 2023 EPSS Score (30 in total, the first dated here)
- Jul 19, 2023 CVE Updated
- Mar 30, 2026 Security Advisory
- Aug 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-34036
vulnetix vdb fixes CVE-2023-34036
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-34036/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart