VDB

CVE-2024-5742

CVE-2024-5742 PUBLISHED CVSS 6.7 MEDIUM

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.

PackageEcosystemFixed in
default-editorAmazon Linux5.8-3.amzn2023.0.4
nanoAmazon Linux5.8-3.amzn2023.0.4, 2.9.8-2.amzn2.0.2
nano-default-editorAmazon Linux5.8-3.amzn2023.0.4
nanognu8.0
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5

Risk scores

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

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 80:2.9.8-3.el8_10
Red HatRed Hat Enterprise Linux 90:5.6.1-6.el9
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 90:5.6.1-6.el9
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 80:2.9.8-3.el8_10
amazon:2023default-editor0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2nano0
amazon:2023nano-default-editor0
Red HatRed Hat Enterprise Linux 6
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
amazon:2023nano0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›