# CVE-2021-22051: Request injection in Spring Cloud Gateway

Source: https://junglewise.ai/threats/cve-2021-22051-request-injection-in-spring-cloud-gateway  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-11-10  
License: CC BY 4.0 with a link back

CVE-2021-22051 · Severity: low · CVSS 3.1 · Published 2021-11-10

Request injection in Spring Cloud Gateway

Technologies: [org.springframework.cloud:spring-cloud-gateway (Maven)](https://junglewise.ai/threats/technologies/org-springframework-cloud-spring-cloud-gateway). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-22051 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-22051 being exploited in the wild.

**How severe is CVE-2021-22051?** Low severity, with a CVSS score of 3.1, published 10 November 2021.

**Which products and versions are affected?** org.springframework.cloud:spring-cloud-gateway (Maven) ECOSYSTEM:introduced=3.0.0,fixed=3.0.5.

**Is there a fix for CVE-2021-22051?** Yes. org.springframework.cloud:spring-cloud-gateway (Maven): upgrade to 3.0.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22051?** Check whether you run org.springframework.cloud:spring-cloud-gateway (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework.cloud:spring-cloud-gateway (Maven): upgrade to 3.0.5 or later

  ```sh
  # set org.springframework.cloud:spring-cloud-gateway to 3.0.5 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.cloud:spring-cloud-gateway (Maven) ECOSYSTEM:introduced=3.0.0,fixed=3.0.5

## Identifiers

- CVE-2021-22051
- GHSA-2r2v-q399-qq93

## Related threats

- [VMware Spring Cloud Gateway ignored SSL bundle configuration](https://junglewise.ai/threats/cve-2026-22750-vmware-spring-cloud-gateway-ignored-ssl-bundle-configuration)
- [Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured](https://junglewise.ai/threats/cve-2022-22947-vmware-spring-cloud-gateway-code-injection-vulnerability)
