Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-5742

published medium CVSS 3.1 · 6.7

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
12 Jun 2024, 08:53:02 UTC
Updated
25 Nov 2026, 13:57:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Not stated — nano Affected Not stated redhat
Red Hat Enterprise Linux 8 nano0:2.9.8-3.el8_10 and later · Other versions: affected Unaffected Not stated redhat
Red Hat Enterprise Linux 9 nano0:5.6.1-6.el9 and later · Other versions: affected Unaffected Not stated redhat
Red Hat Enterprise Linux 10 nano Unaffected Not required redhat
Amazon Linux AL2 Release evaluationALAS2-2024-2590 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-652 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 nano Advisory build 2.9.8-3.el8_10 ALSA-2024:6986
Debian buster nano Advisory build 3.2-3+deb10u1 DLA-3831-1
Show 104 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux 6, 7 nano Unknown Not stated redhat
Siemens — SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown Affected Not stated siemens-SADP
Siemens — SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown Affected Not stated siemens-SADP
Siemens — SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown Affected Not stated siemens-SADP
Siemens — SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown Affected Not stated siemens-SADP
Siemens — SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown Affected Not stated siemens-SADP
Oracle Linux 8 nanoaarch64 Advisory build 0:2.9.8-3.el8_10 ELSA-2024-6986
Red Hat Enterprise Linux RHEL-8 nanoaarch64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
SUSE / openSUSE openSUSE-Leap-15.5 nanoaarch64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
Ubuntu bionic nano Advisory build 2.9.3-2ubuntu0.1~esm1 USN-7064-1
Amazon Linux AL2 nanoaarch64 Listed in advisory Not stated ALAS2-2024-2590
Rocky Linux 8 nanoaarch64 Listed in advisory Not stated RLSA-2024:6986
AlmaLinux 9 nano Advisory build 5.6.1-6.el9 ALSA-2024:9430
Oracle Linux 8 nanox86_64 Advisory build 0:2.9.8-3.el8_10 ELSA-2024-6986
Oracle Linux 9 nanoaarch64 Advisory build 0:5.6.1-6.el9 ELSA-2024-9430
Oracle Linux 9 nanox86_64 Advisory build 0:5.6.1-6.el9 ELSA-2024-9430
Red Hat Enterprise Linux RHEL-8 nanoppc64le Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nanos390x Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nanosrc Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nanox86_64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-9 nanoaarch64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nanoppc64le Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nanos390x Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nanosrc Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nanox86_64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
SUSE / openSUSE openSUSE-Leap-15.5 nanoaarch64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.5 nanoi586 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.5 nanoi586 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.5 nanoppc64le Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.5 nanoppc64le Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.5 nanos390x Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.5 nanos390x Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.5 nanox86_64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.5 nanox86_64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nanoaarch64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nanoaarch64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nanoi586 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nanoi586 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nanoppc64le Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nanoppc64le Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nanos390x Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nanos390x Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nanox86_64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nanox86_64 Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Tumbleweed nanoaarch64 Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nanoppc64le Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nanos390x Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nanox86_64 Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
Ubuntu esm nano Advisory build 2.2.6-1ubuntu1+esm1 USN-7064-2
Ubuntu focal nano Advisory build 4.8-1ubuntu1.1 USN-7064-1
Ubuntu jammy nano Advisory build 6.2-1ubuntu0.1 USN-7064-1
Ubuntu noble nano Advisory build 7.2-2ubuntu0.1 USN-7064-1
Ubuntu xenial nano Advisory build 2.5.3-2ubuntu2+esm1 USN-7064-1
Red Hat Enterprise Linux RHEL-8 nano-debuginfoaarch64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debuginfoppc64le Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debuginfos390x Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debuginfox86_64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debugsourceaarch64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debugsourceppc64le Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debugsources390x Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-8 nano-debugsourcex86_64 Advisory build 2.9.8-3.el8_10 RHSA-2024:6986
Red Hat Enterprise Linux RHEL-9 nano-debuginfoaarch64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debuginfoppc64le Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debuginfos390x Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debuginfox86_64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debugsourceaarch64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debugsourceppc64le Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debugsources390x Advisory build 5.6.1-6.el9 RHSA-2024:9430
Red Hat Enterprise Linux RHEL-9 nano-debugsourcex86_64 Advisory build 5.6.1-6.el9 RHSA-2024:9430
SUSE / openSUSE openSUSE-Leap-15.5 nano-langnoarch Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.5 nano-langnoarch Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Leap-15.6 nano-langnoarch Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-1
SUSE / openSUSE openSUSE-Leap-15.6 nano-langnoarch Advisory build 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2
SUSE / openSUSE openSUSE-Tumbleweed nano-langaarch64 Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nano-langppc64le Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nano-langs390x Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
SUSE / openSUSE openSUSE-Tumbleweed nano-langx86_64 Advisory build 8.0-2.1 OPENSUSE-SU-2024:14034-1
Ubuntu bionic nano-tiny Advisory build 2.9.3-2ubuntu0.1~esm1 USN-7064-1
Ubuntu esm nano-tiny Advisory build 2.2.6-1ubuntu1+esm1 USN-7064-2
Ubuntu focal nano-tiny Advisory build 4.8-1ubuntu1.1 USN-7064-1
Ubuntu jammy nano-tiny Advisory build 6.2-1ubuntu0.1 USN-7064-1
Ubuntu noble nano-tiny Advisory build 7.2-2ubuntu0.1 USN-7064-1
Ubuntu xenial nano-tiny Advisory build 2.5.3-2ubuntu2+esm1 USN-7064-1
Amazon Linux AL2 nanoi686 Listed in advisory Not stated ALAS2-2024-2590
Amazon Linux AL2 nanosrc Listed in advisory Not stated ALAS2-2024-2590
Amazon Linux AL2 nanox86_64 Listed in advisory Not stated ALAS2-2024-2590
Amazon Linux AL2023 nanoaarch64 Listed in advisory Not stated ALAS2023-2024-652
Amazon Linux AL2023 nanonoarch Listed in advisory Not stated ALAS2023-2024-652
Amazon Linux AL2023 nanosrc Listed in advisory Not stated ALAS2023-2024-652
Amazon Linux AL2023 nanox86_64 Listed in advisory Not stated ALAS2023-2024-652
Rocky Linux 8 nanosrc Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 8 nanox86_64 Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 9 nanoaarch64 Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nanoppc64le Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nanos390x Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nanosrc Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nanox86_64 Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 8 nano-debuginfoaarch64 Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 8 nano-debuginfox86_64 Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 8 nano-debugsourceaarch64 Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 8 nano-debugsourcex86_64 Listed in advisory Not stated RLSA-2024:6986
Rocky Linux 9 nano-debuginfoaarch64 Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nano-debuginfoppc64le Listed in advisory Not stated RLSA-2024:9430
Rocky Linux 9 nano-debuginfos390x Listed in advisory Not stated RLSA-2024:9430

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

22

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.7 / 10
Severity
medium
Provider
redhat · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
nano Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8 0:2.9.8-3.el8_10 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 9 0:5.6.1-6.el9 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 10 Default: unaffected redhat · cna
Red Hat Red Hat Enterprise Linux 6 Default: unknown redhat · cna
Red Hat Red Hat Enterprise Linux 7 Default: unknown redhat · cna
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.0 to < V3.1.5 (affected · custom)Default: unknown siemens-SADP · adp
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.0 to < V3.1.5 (affected · custom)Default: unknown siemens-SADP · adp
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.0 to < V3.1.5 (affected · custom)Default: unknown siemens-SADP · adp
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.0 to < V3.1.5 (affected · custom)Default: unknown siemens-SADP · adp
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.0 to < V3.1.5 (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

1
  • CWE-59 Improper Link Resolution Before File Access (redhat · cna)

References

6

Provider assertions

4

redhat · cna

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

siemens-SADP · adp

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
6618e517a7579e1167506b80b757b57bbd6114725a52cba7dd5d860d72ec070f
Ingested
25 Nov 2026, 14:03:38 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected