Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-25157— Unfiltered SQL Injection Vulnerabilities in Geoserver

Quick assessment

Affected
geoserver geoserver
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

GeoServer是一个用 Java 编写的开源软件服务器。允许用户共享和编辑地理空间数据。 GeoServer 2.21.4之前、2.22.2之前版本存在安全漏洞,该漏洞源于 ` ` 存在滥用 问题。

CVSS 9.8 · Critical EPSS 85.25% · P100

Public Exploits 1

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-25157

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unfiltered SQL Injection Vulnerabilities in Geoserver
Source: CVE Program / CVE List V5
Vulnerability Description
GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoServer includes support for the OGC Filter expression language and the OGC Common Query Language (CQL) as part of the Web Feature Service (WFS) and Web Map Service (WMS) protocols. CQL is also supported through the Web Coverage Service (WCS) protocol for ImageMosaic coverages. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should disable the PostGIS Datastore *encode functions* setting to mitigate ``strEndsWith``, ``strStartsWith`` and ``PropertyIsLike `` misuse and enable the PostGIS DataStore *preparedStatements* setting to mitigate the ``FeatureId`` misuse.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
GeoServer SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GeoServer是一个用 Java 编写的开源软件服务器。允许用户共享和编辑地理空间数据。 GeoServer 2.21.4之前、2.22.2之前版本存在安全漏洞,该漏洞源于 ``strEndsWith``、``strStartsWith`` 和 ``PropertyIsLike `` 存在滥用 问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

Vendor Product Affected Versions CPE Subscribe
geoserver geoserver >= 2.22.0, < 2.22.2 -

II. Public POCs for CVE-2023-25157

# POC Description Source Link Shenlong Link
1 CVE-2023-25157 - GeoServer SQL Injection - PoC https://github.com/win3zz/CVE-2023-25157 POC Details
2 CVE-2023-25157 SQL injection vulnerability found in GeoServer https://github.com/drfabiocastro/geoserver POC Details
3 None https://github.com/0x2458bughunt/CVE-2023-25157 POC Details
4 GeoServer & GeoTools SQL Injection (CVE-2023-25157 & CVE-2023-25158) https://github.com/murataydemir/CVE-2023-25157-and-CVE-2023-25158 POC Details
5 A script, written in golang. POC for CVE-2023-25157 https://github.com/7imbitz/CVE-2023-25157-checker POC Details
6 GeoServer OGC Filter SQL Injection Vulnerabilities https://github.com/Rubikcuv5/CVE-2023-25157 POC Details
7 Geoserver SQL Injection Exploit https://github.com/dr-cable-tv/Geoserver-CVE-2023-25157 POC Details
8 GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoServer includes support for the OGC Filter expression language and the OGC Common Query Language (CQL) as part of the Web Feature Service (WFS) and Web Map Service (WMS) protocols. CQL is also supported through the Web Coverage Service (WCS) protocol for ImageMosaic coverages. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should disable the PostGIS Datastore *encode functions* setting to mitigate ``strEndsWith``, ``strStartsWith`` and ``PropertyIsLike `` misuse and enable the PostGIS DataStore *preparedStatements* setting to mitigate the ``FeatureId`` misuse. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-25157.yaml POC Details
9 None https://github.com/Threekiii/Awesome-POC/blob/master/%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%BC%8F%E6%B4%9E/GeoServer%20OGC%20Filter%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E%20CVE-2023-25157.md POC Details
10 https://github.com/vulhub/vulhub/blob/master/geoserver/CVE-2023-25157/README.md POC Details
11 None https://github.com/custiya/geoserver-CVE-2023-25157 POC Details
12 CVE-2023-25157 exp https://github.com/charis3306/CVE-2023-25157 POC Details
13 GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoTools FilterToSqlHelper.constructEquality writes the expected argument of the jsonArrayContains CQL function RAW into the SQL string while only escaping the JSON pointer. A single quote in the value parameter breaks out of the PostgreSQL jsonb_path_exists string literal, enabling unauthenticated SQL injection. When the PostGIS backend runs with superuser privileges, the injection escalates to operating system command execution through PostgreSQL COPY TO PROGRAM. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should enable the PostGIS DataStore preparedStatements setting and disable encode functions as a workaround. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/geoserver/geoserver-jsonarraycontains-sqli.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-25157

请登录查看更多情报信息。

Patches & Fixes for CVE-2023-25157 (1)

Vendor Advisories for CVE-2023-25157 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2023-25157

No comments yet


Leave a comment