{"affected":[{"product":"MapServer","source":"CNA: GitHub_M","vendor":"MapServer","versions":[{"status":"affected","version":"< 8.6.5"}]},{"ecosystem":"","packageName":"MapServer JOIN with PostgreSQL","product":"MapServer JOIN with PostgreSQL","source":"GitHub GHSA-m3xh-ccmh-x8rw","vendor":"","versions":[{"status":"affected","version":"<= 8.6.4","versionType":"GitHub advisory range"}]}],"cveId":"CVE-2026-77328","cwes":["CWE-89"],"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.","epss":{"date":"2026-11-24","percentile":0.56424,"score":0.00772},"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"}],"kev":null,"metrics":[{"score":6.9,"severity":"medium","source":"CNA: GitHub_M","vector":"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","version":"4.0"},{"score":6.9,"severity":"medium","source":"NVD: security-advisories@github.com","vector":"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/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","version":"4.0"}],"modifiedAt":1795583918493,"publishedAt":1795201882309,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/pull/7546"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/pull/7566"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/pull/7546"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/pull/7566"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":[],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"},{"source":"GitHub Security Advisories","tags":["advisory"],"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"}],"remediation":[{"kind":"fix","source":"GitHub GHSA-m3xh-ccmh-x8rw","text":"MapServer JOIN with PostgreSQL: GitHub reports patched versions 8.6.5. Check the advisory for the affected release branch.","url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"}],"revision":"6e7fb890e761eb170d754c3b28dedd22991da9b511ff77d243c4c26c3abec36a","sources":[{"modifiedAt":1795580931737,"name":"CNA: GitHub_M","retrievedAt":1795583388309,"url":"https://www.cve.org/CVERecord?id=CVE-2026-77328"},{"modifiedAt":1795583918493,"name":"NVD","retrievedAt":1795587364353,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77328"},{"modifiedAt":1787254312000,"name":"GitHub Security Advisories","retrievedAt":1795390209519,"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795583402620,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-77328"}],"ssvc":{"assessedAt":1795580891039,"automatable":"yes","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c","updatedAt":1795587364353}