{"id":"CVE-2026-54354","aliases":["CVE-2026-54354"],"related":[],"kind":"vulnerability","state":"published","title":"MapServer: PostGIS Numeric Filter Value SQL Injection in MapServer Runtime Query Translation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-17T20:22:57.842Z","modified":"2026-09-24T21:19:05.340Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","score":8.2,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":">= 8.4.0, < 8.6.4","status":"affected"}],"vendor":"MapServer","product":"MapServer","source":"cvelist"}],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MapServer/MapServer/pull/7516","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-18T14:39:52.709Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54354","url":"https://www.cve.org/CVERecord?id=CVE-2026-54354","licence":"CVE Terms of Use","modified":"2026-09-18T14:43:41.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54354","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54354","licence":"Public domain","modified":"2026-09-24T21:19:05.340Z"}],"updatedAt":"2026-11-25T22:59:39.513Z","epss":{"score":0.00409,"percentile":0.37212,"date":"2026-12-01T12:00:22.000Z"}}