← CVE Intelligence

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 PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Not supplied / Not suppliedaffected
Red Hat / Red Hat Enterprise Linux 8unaffected 0:2.9.8-3.el8_10 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:5.6.1-6.el9 before *
Red Hat / Red Hat Enterprise Linux 10unaffected
Red Hat / Red Hat Enterprise Linux 6unknown
Red Hat / Red Hat Enterprise Linux 7unknown

CWE

CWE-59

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.

siemens-SADP

No English description supplied.