# CVE-2024-5742: nano: GNU nano is a small and friendly text editor.  Security Fix(es):  * nano: running `chmod` and `chown` on the filename...

CVE-2024-5742 is fixed in 6 products on 1 platform, first by OPENSUSE-SU-2024:0157-2, released June 11, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-5742
- Priority: Routine
- CVSS: 6.7 (Low)
- EPSS: 0.0034
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 11, 2024

## Description

GNU nano is a small and friendly text editor.  Security Fix(es):  * 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 (CVE-2024-5742)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | default-editor amzn 2023 | 5.8-3.amzn2023.0.4 | [ALAS2023-2024-652](https://patchblox.com/security/data/fix/linux/alas2023-2024-652.md) | Jul 18, 2024 |
| Linux | nano Debian 12.15 (bookworm) | 7.2-1+deb12u1 | [DEBIAN-CVE-2024-5742](https://patchblox.com/security/data/fix/linux/debian-cve-2024-5742.md) | Jun 12, 2024 |
| Linux | nano Debian 13.5 (trixie) | 8.0-1 | [DEBIAN-CVE-2024-5742](https://patchblox.com/security/data/fix/linux/debian-cve-2024-5742.md) | Jun 12, 2024 |
| Linux | nano Debian 14 | 8.0-1 | [DEBIAN-CVE-2024-5742](https://patchblox.com/security/data/fix/linux/debian-cve-2024-5742.md) | Jun 12, 2024 |
| Linux | nano RHEL 8 | 0:2.9.8-3.el8_10 | [RHSA-2024:6986](https://patchblox.com/security/data/fix/linux/rhsa-2024-6986.md) | Sep 24, 2024 |
| Linux | nano RHEL 9 | 0:5.6.1-6.el9 | [RHSA-2024:9430](https://patchblox.com/security/data/fix/linux/rhsa-2024-9430.md) | Nov 12, 2024 |
| Linux | nano Ubuntu 18.04.6 LTS (bionic) | 2.9.3-2ubuntu0.1~esm1 | [nano 2.9.3-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nano-2.9.3-2ubuntu0.1-esm1.md) | Jun 12, 2024 |
| Linux | nano Ubuntu 20.04 LTS (focal) | 4.8-1ubuntu1.1 | [nano 4.8-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nano-4.8-1ubuntu1.1.md) | Jun 12, 2024 |
| Linux | nano Ubuntu 22.04.1 LTS (jammy) | 6.2-1ubuntu0.1 | [nano 6.2-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nano-6.2-1ubuntu0.1.md) | Jun 12, 2024 |
| Linux | nano Ubuntu 24.04.5 LTS (noble) | 7.2-2ubuntu0.1 | [nano 7.2-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-nano-7.2-2ubuntu0.1.md) | Jun 12, 2024 |
| Linux | nano almalinux 8 | 2.9.8-3.el8_10 | [ALSA-2024:6986](https://patchblox.com/security/data/fix/linux/alsa-2024-6986.md) | Sep 24, 2024 |
| Linux | nano almalinux 9 | 5.6.1-6.el9 | [ALSA-2024:9430](https://patchblox.com/security/data/fix/linux/alsa-2024-9430.md) | Nov 12, 2024 |
| Linux | nano amzn 2023 | 5.8-3.amzn2023.0.4 | [ALAS2023-2024-652](https://patchblox.com/security/data/fix/linux/alas2023-2024-652.md) | Jul 18, 2024 |
| Linux | nano ol 8 | 0:2.9.8-3.el8_10 | [ELSA-2024-6986](https://patchblox.com/security/data/fix/linux/elsa-2024-6986.md) | Sep 24, 2024 |
| Linux | nano ol 9 | 0:5.6.1-6.el9 | [ELSA-2024-9430](https://patchblox.com/security/data/fix/linux/elsa-2024-9430.md) | Nov 14, 2024 |
| Linux | nano opensuse-leap 15.6 | 7.2-bp156.3.3.1 | [OPENSUSE-SU-2024:0157-2](https://patchblox.com/security/data/fix/linux/opensuse-su-2024-0157-2.md) | Jun 11, 2024 |
| Linux | nano rocky 8 | 0:2.9.8-3.el8_10 | [RLSA-2024:6986](https://patchblox.com/security/data/fix/linux/rlsa-2024-6986.md) | Sep 30, 2024 |
| Linux | nano rocky 9 | 0:5.6.1-6.el9 | [RLSA-2024:9430](https://patchblox.com/security/data/fix/linux/rlsa-2024-9430.md) | Mar 17, 2025 |
| Linux | nano-debuginfo amzn 2023 | 5.8-3.amzn2023.0.4 | [ALAS2023-2024-652](https://patchblox.com/security/data/fix/linux/alas2023-2024-652.md) | Jul 18, 2024 |
| Linux | nano-debugsource amzn 2023 | 5.8-3.amzn2023.0.4 | [ALAS2023-2024-652](https://patchblox.com/security/data/fix/linux/alas2023-2024-652.md) | Jul 18, 2024 |
| Linux | nano-default-editor amzn 2023 | 5.8-3.amzn2023.0.4 | [ALAS2023-2024-652](https://patchblox.com/security/data/fix/linux/alas2023-2024-652.md) | Jul 18, 2024 |
| Linux | nano-tiny Ubuntu 18.04.6 LTS (bionic) | 2.9.3-2ubuntu0.1~esm1 | [nano-tiny 2.9.3-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nano-tiny-2.9.3-2ubuntu0.1-esm1.md) | Jun 12, 2024 |
| Linux | nano-tiny Ubuntu 20.04 LTS (focal) | 4.8-1ubuntu1.1 | [nano-tiny 4.8-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nano-tiny-4.8-1ubuntu1.1.md) | Jun 12, 2024 |
| Linux | nano-tiny Ubuntu 22.04.1 LTS (jammy) | 6.2-1ubuntu0.1 | [nano-tiny 6.2-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nano-tiny-6.2-1ubuntu0.1.md) | Jun 12, 2024 |
| Linux | nano-tiny Ubuntu 24.04.5 LTS (noble) | 7.2-2ubuntu0.1 | [nano-tiny 7.2-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-nano-tiny-7.2-2ubuntu0.1.md) | Jun 12, 2024 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
