Heap-based buffer overflow in the strip_escapes function in signal.c in GNU ed before 1.0…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Complete · Complete · Complete
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
Heap-based buffer overflow in the strip_escapes function in signal.c in GNU ed before 1.0 allows context-dependent or user-assisted attackers to execute arbitrary code via a long filename. NOTE: since ed itself does not typically run with special privileges, this issue only crosses privilege boundaries when ed is invoked as a third-party component.
Why it matters now
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 · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:ed:0.2:*:*:*:*:*:*:* | 0.2 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.3:*:*:*:*:*:*:* | 0.3 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.4:*:*:*:*:*:*:* | 0.4 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.5:*:*:*:*:*:*:* | 0.5 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.6:*:*:*:*:*:*:* | 0.6 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.7:*:*:*:*:*:*:* | 0.7 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.8:*:*:*:*:*:*:* | 0.8 | Vulnerable | GNU |
| cpe:2.3:a:gnu:ed:0.9:*:*:*:*:*:*:* | 0.9 | Vulnerable | GNU |
- cpe:2.3:a:gnu:ed:0.2:*:*:*:*:*:*:* Versions 0.2 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.3:*:*:*:*:*:*:* Versions 0.3 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.4:*:*:*:*:*:*:* Versions 0.4 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.5:*:*:*:*:*:*:* Versions 0.5 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.6:*:*:*:*:*:*:* Versions 0.6 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.7:*:*:*:*:*:*:* Versions 0.7 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.8:*:*:*:*:*:*:* Versions 0.8 Vulnerable ·GNU
- cpe:2.3:a:gnu:ed:0.9:*:*:*:*:*:*:* Versions 0.9 Vulnerable ·GNU
Remediation
Red Hat 1 advisory
- RHSA-2008:0946 Released 2008-10-21 · Red Hat rating Moderateed security update
- Red Hat Desktop version 3 ed-0.2-33.30E.1, ed-0.2-33.30E.1.i386
- Red Hat Enterprise Linux (v. 5 server) ed-0.2-39.el5_2, ed-0.2-39.el5_2.i386, ed-0.2-39.el5_2.ia64 +1
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1 ed-0.2-21.1, ed-0.2-21.1.i386, ed-0.2-21.1.ia64
- Red Hat Enterprise Linux AS version 3 ed-0.2-33.30E.1, ed-0.2-33.30E.1.i386, ed-0.2-33.30E.1.ia64 +1
- Red Hat Enterprise Linux AS version 4 ed-0.2-36.el4_7.1, ed-0.2-36.el4_7.1.i386, ed-0.2-36.el4_7.1.ia64 +1
- Red Hat Enterprise Linux Desktop (v. 5 client) ed-0.2-39.el5_2, ed-0.2-39.el5_2.i386
- Red Hat Enterprise Linux Desktop version 4 ed-0.2-36.el4_7.1, ed-0.2-36.el4_7.1.i386
- Red Hat Enterprise Linux ES version 2.1 ed-0.2-21.1, ed-0.2-21.1.i386
- Red Hat Enterprise Linux ES version 3 ed-0.2-33.30E.1, ed-0.2-33.30E.1.i386, ed-0.2-33.30E.1.ia64
- Red Hat Enterprise Linux ES version 4 ed-0.2-36.el4_7.1, ed-0.2-36.el4_7.1.i386, ed-0.2-36.el4_7.1.ia64
- Red Hat Enterprise Linux WS version 2.1 ed-0.2-21.1, ed-0.2-21.1.i386
- Red Hat Enterprise Linux WS version 3 ed-0.2-33.30E.1, ed-0.2-33.30E.1.i386, ed-0.2-33.30E.1.ia64
- Red Hat Enterprise Linux WS version 4 ed-0.2-36.el4_7.1, ed-0.2-36.el4_7.1.i386, ed-0.2-36.el4_7.1.ia64
- Red Hat Linux Advanced Workstation 2.1 ed-0.2-21.1, ed-0.2-21.1.ia64
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2008:0946 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2008:0946 |
| Red Hat Linux Advanced Workstation 2.1 | Fixed | RHSA-2008:0946 |
Timeline
- 2026-10-02 Threatist record created from CVE-2008-3916
- 2026-10-03 Alias added: GHSA-j55v-8789-5phj
References
Advisory 6
Other 9
- ADV-2008-3347
- oval:org.mitre.oval:def:10678
- ADV-2011-0212
- [security-announce] 20100303 VMSA-2010-0004 ESX Service Console and vMA third party updates
- http://support.avaya.com/elmodocs2/security/ASA-2008-461.htm
- ADV-2008-2642
- [bug-ed] 20080821 Version 1.0 of GNU ed released
- http://www.vmware.com/security/advisories/VMSA-2009-0003.html
- ADV-2010-0528
More GNU Ed vulnerabilities
- TI-2017-03392 regex.c in GNU ed before 1.14.1 allows attackers to cause a denial of service (crash) via… CVSS 3.0HIGH 7.5
- TI-2006-06682 GNU ed before 0.3 allows local users to overwrite arbitrary files via a symlink attack on… CVSS 2.0MEDIUM 4.6
- TI-2000-01125 GNU ed before 0.2-18.1 allows local users to overwrite the files of other users via a symlink attack. CVSS 2.0MEDIUM 4.6
Sources
- CVE-2008-3916 · CVE Program
- CVE-2008-3916 · NVD
- FIRST EPSS
- GHSA-j55v-8789-5phj · GitHub Advisory Database · CC BY 4.0
- CVE-2008-3916 · 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