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.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.7%top 47.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12mapserverno fix listedDEBIAN-CVE-2026-54354
Debian:13mapserverno fix listedDEBIAN-CVE-2026-54354
Debian:14mapserver8.6.4-1DEBIAN-CVE-2026-54354
Ubuntu:22.04:LTSmapserverno fix listedUBUNTU-CVE-2026-54354
Ubuntu:24.04:LTSmapserverno fix listedUBUNTU-CVE-2026-54354
Ubuntu:26.04:LTSmapserverno fix listedUBUNTU-CVE-2026-54354

Affected products (as reported)

VendorProductVersions
MapServer MapServer >= 8.4.0, < 8.6.4

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

References