CVE-2024-5742

MEDIUM CVSS 3.1: 6.7 EPSS 0.34%
Updated Nov 25, 2026
Red Hat
Parameter Value
CVSS 6.7 (MEDIUM)
Affected Versions 2.2.0 — 8.0
Fixed In 8.0
Type CWE-59 (Improper Link Resolution)
Vendor Red Hat
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 5

Configuration From (including) Up to (excluding)
Gnu Nano
cpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:*
2.2.0 8.0
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
— —
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
— —
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
— —
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
— —