CVE & CISA-KEV Catalog

CVE-2024-5742

MEDIUM
6.7
CVSS v3
NVD

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.

How to fix

Remediation Available
nanoDebian
Fixed in:5.4-2+deb11u3CVE-2024-5742
Fixed in:7.2-1+deb12u1CVE-2024-5742
Fixed in:8.0-1CVE-2024-5742
Fixed in:8.0-1CVE-2024-5742
nanoRed Hat / RHEL
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nanoRocky
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nano-debuginfoRocky
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nano-debuginfoRed Hat / RHEL
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nano-debugsourceRed Hat / RHEL
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nano-debugsourceRocky
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:2.9.8-3.el8_10RHSA-2024:6986
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
Fixed in:0:5.6.1-6.el9RHSA-2024:9430
nanoUbuntu
Fixed in:2.2.6-1ubuntu1+esm1USN-7064-2
Fixed in:2.5.3-2ubuntu2+esm1USN-7064-1
Fixed in:2.9.3-2ubuntu0.1~esm1USN-7064-1
Fixed in:4.8-1ubuntu1.1USN-7064-1
Fixed in:6.2-1ubuntu0.1USN-7064-1
Fixed in:7.2-2ubuntu0.1USN-7064-1
GNU NanoWindows application
Affected:2.2.0 8.0Fixed in:8.0GNU Project

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

0.35%probability of exploitation in 30 days
27thpercentile

Low risk: more likely to be exploited than 27% of all known CVEs.

References

Related Vulnerabilities

Other CWE-59 (Link Following) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-30333High7.599%KEV + RansomFix
CVE-2021-21300High8.089%-Fix
CVE-2021-32610High7.173%-Fix
CVE-2020-36193High7.571%KEVFix
CVE-2023-40028Medium4.958%-Fix
CVE-2020-0787High7.843%KEV + Ransom-
Embed a live status badge for CVE-2024-5742
CVE-2024-5742 severity badge

Markdown

[![CVE-2024-5742](https://tridentstack.com/cve/badge/CVE-2024-5742.svg)](https://tridentstack.com/cve/CVE-2024-5742)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-5742"><img src="https://tridentstack.com/cve/badge/CVE-2024-5742.svg" alt="CVE-2024-5742"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.