The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-40822

CVE-2021-40822: Osgeo GeoServer SSRF Vulnerability

CVE-2021-40822 is a server-side request forgery flaw in Osgeo GeoServer that enables attackers to abuse the proxy host setting. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-40822 Overview

CVE-2021-40822 is a Server-Side Request Forgery (SSRF) vulnerability affecting GeoServer, a popular open-source server for sharing geospatial data. The vulnerability exists in GeoServer through version 2.18.5 and versions 2.19.x through 2.19.2, allowing attackers to exploit the proxy host configuration option to perform unauthorized server-side requests.

Critical Impact

This SSRF vulnerability enables unauthenticated attackers to force the GeoServer instance to make arbitrary HTTP requests to internal or external resources, potentially exposing sensitive internal services, cloud metadata endpoints, and confidential data that should not be accessible from external networks.

Affected Products

  • OSGeo GeoServer versions up to and including 2.18.5
  • OSGeo GeoServer versions 2.19.0 through 2.19.2
  • Any deployments using the proxy host configuration feature

Discovery Timeline

  • 2022-05-02 - CVE-2021-40822 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-40822

Vulnerability Analysis

This Server-Side Request Forgery (SSRF) vulnerability resides in GeoServer's proxy host configuration functionality. GeoServer provides an option for administrators to configure a proxy host that the server uses when making outbound HTTP requests. However, insufficient validation of user-supplied input in this configuration allows attackers to manipulate the proxy settings to redirect requests to arbitrary destinations.

The vulnerability is classified under CWE-918 (Server-Side Request Forgery), which occurs when a web application fetches a remote resource without properly validating the user-supplied URL. In this case, the proxy host setting can be exploited to make the GeoServer instance act as a proxy for accessing internal network resources that would otherwise be unreachable from an external attacker's position.

The attack requires no authentication and can be executed remotely over the network, making it particularly dangerous for internet-facing GeoServer deployments. Successful exploitation allows attackers to read sensitive data from internal systems, including cloud instance metadata services (such as AWS 169.254.169.254), internal databases, and other services protected behind network firewalls.

Root Cause

The root cause of this vulnerability is improper input validation in the proxy host configuration mechanism. GeoServer fails to adequately sanitize and validate URLs provided for the proxy host setting, allowing attackers to specify arbitrary internal or external destinations. The application does not implement proper restrictions on which hosts can be contacted through the proxy functionality, enabling SSRF attacks against internal infrastructure.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by manipulating the proxy host configuration option to redirect server-side requests. This allows the attacker to:

  1. Access internal network services that are not directly accessible from the internet
  2. Retrieve cloud metadata containing sensitive credentials and configuration data
  3. Scan internal network infrastructure to discover additional attack surfaces
  4. Potentially pivot to other internal systems using the compromised GeoServer as a proxy

The vulnerability enables attackers to bypass network segmentation and firewall protections by leveraging the trusted position of the GeoServer instance within the target network.

Detection Methods for CVE-2021-40822

Indicators of Compromise

  • Unusual outbound HTTP requests from GeoServer to internal IP addresses (e.g., 10.x.x.x, 172.16.x.x, 192.168.x.x)
  • Requests to cloud metadata endpoints such as 169.254.169.254 originating from the GeoServer process
  • Unexpected modifications to proxy host configuration settings in GeoServer
  • Anomalous network traffic patterns showing GeoServer connecting to services it normally wouldn't access

Detection Strategies

  • Monitor GeoServer access logs for requests containing internal IP addresses or localhost references in proxy-related parameters
  • Implement network-level monitoring to detect outbound connections from GeoServer to unexpected internal destinations
  • Deploy web application firewall (WAF) rules to detect and block SSRF attack patterns targeting the proxy configuration
  • Review GeoServer configuration changes and audit logs for unauthorized proxy host modifications

Monitoring Recommendations

  • Enable verbose logging on GeoServer to capture detailed request information including proxy-related activities
  • Configure network segmentation monitoring to alert on GeoServer instances attempting to reach internal-only services
  • Implement egress filtering rules and monitor for violations from GeoServer hosts
  • Set up alerts for any access attempts to cloud metadata services from application servers

How to Mitigate CVE-2021-40822

Immediate Actions Required

  • Upgrade GeoServer to version 2.19.3 or later immediately, which contains the fix for this vulnerability
  • For the 2.18.x branch, upgrade to the latest patched version available
  • If immediate patching is not possible, disable or restrict access to the proxy host configuration feature
  • Implement network-level controls to prevent GeoServer from accessing internal services or cloud metadata endpoints

Patch Information

The vulnerability has been addressed in GeoServer version 2.19.3 and subsequent releases. The fix is tracked in OSGeo Issue GEOS-10229. Organizations should review the version comparison between 2.19.2 and 2.19.3 to understand the specific changes implemented. The latest releases can be obtained from the GeoServer GitHub Releases page.

Workarounds

  • Implement strict network segmentation to isolate GeoServer instances from sensitive internal resources
  • Configure firewall rules to block outbound connections from GeoServer to internal IP ranges and cloud metadata services
  • Disable the proxy host configuration feature if not required for your deployment
  • Deploy a reverse proxy in front of GeoServer with SSRF protection capabilities to filter malicious requests
bash
# Example iptables rules to block SSRF to internal networks and cloud metadata
# Block access to common internal IP ranges from GeoServer host
iptables -A OUTPUT -d 169.254.169.254 -j DROP
iptables -A OUTPUT -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -j DROP
iptables -A OUTPUT -d 127.0.0.0/8 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechOsgeo Geoserver

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability93.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Releases Overview
  • Vendor Resources
  • GitHub Version Comparison

  • OSGeo Issue GEOS-10229

  • OSGeo Comment on GEOS-10229
  • Related CVEs
  • CVE-2023-43795: Osgeo GeoServer SSRF Vulnerability

  • CVE-2023-41339: GeoServer SSRF Vulnerability via WMS

  • CVE-2023-25157: OSGeo GeoServer SQL Injection Vulnerability

  • CVE-2022-24847: GeoServer JNDI Injection RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English