Skip to content
VulniPulse
Highest advisory severityMedium 1 vendor · 1 advisory

CVE-2024-5742

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

CVE-2024-5742: Nano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned…

Compare the source-linked records below. Ratings and product/version details belong to each advisory; they are not a single CVE-wide score or proof that every listed product is affected. How VulniPulse collects and checks evidence.

CVE-2024-5742 at a glance

CISA KEV
Not listed (catalog checked )
Highest advisory severity
Medium
CVSS base score
6.7 (Red Hat)
CVSS vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H (Red Hat)
Weakness
CWE-59
Fixed releases
  • Red Hat: nano-0:2.9.8-3.el8_10, nano-0:5.6.1-6.el9, RHSA-2024:6986, RHSA-2024:9430
Vendor advisories
1 from Red Hat
VulniPulse record
Published

Scores, vectors, weaknesses and fixed releases are quoted from vendor advisories that cover only CVE-2024-5742; bulletin-wide values are not repeated here.

Is CVE-2024-5742 exploited?

No exploitation is reported in the sources VulniPulse tracks: CVE-2024-5742 is not in the CISA KEV catalog (checked ) and no tracked advisory for it reports exploitation. That is not proof the vulnerability cannot be exploited.

How do I fix CVE-2024-5742?

Upgrade to a fixed release named by the vendor:

  • Red Hat: nano-0:2.9.8-3.el8_10, nano-0:5.6.1-6.el9, RHSA-2024:6986, RHSA-2024:9430

Vendor advisory comparison

Red Hat

1 advisory
  • Advisory severityMedium6.7

    Medium [CVE-2024-5742] 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

    CVE-2024-5742Source published Source updated

    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. 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. Red Hat severity: Low — CVSS 6.7 (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H). Weakness: CWE-59. Affected Red Hat products: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7. Will not fix / out of support: Red Hat Enterprise Linux 6; Red Hat Enterprise…

    Affected products in this advisory
    • Red Hat Enterprise Linux 8
    • Red Hat Enterprise Linux 9
    • Red Hat Enterprise Linux 6
    • Red Hat Enterprise Linux 7

    1 more entries in the full advisory.

    Source-reported affected versions
    Affected-version details not available in this record.
    Source-reported fixed versions
    • nano-0:2.9.8-3.el8_10
    • nano-0:5.6.1-6.el9
    • RHSA-2024:6986
    • RHSA-2024:9430
    Mitigation guidance
    No mitigation guidance extracted; consult the source.

Browse the latest tracked CVEs or the CVEs listed in CISA KEV.

Android app · Google Play

Monitor future Red Hat CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery