CVE-2026-144602
DESCRIPTION
pgRouting through 4.0.3 contains a NULL pointer dereference vulnerability in pgr_turnRestrictedPath that allows database users to crash the PostgreSQL backend by supplying restriction rows with NULL or empty path arrays. Attackers can influence the restrictions query so the Rule constructor calls back() and pop_back() on an empty vector, triggering a segmentation fault that terminates all sessions and forces crash recovery.
CVSS
HIGH 7.1 · v4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/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:XWEAKNESSES
REFERENCES
- https://github.com/pgRouting/pgrouting/blob/v4.0.3/src/cpp_common/get_check_data.cpp#L533-L545
- https://github.com/pgRouting/pgrouting/blob/v4.0.3/src/cpp_common/rule.cpp#L36-L43
- https://github.com/pgRouting/pgrouting/blob/v4.0.3/src/ksp/turnRestrictedPath_driver.cpp#L142-L150
- https://www.vulncheck.com/advisories/pgrouting-through-4.0.3-denial-of-service-via-pgr-turnrestrictedpath-null-restriction-path
This record is mirrored from the NIST National Vulnerability Database and republished unchanged. It may have been revised or withdrawn since we last synced it; check the record at NVD before relying on it.