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.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://access.redhat.com/security/cve/CVE-2024-5742 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2278574 Issue Tracking, Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2024-5742 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2278574 Issue Tracking, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.7 · gnu, redhatNVD modified 2026-10-15 01:19
Affected (CPE criteria) 5
cpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
References 8
- https://access.redhat.com/errata/RHSA-2024:6986
- https://access.redhat.com/errata/RHSA-2024:9430
- https://access.redhat.com/security/cve/CVE-2024-5742 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2278574 Issue Tracking, Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2024-5742 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2278574 Issue Tracking, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html