CVE-2021-40822:
GeoServer allows SSRF via the option for setting a proxy host
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99639%
CWE
Published
5/3/2022
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.geoserver:gs-main | maven | <= 2.18.5 | |
org.geoserver:gs-main | maven | >= 2.19.0, <= 2.19.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper validation
of proxy host configurations. GeoServer's security subsystem handles proxy settings through components like ProxyAuthentication
and SecurityManager
. The high-confidence entry point is in ProxyAuthenticator.configure
where proxy parameters are applied to HTTP
clients. The medium-confidence entry in SecurityManager
relates to persistence of potentially tainted configuration
data. While exact code references are unavailable, these components align with the SSRF
pattern described and GeoServer's security architecture.