CVE-2021-40822 GeoServer allows SSRF via the option for setting a proxy host
Attackers can exploit a proxy host setting in GeoServer to perform Server-Side Request Forgery, potentially accessing internal resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-40822?
CVE-2021-40822 is a high-severity server-side request forgery vulnerability in n/a, published on 1 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
GeoServer through 2.18.5 and 2.19.x through 2.19.2 allows SSRF via the option for setting a proxy host.
Weakness: CWE-918
Which versions are affected by CVE-2021-40822?
4 open source packages ship an affected version, including org.geoserver:gs-main. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.geoserver:gs-main Maven | All versions to 2.18.5 | None |
org.geoserver:gs-main Maven | All versions to 2.18.5 | None |
org.geoserver:gs-main Maven | From 2.19.0 to 2.19.2 | None |
org.geoserver:gs-main Maven | From 2.19.0 to 2.19.2 | None |
Products include Osgeo Geoserver.
How do I fix CVE-2021-40822?
No fix has been published for CVE-2021-40822 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2021-40822 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-40822 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2023-25157 Unfiltered SQL Injection Vulnerabilities in Geoserver
- CVE-2024-34711 GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
- CVE-2023-41339 Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer
- CVE-2023-43795 WPS Server Side Request Forgery in GeoServer
- CVE-2024-29198 GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
Sources
Also known as GHSA-rr33-j5p5-ppf8.