Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-54354MapServer: PostGIS Numeric Filter Value SQL Injection in MapServer Runtime Query Translation
High 8.2
In plain English
A high-severity SQL injection in MapServer from MapServer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
MapServer is a system for developing web-based GIS applications. Prior to 8.6.4, MapServer's PostGIS runtime filter translation in src/mappostgis.cpp and msPostGISLayerTranslateFilter() treats a filteritem as numeric when CONNECTIONTYPE POSTGIS and metadata such as gml_<item>_type=Integer are configured, but it does not verify that attacker-controlled CGI qstring or OGC API Features featureId input is a numeric literal. The unquoted input is concatenated into the generated PostgreSQL/PostGIS predicate, allowing an unauthenticated remote attacker with access to an affected query endpoint to bypass predicates, enumerate unintended records, perform boolean-based or time-based SQL injection, and increase database load. The issue does not by itself establish database modification capabilities. This issue is fixed in version 8.6.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mapserver | no fix listed | DEBIAN-CVE-2026-54354 |
| Debian:13 | mapserver | no fix listed | DEBIAN-CVE-2026-54354 |
| Debian:14 | mapserver | 8.6.4-1 | DEBIAN-CVE-2026-54354 |
| Ubuntu:22.04:LTS | mapserver | no fix listed | UBUNTU-CVE-2026-54354 |
| Ubuntu:24.04:LTS | mapserver | no fix listed | UBUNTU-CVE-2026-54354 |
| Ubuntu:26.04:LTS | mapserver | no fix listed | UBUNTU-CVE-2026-54354 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p x_refsource_CONFIRM
- https://github.com/MapServer/MapServer/pull/7516 x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247 x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e x_refsource_MISC
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4 x_refsource_MISC
- https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6 x_refsource_MISC