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 (25.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 25th percentile — 25.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: -0.000
Affected products
- GNU Nano
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8 — versions 0:2.9.8-3.el8_10
- Red Hat Enterprise Linux 9 — versions 0:5.6.1-6.el9
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
Weakness classification (CWE)
Public proof-of-concept exploits
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)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-5742?
- CVE-2024-5742 is a medium-severity vulnerability in GNU Nano, classified under Improper Link Resolution Before File Access. CVSS score: 6.7/10. Published 2024-06-12.
- How severe is CVE-2024-5742?
- Medium severity. CVSS v3 base score is 6.7 out of 10.
- Is CVE-2024-5742 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.