We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

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



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.

Reserved 2024-06-07 | Published 2024-06-12 | Updated 2025-07-05 | Assigner redhat


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

Problem types

Improper Link Resolution Before File Access ('Link Following')

Product status

Default status
affected

Default status
affected

0:2.9.8-3.el8_10 before *
unaffected

Default status
affected

0:5.6.1-6.el9 before *
unaffected

Default status
unaffected

Default status
unknown

Default status
unknown

Timeline

2024-05-02:Reported to Red Hat.
2024-04-28:Made public.

References

access.redhat.com/errata/RHSA-2024:6986 (RHSA-2024:6986) vendor-advisory

access.redhat.com/errata/RHSA-2024:9430 (RHSA-2024:9430) vendor-advisory

access.redhat.com/security/cve/CVE-2024-5742 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2278574 (RHBZ#2278574) issue-tracking

cve.org (CVE-2024-5742)

nvd.nist.gov (CVE-2024-5742)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2024-5742

Support options

Helpdesk Chat, Email, Knowledgebase