6.7

CVE-2024-5742: gnu nano Link Following

CVSS: 6.7v3.1MediumModified
AliasesMGASA-2024-0223openSUSE-SU-2024:0157-1openSUSE-SU-2024:0157-2
Published 12-06-2024Last modified 15-10-2026

Vulnerability summary

CVE-2024-5742 is a medium (CVSS 6.7) Link Following vulnerability in gnu nano. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 26.5% of scored vulnerabilities.

Overall risk
27/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.34%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 12-06-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.34%

Chance of exploitation in the next 30 days

Percentile

27%

Versus all other CVEs

30-day change

0.00 pp

From 0.35% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.34%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat4 products
  • enterprise_linuxEOL6.0 | 7.0 | 8.0 | 9.0
  • nano< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9
  • nano-debuginfo< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9
  • nano-debugsource< 0:2.9.8-3.el8_10 | < 0:5.6.1-6.el9
Opensuse3 products
  • nano&distro=openSUSE Leap 15.5< 7.2-bp156.3.3.1
  • nano&distro=openSUSE Leap 15.6< 7.2-bp156.3.3.1
  • nano&distro=openSUSE Tumbleweed< 8.0-2.1
Suse2 products
  • nano&distro=SUSE Package Hub 15 SP5< 7.2-bp156.3.3.1
  • nano&distro=SUSE Package Hub 15 SP6< 7.2-bp156.3.3.1
Debian1 product
  • nano< 3.2-3+deb10u1 | < 7.2-1+deb12u1 | < 8.0-1
Gnu1 product
  • nano≥ 2.2.0, < 8.0
Mageia1 product
  • nano< 7.2-1.1.mga9
Ubuntu1 product
  • nano< 2.5.3-2ubuntu2+esm1 | < 2.9.3-2ubuntu0.1~esm1 | < 4.8-1ubuntu1.1 | < 6.2-1ubuntu0.1 | < 7.2-2ubuntu0.1 | < 2.2.6-1ubuntu1+esm1

7 vendors · 13 products

References

23 links
Show all 23 references