llamaCVEVulnerability Intelligence
/
geotools

CVE-2026-76904

GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

UnclearParche disponibleSQL injection
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos32 fuentes
Parche2 versiones33.6 · 34.5
Exposición90 dDesde la divulgación, 21 ago 2026, 3:13 p. m.
Detección87 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada
Verificada
21 ago 26
25 ago 26
27 ago 26
17 nov 26
18 nov 26
19 nov 26
21 ago 26
13 sept 26
5 oct 26
28 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-76904 divulgada · CVSS 9.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

¿Qué significa?The jsonArrayContains filter function in GeoTools does not safely handle input when OGC Filters run against a PostGIS DataStore, which lets an unauthenticated attacker run arbitrary SQL expressions in the database.
¿Quién está afectado?GeoTools 34.0 up to but not including 34.5, and 30.5 up to but not including 33.6. The setup also needs PostGIS 12 or greater with a String or JSON field, and OGC Filters using the PostGIS DataStore with jsonArrayContains. To check, look at the GeoTools version in your build dependencies and whether your code uses the PostGIS DataStore with OGC Filters.
¿Qué hacer?Upgrade GeoTools to the fixed version on your release line: 34.5 or later for the 34 line, or 33.6 or later for the 33 line. The facts do not include a separate fix entry, so these versions come from the affected ranges.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Requires PostGIS 12 or greater with a String or JSON field.“Requires PostGIS 12 or greater with a String or JSON field”
02
Uses OGC Filters with the PostGIS DataStore, specifically the jsonArrayContains function.“when executing OGC Filters with PostGIS DataStore implementation”
¿Quién debe revisar?Teams running GeoTools gt-jdbc-postgis (org.geotools:gt-jdbc-postgis) on PostGIS 12 or greater with String or JSON fields, using OGC filters with jsonArrayContains.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
org.geoserver.web:gs-app≥ 2.23.5 < 2.27.6
org.geoserver.web:gs-app≥ 2.28.0 < 2.28.5
geotools · org.geotools.jdbc:gt-jdbc-postgis≥ 30.5 < 33.6
geotools · org.geotools.jdbc:gt-jdbc-postgis≥ 34.0 < 34.5
org.geotools.jdbc:gt-jdbc-postgis≥ 35.0 < 35.1
2.23.5
2.27.6
2.28.0
2.28.5
30.5
33.6
34.0
34.5
35.0
35.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
geotools
Corregida 33.6, 34.5 — —
Versiones corregidas33.634.5
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
http/cves/2026/CVE-2026-76904.yaml
1
PoC en GitHub
YonLiud/CVE-2026-76904 · bickZero93/CVE-2026-76904
2
Ver los 2 repositorios de GitHub
YonLiud/CVE-2026-76904
bickZero93/CVE-2026-76904

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Fabricantehttps://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-76904.yaml
Exploithttps://github.com/YonLiud/CVE-2026-76904
Exploithttps://github.com/bickZero93/CVE-2026-76904
Otrahttps://github.com/geotools/geotools/pull/5829
Otrahttps://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176
Otrahttps://github.com/geotools/geotools/releases/tag/33.6
Otrahttps://github.com/geotools/geotools/releases/tag/34.5
Otrahttps://github.com/geotools/geotools/releases/tag/35.1
Otrahttps://osgeo-org.atlassian.net/browse/GEOT-7589
Otrahttps://osgeo-org.atlassian.net/browse/GEOT-7958
Otrahttps://osgeo-org.atlassian.net/browse/GEOT-7959

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.