CVE-2023-25157CWE-89

Unfiltered SQL Injection Vulnerabilities in Geoserver

Critical · published February 21, 2023

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.7th percentile for exploit probability.

CVSS v3.1
9.8
EPSS
85%
Percentile
99.7
In the wild
Unconfirmed
What it is

🚨 An exploitable flaw in GeoServer opens the door to some very sneaky data access methods! 🔥 Think of GeoServer like a library that offers specialized books on geospatial data. When the catalogue system runs amok, anyone can access restricted sections and read sensitive documents without the librarian checking their ID! 📚 An attacker could potentially manipulate the GeoServer to access unauthorized geospatial data, leading to sensitive information exposure. This could be mind-blowingly detrimental, allowing them to extract critical location-based data that could be used for malicious purposes. Imagine your private maps and location details suddenly becoming public knowledge!

Put simply

Think of GeoServer like a library that offers specialized books on geospatial data. When the catalogue system runs amok, anyone can access restricted sections and read sensitive documents without the librarian checking their ID! 📚 This vulnerability stems from improper handling of CQL in GeoServer, specifically in the PostGIS Datastore, allowing misuse of functions like `strEndsWith`, `strStartsWith`, and `PropertyIsLike`, which can lead to unauthorized data exposure.

What to do

An attacker could potentially manipulate the GeoServer to access unauthorized geospatial data, leading to sensitive information exposure. This could be mind-blowingly detrimental, allowing them to extract critical location-based data that could be used for malicious purposes. Imagine your private maps and location details suddenly becoming public knowledge! Upgrade GeoServer to version 2.21.4 or 2.22.2 to patch this issue. If an upgrade isn't possible, disable the PostGIS Datastore *encode functions* setting and enable the *preparedStatements* setting to safeguard against misuse. Don't delay — act now! You’ve got this! Follow the steps, and you’ll have your GeoServer locked down in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.85247 · 99.7th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2023-02-21T21:00Z
EPSS history
Timeline
  • 21 FEB 21:00Z
    Unfiltered SQL Injection Vulnerabilities in Geoserver
    cvelistv5