Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2024-5742
VULNERABILITY

CVE-2024-5742

Common Vulnerabilities and Exposures record

MEDIUM

Summary

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.

Risk

CVSS
6.7
Severity
MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Timeline

Published
Jun 12, 2024 09:15
Modified
Nov 6, 2026 15:17
Last observed
Nov 6, 2026 11:00

CWE

CWE-59

Affected product identifiers

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