CVE-2024-5742CWE-59

CVE-2024-5742

Medium · published June 12, 2024

CVSS v3.1
6.7
EPSS
0%
Percentile
26.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.7 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00344 · 26.7th percentile
Weakness
CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2024-06-12T13:15Z
Affected products (5)
ProductVersionsFixed in
gnu/nano≥ 2.2.0, < 8.08.0
redhat/enterprise_linuxall versions—
redhat/enterprise_linuxall versions—
redhat/enterprise_linuxall versions—
redhat/enterprise_linuxall versions—
References (8)
EPSS history
Timeline
  • 12 JUN 08:53Z
    Nano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned file
    cvelistv5