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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | nano | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nano | 8.0-1 | — |
| Debian 13 | nano | 8.0-1 | — |
| Debian 12 | nano | 7.2-1+deb12u1 | — |
| Debian 10 | nano | 3.2-3+deb10u1 | DLA-3831-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | nano | 7.2-2ubuntu0.1 | USN-7064-1 |
| Ubuntu 22.04 LTS | nano | 6.2-1ubuntu0.1 | USN-7064-1 |
| Ubuntu 20.04 LTS | nano | 4.8-1ubuntu1.1 | USN-7064-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | nano | 2.9.3-2ubuntu0.1~esm1 | USN-7064-1 |
| Ubuntu Pro 16.04 LTS | nano | 2.5.3-2ubuntu2+esm1 | USN-7064-1 |
| Ubuntu Pro 14.04 LTS | nano | 2.2.6-1ubuntu1+esm1 | USN-7064-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | nano | 5.6.1-6.el9 | RHSA-2024:9430 |
| RHEL 8 | nano | 2.9.8-3.el8_10 | RHSA-2024:6986 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | nano | 5.6.1-6.el9 | ALSA-2024:9430 |
| AlmaLinux 8 | nano | 2.9.8-3.el8_10 | ALSA-2024:6986 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | nano | 5.6.1-6.el9 | RLSA-2024:9430 |
| Rocky Linux 8 | nano | 2.9.8-3.el8_10 | RLSA-2024:6986 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP6 | nano | 7.2-bp156.3.3.1 | openSUSE-SU-2024:0157-2, openSUSE-SU-2024:0157-1 |
| SUSE Package Hub 15 SP5 | nano | 7.2-bp156.3.3.1 | openSUSE-SU-2024:0157-2, openSUSE-SU-2024:0157-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nano | 8.0-2.1 | openSUSE-SU-2024:14034-1 |
| openSUSE Leap 15.6 | nano | 7.2-bp156.3.3.1 | openSUSE-SU-2024:0157-2, openSUSE-SU-2024:0157-1 |
| openSUSE Leap 15.5 | nano | 7.2-bp156.3.3.1 | openSUSE-SU-2024:0157-2, openSUSE-SU-2024:0157-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nano +2 | 5.8-3.amzn2023.0.4 | ALAS2023-2024-652 |
| Amazon Linux 2 | nano | 2.9.8-2.amzn2.0.2 | ALAS2-2024-2590 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nano | 6.4-2 | — |
| Azure Linux 2 (CBL-Mariner) | nano | 6.0-3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | nano | 5.6.1-6.el9 | ELSA-2024-9430 |
| Oracle Linux 8 | nano | 2.9.8-3.el8_10 | ELSA-2024-6986 |
Advisories 20
- ALSA-2024:9430 Low: nano security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:6986 Low: nano security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:9430 Red Hat Security Advisory: nano security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2024:6986 Red Hat Security Advisory: nano security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- USN-7064-2 nano vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-7064-1 nano vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-3831-1 nano - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2024:6986 Low: nano security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2024:9430 Low: nano security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2024:14034-1 nano-8.0-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0157-1 Security update for nano SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0157-2 Security update for nano SUSE / openSUSE Security Updates · Feb 4, 2026
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- VDE-2025-053 Phoenix Contact: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · Jul 8, 2025
- WID-SEC-2024-2207 Red Hat Enterprise Linux: Mehrere Schwachstellen ermöglichen Privilegieneskalation und Codeausführung BSI CERT-Bund (WID) · Jan 7, 2025
- ELSA-2024-9430 Low: nano security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 14, 2024
- ELSA-2024-6986 Low: nano security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 24, 2024
- ALAS2023-2024-652 Moderate: nano security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 22, 2024
- ALAS2-2024-2590 Moderate: nano security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 22, 2024
References
- RHSA-2024:6986 vendor-advisory
- RHSA-2024:9430 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-5742 vdb-entry
- RHBZ#2278574 issue-tracking