# CVE-2018-1000001: 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 buffe…

- Severity: High 7.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 13.4%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2018-01-31T14:00:00.000Z
- Modified: 2026-06-17T01:32:10.787Z
- Weaknesses: CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu glibc: up to 2.26
- canonical ubuntu_linux: 12.04; 14.04; 16.04; 17.10
- redhat virtualization_host: 4.0
- redhat enterprise_linux_desktop: 7.0
- redhat enterprise_linux_server: 7.0
- redhat enterprise_linux_server_aus: 7.6
- redhat enterprise_linux_server_eus: 7.6
- redhat enterprise_linux_server_tus: 7.6
- redhat enterprise_linux_workstation: 7.0

## Every score

- NVD: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://www.exploit-db.com/exploits/44889/> (exploit, third-party-advisory, vdb-entry)
- <https://www.exploit-db.com/exploits/43775/> (exploit, third-party-advisory, vdb-entry)
- <http://seclists.org/oss-sec/2018/q1/38> (mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/3534-1/> (third-party-advisory, vendor-advisory)
- <https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/> (third-party-advisory)
- <http://www.securityfocus.com/bid/102525> (third-party-advisory, vdb-entry)
- <https://usn.ubuntu.com/3536-1/> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2018:0805> (third-party-advisory, vendor-advisory)
- <http://www.securitytracker.com/id/1040162> (third-party-advisory, vdb-entry)
- <https://security.netapp.com/advisory/ntap-20190404-0003/>

## Sources

- CVE List: [CVE-2018-1000001](https://www.cve.org/CVERecord?id=CVE-2018-1000001), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-1000001](https://nvd.nist.gov/vuln/detail/CVE-2018-1000001), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000001 · Whole record: https://cve.day/CVE-2018-1000001.json · Rebuilt by cve.day 2026-11-25T22:57:36.542Z
