目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-76904— GeoTools PostGIS层JSON数组存在未授权SQL注入漏洞

一分钟漏洞结论

影响对象
geotools geotools
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

GeoTools 是一个开源的 Java 库,提供用于处理地理空间数据的工具。从版本 30.5 起,至版本 33.6、34.5 和 33.6(原文中 33.6 重复出现,疑为笔误)之前的版本中,当使用 PostGIS DataStore 实现执行 OGC 过滤器时,存在一个 SQL 注入漏洞,具体涉及 函数。该漏洞要求在 PostGIS 12 或更高版本环境下,且数据库表中包含字符串(String)或 JSON 类型字段。 在 PostGIS 12 及更高版本中, 函数会将 参数直接写入生成的 SQL 语句中,而未

CVSS 9.8 · Critical EPSS 0.52% · P42

公开利用映射 1

影响版本矩阵 3

厂商产品 版本范围状态
geotools geotools = 35.0 affected
>= 34.0, < 34.5 affected
>= 30.5, < 33.6 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-76904 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
来源: 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.
来源: 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
来源: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
geotools geotools = 35.0 -

二、漏洞 CVE-2026-76904 的公开POC

# POC 描述 源链接 神龙链接
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详情
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-76904 的情报信息

登录查看更多情报信息。

CVE-2026-76904 补丁与修复 (3)

CVE-2026-76904 厂商安全公告 (2)

CVE-2026-76904 厂商页面 (3)

CVE-2026-76904 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-76904

暂无评论


发表评论