In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which…
Priority MEDIUM 49CWE-787Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 10 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.13368 96th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by the CNA and NVD
Fix Partial Red Hat: 1 advisoryRed Hat: 10 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 12
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:* | up to 2.26 | Vulnerable | GNU |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
- cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:* Versions up to 2.26 Vulnerable ·GNU
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* Versions 12.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
Remediation
Red Hat 1 advisory
- RHSA-2018:0805 Released 2018-04-10 · Red Hat rating Moderateglibc security, bug fix, and enhancement update
- Red Hat Enterprise Linux Client (v. 7) glibc-2.17-222.el7, glibc-common-2.17-222.el7, glibc-devel-2.17-222.el7 +3
- Red Hat Enterprise Linux Client Optional (v. 7) glibc-static-2.17-222.el7
- Red Hat Enterprise Linux ComputeNode (v. 7) glibc-2.17-222.el7, glibc-common-2.17-222.el7, glibc-devel-2.17-222.el7 +3
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) glibc-static-2.17-222.el7
- Red Hat Enterprise Linux Server (v. 7) glibc-2.17-222.el7, glibc-2.17-222.el7.ppc, glibc-common-2.17-222.el7 +5
- Red Hat Enterprise Linux Server Optional (v. 7) glibc-static-2.17-222.el7, glibc-static-2.17-222.el7.ppc
- Red Hat Enterprise Linux Workstation (v. 7) glibc-2.17-222.el7, glibc-common-2.17-222.el7, glibc-devel-2.17-222.el7 +3
- Red Hat Enterprise Linux Workstation Optional (v. 7) glibc-static-2.17-222.el7
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) glibc-2.17-222.el7, glibc-common-2.17-222.el7, glibc-devel-2.17-222.el7 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) glibc-static-2.17-222.el7
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:0805 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:0805 |
Not affected: 4 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1000001
- 2026-10-03 Alias added: GHSA-gxfx-pp2w-7f8c
References
Sources
- CVE-2018-1000001 · CVE Program
- CVE-2018-1000001 · NVD
- FIRST EPSS
- GHSA-gxfx-pp2w-7f8c · GitHub Advisory Database · CC BY 4.0
- CVE-2018-1000001 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences