Cyber Resilience

CVE-2024-5742

Redhat Enterprise Linux 6.0 … 9.0

Published
12 June 2024
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 6.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0035 27th percentile
Risk Priority 45 floored blend · peak EPSS

Summary

CVE-2024-5742 is a medium-severity Link Following (CWE-59) vulnerability in Redhat Enterprise Linux. Its CVSS base score is 6.7 (Medium).

Operationally, ranked at the 27th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

a window of opportunity for attackers to escalate privileges through a malicious symlink.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-6843Same product: Gnu Nano
CVE-2023-7216Same product: Redhat Enterprise Linux
CVE-2023-4693Same product: Redhat Enterprise Linux
CVE-2023-4692Same product: Redhat Enterprise Linux
CVE-2023-5156Same product: Redhat Enterprise Linux
CVE-2025-32988Same product: Redhat Enterprise Linux
CVE-2025-32990Same product: Redhat Enterprise Linux
CVE-2026-5704Same product: Redhat Enterprise Linux
CVE-2026-4647Same product: Redhat Enterprise Linux
CVE-2025-32989Same product: Redhat Enterprise Linux

Affected Assets

gnu
nano
2.2.0 — 8.0
redhat
enterprise linux
6.0, 7.0, 8.0, 9.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V15.4.2

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require code to validate paths and avoid unsafe link following.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing can detect link-following flaws before release.

prevents

Secure SDLC practices can mandate link-resolution checks and canonicalization before file access.

prevents

Application security requirements can explicitly require safe handling of symbolic links and path traversal.

prevents

Secure architecture principles include input validation and safe file-access design patterns.

prevents

Secure coding standards directly address canonicalization and symlink attacks during implementation.

none

Access-control rules can limit which files are reachable, reducing exposure to malicious links.

References