{"id":"CVE-2026-54354","state":"PUBLISHED","title":"MapServer: PostGIS Numeric Filter Value SQL Injection in MapServer Runtime Query Translation","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.","publishedAt":"2026-09-17T20:22:57.842Z","updatedAt":"2026-09-18T14:43:41.551Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["MapServer MapServer"],"affected":[{"vendor":"MapServer","product":"MapServer","versions":[{"version":">= 8.4.0, < 8.6.4","status":"affected"}]}],"references":["https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p","https://github.com/MapServer/MapServer/pull/7516","https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247","https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e","https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4","https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54354.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54354","state":"PUBLISHED","datePublished":"2026-09-17T20:22:57.842Z","dateUpdated":"2026-09-18T14:43:41.551Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-12T19:23:22.318Z"},"containers":{"cna":{"title":"MapServer: PostGIS Numeric Filter Value SQL Injection in MapServer Runtime Query Translation","descriptions":[{"lang":"en","value":"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":[{"vendor":"MapServer","product":"MapServer","versions":[{"version":">= 8.4.0, < 8.6.4","status":"affected"}]}],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p","name":"https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MapServer/MapServer/pull/7516","name":"https://github.com/MapServer/MapServer/pull/7516","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247","name":"https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e","name":"https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4","name":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4","tags":["x_refsource_MISC"]},{"url":"https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6","name":"https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-17T20:22:57.842Z"},"source":{"advisory":"GHSA-xp29-8wp5-wc3p","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-18T14:39:52.709916Z","id":"CVE-2026-54354","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-18T14:43:41.551Z"}}]}}}