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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| pgrouting | pgrouting | {"endIncluding":"4.0.3"} | |
References
- 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://github.com/pgRouting/pgrouting/blob/v4.0.3/src/cpp_common/get_check_data.cpp#L533-L545
- https://www.vulncheck.com/advisories/pgrouting-through-4.0.3-denial-of-service-via-pgr-turnrestrictedpath-null-restriction-path
CWEs
CWE-476
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.