Advisories

pgRouting through 4.0.3 Denial of Service via pgr_turnRestrictedPath NULL Restriction Path

Go back
Severity
high
Date
Affecting
  • pgRouting <= 4.0.3

CWE
  • CWE-476 NULL Pointer Dereference
CVSS
7.1
CVSS V4 Vector
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
Credit
Zachariah Mithani (AploSec)
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.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.