CVE-2021-40822 GeoServer allows SSRF via the option for setting a proxy host

High 7.5 Published Updated

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.

PackageAffectedFixed in
org.geoserver:gs-main MavenAll versions to 2.18.5None
org.geoserver:gs-main MavenAll versions to 2.18.5None
org.geoserver:gs-main MavenFrom 2.19.0 to 2.19.2None
org.geoserver:gs-main MavenFrom 2.19.0 to 2.19.2None

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.

Sources

Also known as GHSA-rr33-j5p5-ppf8.

Is CVE-2021-40822 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free