CVE-2018-1000001

high
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
9.0

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.

Predictions

Exploit likelihood
20%
Patch ETA

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 with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-44889 local linux verified
Metasploit · 2018-06-13

glibc - 'realpath()' Privilege Escalation (Metasploit)

Source code queued for fetch — refresh in a moment.
EDB-43775 local linux verified
halfdog · 2018-01-16

glibc < 2.26 - 'getcwd()' Local Privilege Escalation

Source code queued for fetch — refresh in a moment.

Metasploit modules

glibc 'realpath()' Privilege Escalation
Source fetch failed: fetch_error — view the original via the link above.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
Fixed 2.26-11
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2.26-4
sid Fixed 2.26-4
forky Fixed 2.26-4
bullseye Fixed 2.26-4
bookworm Fixed 2.26-4

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.