cve.bz

CVE-2024-5742 Link Following

6.7 mediumEPSS 0.3%Fix available

Medium (6.7). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-5742 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-5742?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-5742?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-5742 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2024-5742

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

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

HTML:

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

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:2.9.8-3.el8_10
Red Hat Enterprise Linux 90:5.6.1-6.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10nano3.2-3+deb10u1DLA-3831-1
Debian12nano7.2-1+deb12u1DEBIAN-CVE-2024-5742
Debian13, 14nano8.0-1DEBIAN-CVE-2024-5742
Ubuntu20.04:LTSnano4.8-1ubuntu1.1UBUNTU-CVE-2024-5742 USN-7064-1
Ubuntu22.04:LTSnano6.2-1ubuntu0.1UBUNTU-CVE-2024-5742 USN-7064-1
Ubuntu24.04:LTSnano7.2-2ubuntu0.1UBUNTU-CVE-2024-5742 USN-7064-1
UbuntuPro:14.04:LTSnano2.2.6-1ubuntu1+esm1UBUNTU-CVE-2024-5742 USN-7064-2
UbuntuPro:16.04:LTSnano2.5.3-2ubuntu2+esm1UBUNTU-CVE-2024-5742 USN-7064-1
UbuntuPro:18.04:LTSnano2.9.3-2ubuntu0.1~esm1UBUNTU-CVE-2024-5742 USN-7064-1
Red Hatenterprise_linux:8::baseosnano, nano-debuginfo, nano-debugsource0:2.9.8-3.el8_10RHSA-2024:6986
Red Hatenterprise_linux:9::baseosnano, nano-debuginfo, nano-debugsource0:5.6.1-6.el9RHSA-2024:9430
SUSEPackage Hub 15 SP5, Package Hub 15 SP6nano7.2-bp156.3.3.1openSUSE-SU-2024:0157-1 openSUSE-SU-2024:0157-2
openSUSELeap 15.5, Leap 15.6nano7.2-bp156.3.3.1openSUSE-SU-2024:0157-1 openSUSE-SU-2024:0157-2
openSUSETumbleweednano8.0-2.1openSUSE-SU-2024:14034-1
AlmaLinux8nano2.9.8-3.el8_10ALSA-2024:6986
AlmaLinux9nano5.6.1-6.el9ALSA-2024:9430
Rocky Linux8nano0:2.9.8-3.el8_10RLSA-2024:6986
Rocky Linux9nano0:5.6.1-6.el9RLSA-2024:9430
Azure Linux2nano6.0-3AZL-42619
Azure Linux3nano6.4-2AZL-42612
Alpaquita23nano8.7.1-r0BELL-CVE-2024-5742
Alpaquitastreamnano8.0-r0BELL-CVE-2024-5742

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

For an attack to be successful, an attacker must be able to kill the Nano session of another user, hence this issue was rated as a Low severity issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nano-0:2.9.8-3.el8_10Fixed 2024-09-24RHSA-2024:6986
Red Hat Enterprise Linux 9nano-0:5.6.1-6.el9Fixed 2024-11-12RHSA-2024:9430
Red Hat Enterprise Linux 10nanoNot affected
Red Hat Enterprise Linux 6nanoOut of support scope
Red Hat Enterprise Linux 7nanoOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-5742.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON