CVE-2026-77328
MapServer is a system for developing web-based GIS applications. …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f
- github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce
- github.com/MapServer/MapServer/pull/7546
- github.com/MapServer/MapServer/pull/7566
- github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw
- nvd.nist.gov/vuln/detail/CVE-2026-77328
- cve.org/CVERecord?id=CVE-2026-77328
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.