CVE-2024-5742: GNU Nano - Privilege Escalation
- Cve: CVE-2024-5742
- Name: GNU Nano - Privilege Escalation
- Description: A vulnerability was found in GNU Nano that allows a possible privilege escalation through an insecure temporary file. If Nano is killed while editing, a file it saves to an emergency file with the permissions of the running user provides a window of opportunity for attackers to escalate privileges through a malicious symlink.
- Impact: Attackers can escalate privileges by exploiting insecure temporary files and symlinks, potentially leading to full system compromise.
- Remediation: Update to the latest version of GNU Nano that addresses insecure temporary file handling.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs to create a malicious symlink during Nano's execution
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00344
- Epss percentile: 0.28277
- Assignee: [email protected]
- Published at: 2024-06-12T09:15:23Z
- Age in days: 895
- Modified at: 2026-11-06T15:17:03Z
- Patch available: yes
- References total: 6
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-5742
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-59 | Improper Link Resolution Before File Access |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gnu:nano | >= 2.2.0, < 8.0 | no | nvd | /v1/products/gnu/nano |
| redhat:enterprise_linux | = 9.0, = 8.0, = 7.0, = 6.0 | no | nvd | /v1/products/redhat/enterprise_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts