CVE-2026-77328
published medium CVSS 4.0 · 6.9MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MapServer | — | MapServer< 8.6.5 | Affected | Not stated | GitHub_M |
| Debian | bookworm | mapserver | Advisory build | 8.0.0-3+deb12u2 | DLA-4935-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MapServer | MapServer | < 8.6.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command
References
6- https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f
- https://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce
- https://github.com/MapServer/MapServer/pull/7546
- https://github.com/MapServer/MapServer/pull/7566
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw
Provider assertions
2GitHub_M · cna
MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2a5577c2f8709fb5afedc944d56e80cc1e89fcbd5ca7c3d00aa08fa0448eb08d
- Ingested
- 25 Nov 2026, 04:37:37 UTC
- Source record
- Official CVE record