CVE-2024-5742
Reported by redhat · Published June 12, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| default-editor | Amazon Linux | 5.8-3.amzn2023.0.4 |
| nano | Amazon Linux | 5.8-3.amzn2023.0.4, 2.9.8-2.amzn2.0.2 |
| nano-default-editor | Amazon Linux | 5.8-3.amzn2023.0.4 |
| nano | gnu | 8.0 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.8-3.el8_10 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.6.1-6.el9 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.6.1-6.el9 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.8-3.el8_10 |
| amazon:2023 | default-editor | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | nano | 0 |
| amazon:2023 | nano-default-editor | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | nano | 0 |
Timeline
- Jun 11, 2024 CVE Published
- Jun 13, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (10 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 29, 2025 CVE Updated
- Jun 2, 2026 Security Advisory (8 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-5742
vulnetix vdb fixes CVE-2024-5742
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-5742/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2024:6986 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:9430 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2278574 issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url