CVE Catalog

CVE-2026-54354

HighCVSS 8.2
Published: Translated: NVD NIST

Summary

In MapServer prior to 8.6.4, PostGIS filter translation in msPostGISLayerTranslateFilter() treats a filteritem as numeric when CONNECTIONTYPE POSTGIS and Integer metadata are configured, but does not verify that attacker-controlled CGI or OGC API Features input is a numeric literal. The unquoted input is concatenated into the SQL predicate, enabling SQL injection.

Risk Assessment

An unauthenticated remote attacker can bypass predicates, enumerate unintended records, perform boolean-based or time-based SQL injection, and increase database load.

Recommendation

Upgrade MapServer to version 8.6.4 or later; until then restrict access to public query endpoints.

Other vulnerabilities in MapServer

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS