GeoServer 2.28.x < 2.28.5 SQL Injection

critical Web App Scanning Plugin ID 115431

Synopsis

GeoServer 2.28.x < 2.28.5 SQL Injection

Description

According to its banner, the version of GeoServer running on the remote host is 2.27.1 prior to 2.27.6, or 2.28.x prior to 2.28.5, or 3.0.0. It is, therefore, affected by an unauthenticated SQL injection vulnerability in the jsonArrayContains OGC Filter function, provided by the bundled GeoTools PostGIS data store.

The jsonArrayContains(<column>, <pointer>, <value>) function writes <value> into the generated SQL without escaping it, allowing an unauthenticated, remote attacker to execute arbitrary SQL expressions in the database. Exploitation requires a PostGIS data store running PostGIS 12 or greater with a String or JSON field. This issue is a regression of CVE-2023-25158 limited to the jsonArrayContains function, and the mitigations documented for that issue, enabling prepared statements and disabling encode functions, are not effective.

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to GeoServer version 2.28.5 or later.

See Also

https://geoserver.org/announcements/vulnerability/2026/08/14/geoserver-2-27-6-released.html

https://geoserver.org/announcements/vulnerability/2026/08/14/geoserver-2-28-5-released.html

https://geoserver.org/announcements/vulnerability/2026/08/14/geoserver-3-0-1-released.html

https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh

Plugin Details

Severity: Critical

ID: 115431

Type: Version Based

Published: 8/19/2026

Updated: 8/19/2026

Scan Template: api, basic, full, pci, scan

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: Tenable

Vulnerability Information

CPE: cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 8/14/2026

Reference Information