CVE-2026-77328: MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c
Vulnerability summary
CVE-2026-77328 is a medium (CVSS 6.9) vulnerability in mapserver.
Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 20-11-2026PublishedVulnerability first disclosed.
Description
MapServer is a system for developing web-based GIS applications. Prior to 8.6.5, MapServer's PostgreSQL JOIN implementation in src/mappostgresql.c copies the source layer attribute selected by JOIN FROM into joininfo->from_value and embeds it without parameterization or escaping into a dynamically generated PostgreSQL query executed by PQexec(). When PostgreSQL JOIN support is enabled, an attacker who can control that source feature attribute can inject quote characters and SQL operators that alter the intended WHERE predicate. This second-order injection can cause unintended rows and JOIN attributes to be returned, potentially exposing information from unrelated PostgreSQL records. This issue is fixed in version 8.6.5.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Mapserver1 product
- mapserver< 8.6.5
1 vendor · 1 product
References
6 links- github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rwX Refsource CONFIRM
- github.com/MapServer/MapServer/pull/7546X Refsource MISC
- github.com/MapServer/MapServer/pull/7566X Refsource MISC
- github.com/MapServer/MapServer/releases/tag/rel-8-6-5X Refsource MISC