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.

Routine
CVSS
6.7
Low
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0034
28th percentile

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

ProductFixed inFixReleased
Linux
default-editor · amzn 2023 5.8-3.amzn2023.0.4 ALAS2023-2024-652 Jul 18, 2024
nano · Debian 12.15 (bookworm) 7.2-1+deb12u1 DEBIAN-CVE-2024-5742 Jun 12, 2024
nano · Debian 13.5 (trixie) 8.0-1 DEBIAN-CVE-2024-5742 Jun 12, 2024
nano · Debian 14 8.0-1 DEBIAN-CVE-2024-5742 Jun 12, 2024
nano · RHEL 8 0:2.9.8-3.el8_10 RHSA-2024:6986 Sep 24, 2024
nano · RHEL 9 0:5.6.1-6.el9 RHSA-2024:9430 Nov 12, 2024
nano · Ubuntu 18.04.6 LTS (bionic) 2.9.3-2ubuntu0.1~esm1 nano 2.9.3-2ubuntu0.1~esm1 Jun 12, 2024
nano · Ubuntu 20.04 LTS (focal) 4.8-1ubuntu1.1 nano 4.8-1ubuntu1.1 Jun 12, 2024
nano · Ubuntu 22.04.1 LTS (jammy) 6.2-1ubuntu0.1 nano 6.2-1ubuntu0.1 Jun 12, 2024
nano · Ubuntu 24.04.5 LTS (noble) 7.2-2ubuntu0.1 nano 7.2-2ubuntu0.1 Jun 12, 2024
nano · almalinux 8 2.9.8-3.el8_10 ALSA-2024:6986 Sep 24, 2024
nano · almalinux 9 5.6.1-6.el9 ALSA-2024:9430 Nov 12, 2024
nano · amzn 2023 5.8-3.amzn2023.0.4 ALAS2023-2024-652 Jul 18, 2024
nano · ol 8 0:2.9.8-3.el8_10 ELSA-2024-6986 Sep 24, 2024
nano · ol 9 0:5.6.1-6.el9 ELSA-2024-9430 Nov 14, 2024
nano · opensuse-leap 15.6 7.2-bp156.3.3.1 OPENSUSE-SU-2024:0157-2 Jun 11, 2024
nano · rocky 8 0:2.9.8-3.el8_10 RLSA-2024:6986 Sep 30, 2024
nano · rocky 9 0:5.6.1-6.el9 RLSA-2024:9430 Mar 17, 2025
nano-debuginfo · amzn 2023 5.8-3.amzn2023.0.4 ALAS2023-2024-652 Jul 18, 2024
nano-debugsource · amzn 2023 5.8-3.amzn2023.0.4 ALAS2023-2024-652 Jul 18, 2024
nano-default-editor · amzn 2023 5.8-3.amzn2023.0.4 ALAS2023-2024-652 Jul 18, 2024
nano-tiny · Ubuntu 18.04.6 LTS (bionic) 2.9.3-2ubuntu0.1~esm1 nano-tiny 2.9.3-2ubuntu0.1~esm1 Jun 12, 2024
nano-tiny · Ubuntu 20.04 LTS (focal) 4.8-1ubuntu1.1 nano-tiny 4.8-1ubuntu1.1 Jun 12, 2024
nano-tiny · Ubuntu 22.04.1 LTS (jammy) 6.2-1ubuntu0.1 nano-tiny 6.2-1ubuntu0.1 Jun 12, 2024
nano-tiny · Ubuntu 24.04.5 LTS (noble) 7.2-2ubuntu0.1 nano-tiny 7.2-2ubuntu0.1 Jun 12, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.