Vulnerability in GNU Nano
CVE-2024-5742
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 · last modified .
CVSS v3 metric
CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 28.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Nano
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, orsonteodoro/nano-ycmd). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- access.redhat.com/errata/RHSA-2024:6986 (vendor-advisory)
- access.redhat.com/errata/RHSA-2024:9430 (vendor-advisory)
- access.redhat.com/security/cve/CVE-2024-5742 (vdb-entry, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Issue Tracking, Vendor Advisory)
- lists.debian.org/debian-lts-announce/2024/06/msg00006.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html