Skip to main content
← All vulnerabilities
CVE-2023-34036GHSA-7M5C-FGWF-MWPH

Forwarded header exploit with Spring HATEOAS on WebFlux

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.5.5, 2.0.5, 2.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Spring Spring HATEOAS

    2.1.0

  • org.springframework.hateoas:spring-hateoasMaven

    fixed in 1.5.5

  • org.springframework.hateoas:spring-hateoasMaven

    From 2.0.0 · fixed in 2.0.5

  • org.springframework.hateoas:spring-hateoasMaven

    From 2.1.0 · fixed in 2.1.1

References 1

spring.io