All reports
High

glibc: realpath() buffer underflow when getcwd() returns relative path allows privilege escalation

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-1000001

Probability of exploitation in the next 30 days: 13.37%

FIRST EPSS · 2026-11-22

Description

In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination buffer leading to a buffer underflow and potential code execution.