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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-76904— GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

Quick assessment

Affected
geotools geotools
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.

GeoTools是GeoTools组织开源的一个地理空间数据处理框架。 GeoTools 30.5至33.6之前版本、34.0至34.5之前版本和35.0版本存在SQL注入漏洞,该漏洞源于使用PostGIS DataStore执行OGC Filters时jsonArrayContains函数未对value参数进行转义,导致SQL注入。

CVSS 9.8 · Critical EPSS 3.98% · P90

Public Exploits 1

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 3

VendorProduct Version RangeStatus
geotools geotools = 35.0 affected
>= 34.0, < 34.5 affected
>= 30.5, < 33.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-76904

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
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
Source: CVE Program / CVE List V5
Vulnerability Description
GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: `jsonArrayContains` function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater `jsonArrayContains(<column>, <pointer>, <value>)` function writes `<value>` into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.
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
GeoTools SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GeoTools是GeoTools组织开源的一个地理空间数据处理框架。 GeoTools 30.5至33.6之前版本、34.0至34.5之前版本和35.0版本存在SQL注入漏洞,该漏洞源于使用PostGIS DataStore执行OGC Filters时jsonArrayContains函数未对value参数进行转义,导致SQL注入。
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)

Affected Products

Vendor Product Affected Versions CPE Subscribe
geotools geotools = 35.0 -

II. Public POCs for CVE-2026-76904

# POC Description Source Link Shenlong Link
1 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/cves/2026/CVE-2026-76904.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-76904

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

Patches & Fixes for CVE-2026-76904 (3)

Vendor Advisories for CVE-2026-76904 (2)

Vendor Pages for CVE-2026-76904 (4)

IV. Related Vulnerabilities

V. Comments for CVE-2026-76904

No comments yet


Leave a comment