CVE-2022-24846

9.1 CRITICAL

📋 TL;DR

This vulnerability in GeoWebCache allows arbitrary code execution via an unchecked JNDI lookup in the disk quota mechanism. Attackers with admin-level access to GeoServer's user interface can exploit this remotely, while GeoWebCache requires local configuration file access. The vulnerability affects systems using GeoWebCache with GeoServer integration.

💻 Affected Systems

Products:
  • GeoWebCache
  • GeoServer
Versions: GeoWebCache versions before 1.21.0, 1.20.2, 1.19.3
Operating Systems: All platforms running Java
Default Config Vulnerable: ✅ No
Notes: GeoWebCache requires local configuration access, but GeoServer provides a remote admin interface that can trigger the vulnerability.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote attacker with admin credentials gains full system control via arbitrary code execution, potentially leading to data theft, system compromise, or ransomware deployment.

🟠

Likely Case

Privileged attacker exploits the vulnerability to execute malicious code on the server, compromising the GeoWebCache/GeoServer instance and potentially adjacent systems.

🟢

If Mitigated

With proper access controls and network segmentation, impact is limited to the GeoWebCache service itself, though code execution would still be possible.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires admin credentials for GeoServer interface or local file access for GeoWebCache configuration.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: GeoWebCache 1.21.0, 1.20.2, 1.19.3

Vendor Advisory: https://github.com/GeoWebCache/geowebcache/security/advisories/GHSA-4v22-v8jp-438r

Restart Required: Yes

Instructions:

1. Download patched version from official repository. 2. Backup configuration files. 3. Stop GeoWebCache service. 4. Replace with patched version. 5. Restart service.

🔧 Temporary Workarounds

Disable disk quota feature

all

Remove or disable disk quota configuration to prevent JNDI lookup

Edit geowebcache.xml and remove <diskQuota> section

Restrict admin access

all

Limit GeoServer admin interface access to trusted IPs only

Configure firewall rules or web server access controls

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate GeoWebCache/GeoServer from critical systems
  • Enforce multi-factor authentication for all admin accounts and monitor for suspicious activity

🔍 How to Verify

Check if Vulnerable:

Check GeoWebCache version and configuration for disk quota settings

Check Version:

Check geowebcache.xml or application logs for version information

Verify Fix Applied:

Verify installed version is 1.21.0, 1.20.2, or 1.19.3 or later

📡 Detection & Monitoring

Log Indicators:

  • Unusual JNDI lookup patterns in GeoWebCache logs
  • Admin login attempts from unexpected sources

Network Indicators:

  • Outbound LDAP/RMI connections from GeoWebCache server
  • Unusual traffic to GeoServer admin interface

SIEM Query:

source="geowebcache.log" AND "JNDI" OR source="geoserver.log" AND "admin" AND "login"

🔗 References

📤 Share & Export