CVE-2024-5742

Name
CVE-2024-5742
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
vdb-entry https://access.redhat.com/security/cve/CVE-2024-5742
issue-tracking https://bugzilla.redhat.com/show_bug.cgi?id=2278574
https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html
secalert@redhat.com https://access.redhat.com/errata/RHSA-2024:6986
secalert@redhat.com https://access.redhat.com/errata/RHSA-2024:9430
0b142b55-0307-4c5a-b3c9-f314f3fb7c5e https://cert-portal.siemens.com/productcert/html/ssa-398330.html

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:* nano >= 2.2.0 < 8.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
nano 3.19-main 7.2-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable