CVE-2024-5742
MEDIUM 6.7CVSS 3.1Nano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned file
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.
- Published
- 12 Jun 2024
- Last modified
- 25 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-59
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Secondary) | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| CVE List | redhat | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gnu | nanocpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:* |
>= 2.2.0, < 8.0 | 8.0 |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| CVE List | https://git.savannah.gnu.org/git/nano.git | nano | all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | nanocpe:/o:redhat:enterprise_linux:8::baseos |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | nanocpe:/o:redhat:enterprise_linux:9::baseos |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | nanocpe:/o:redhat:enterprise_linux:10 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | nanocpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | nanocpe:/o:redhat:rhel_els:7 |
||
| CVE List | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| CVE List | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| CVE List | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
References
- https://access.redhat.com/errata/RHSA-2024:6986 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:9430 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-5742 · Vendor Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2278574 · Issue Tracking, Vendor Advisory, issue-tracking, x_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html · x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
History
- 25 Nov 2026 20:55 UTC · CVE List: first stored (published 12 Jun 2024)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 12 Jun 2024)