{"id":"CVE-2026-77328","aliases":[],"cve":{"records":[{"id":"CVE-2026-77328","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-20T19:24:11.618Z","published":"2026-11-20T19:11:22.309Z","modified":"2026-11-25T04:28:51.737Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-20T19:11:22.309Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-25T04:28:51.737Z"}],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/pull/7546","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/pull/7566","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-89","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-25T04:28:11.039750Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"total"}]}]},"title":"MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c","titleSource":"GitHub_M","descriptionSource":"GitHub_M","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.","score":6.9,"severity":"medium","published":"2026-11-20T19:11:22.309Z","modified":"2026-11-25T04:28:51.737Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"MapServer","name":"MapServer","platforms":[],"versions":[{"version":"< 8.6.5","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-77328"}],"remediation":[],"references":["https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rw","https://github.com/MapServer/MapServer/pull/7546","https://github.com/MapServer/MapServer/pull/7566","https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085f","https://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bce","https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"],"sources":[{"name":"CVE","id":"CVE-2026-77328","modified":"2026-11-25T04:28:51.737Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-77328"}],"assessments":[{"source":"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","score":6.9}],"sourceAffected":[],"observedAt":"2026-11-25T05:37:10.763Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T22:50:31.316Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T20:10:36.911Z","attemptedAt":"2026-11-20T20:10:36.911Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-20T20:10:36.109Z","attemptedAt":"2026-11-20T20:10:36.109Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-20T20:10:34.800Z","attemptedAt":"2026-11-20T20:10:34.800Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-20T20:10:33.649Z","attemptedAt":"2026-11-20T20:10:33.649Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-77328","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77328","modified":"2026-11-20T19:18:54.453","score":6.9,"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","checkedAt":"2026-11-20T20:10:36.911Z"}],"aiSummary":{"text":"MapServer's PostgreSQL JOIN implementation is vulnerable to second-order SQL injection in versions prior to 8.6.5, allowing an attacker controlling the source feature attribute to inject SQL operators and alter the intended query. The attacker must have access to control the source layer attribute. This can expose information from unrelated PostgreSQL records.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T19:46:06.486Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-77328"}]}}