
CVE catalog
CVE-2024-5742
nano vulnerability
- Severity
- Medium · CVSS 6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.34% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | nano | sid | 9.3-1 | fixed |
| Debian | nano | forky | 9.2-1 | fixed |
| Debian | nano | trixie | 8.4-1+deb13u1 | fixed |
| Debian | nano | bookworm | 7.2-1+deb12u1 | fixed |
| Ubuntu | nano | noble | 7.2-1+deb12u1 | fixed |
| Ubuntu | nano | noble | 7.2-2ubuntu0.1 | fixed |
| Ubuntu | nano-tiny | noble | 7.2-2ubuntu0.1 | fixed |
| Cpe | nano | Not reported | 8.0 | fixed |
| Cpe | enterprise_linux | Not reported | Not reported | unknown |
| Ubuntu | nano | pro | 2.2.6-1ubuntu1 | vulnerable |
| Ubuntu | nano | pro | 2.2.6-1ubuntu1+esm1 | fixed |
| Ubuntu | nano | pro | 2.8.6-3 | vulnerable |
| Ubuntu | nano | pro | 2.8.7-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.0-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.1-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.2-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-2 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-2ubuntu0.1~esm1 | fixed |
| Ubuntu | nano | 20.04 | 4.3-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.5-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.7-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.7-2 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1ubuntu1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1ubuntu1.1 | fixed |
| Ubuntu | nano | 22.04 | 5.6.1-1build1 | vulnerable |
| Ubuntu | nano | 22.04 | 5.9-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.0-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.1-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.2-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.2-1ubuntu0.1 | fixed |
| Ubuntu | nano | 24.04 | 7.2-1 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2build1 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2ubuntu0.1 | fixed |
| Ubuntu | nano | pro | 2.8.6-3 | vulnerable |
| Ubuntu | nano | pro | 2.8.7-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.0-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.1-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.2-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-1 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-2 | vulnerable |
| Ubuntu | nano | pro | 2.9.3-2ubuntu0.1~esm1 | fixed |
| Ubuntu | nano | 20.04 | 4.3-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.5-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.7-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.7-2 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1ubuntu1 | vulnerable |
| Ubuntu | nano | 20.04 | 4.8-1ubuntu1.1 | fixed |
| Ubuntu | nano | 22.04 | 5.6.1-1build1 | vulnerable |
| Ubuntu | nano | 22.04 | 5.9-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.0-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.1-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.2-1 | vulnerable |
| Ubuntu | nano | 22.04 | 6.2-1ubuntu0.1 | fixed |
| Ubuntu | nano | 24.04 | 7.2-1 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2build1 | vulnerable |
| Ubuntu | nano | 24.04 | 7.2-2ubuntu0.1 | fixed |
| Opensuse | nano | tumbleweed | 8.0-2.1 | fixed |
| Suse | nano | package hub 15 sp5 | 7.2-bp156.3.3.1 | fixed |
| Suse | nano | package hub 15 sp6 | 7.2-bp156.3.3.1 | fixed |
| Opensuse | nano | leap 15.5 | 7.2-bp156.3.3.1 | fixed |
| Opensuse | nano | leap 15.6 | 7.2-bp156.3.3.1 | fixed |
| Suse | nano | package hub 15 sp5 | 7.2-bp156.3.3.1 | fixed |
| Suse | nano | package hub 15 sp6 | 7.2-bp156.3.3.1 | fixed |
| Opensuse | nano | leap 15.5 | 7.2-bp156.3.3.1 | fixed |
| Opensuse | nano | leap 15.6 | 7.2-bp156.3.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | nano | source | sid | 8.0-1 | not yet assigned | Not reported | Not reported |
| Debian | nano | source | forky | 8.0-1 | not yet assigned | Not reported | Not reported |
| Debian | nano | source | trixie | 8.0-1 | not yet assigned | Not reported | Not reported |
| Debian | nano | source | bookworm | 7.2-1+deb12u1 | not yet assigned | Not reported | Not reported |
| Ubuntu | nano | deb | noble | 7.2-1+deb12u1 | Not reported | Not reported | Not reported |
| Ubuntu | nano | deb | noble | 7.2-2ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | nano-tiny | deb | noble | 7.2-2ubuntu0.1 | Not reported | Not reported | Not reported |
| Cpe | nano | cpe | Not reported | 8.0 | Not reported | NVD-CVE-2024-5742 | Not reported |
| Ubuntu | nano | deb | pro | 2.2.6-1ubuntu1+esm1 | Not reported | USN-7064-2 | Not reported |
| Ubuntu | nano | deb | pro | 2.9.3-2ubuntu0.1~esm1 | Not reported | USN-7064-1 | Not reported |
| Ubuntu | nano | deb | 20.04 | 4.8-1ubuntu1.1 | Not reported | USN-7064-1 | Not reported |
| Ubuntu | nano | deb | 22.04 | 6.2-1ubuntu0.1 | Not reported | USN-7064-1 | Not reported |
| Ubuntu | nano | deb | 24.04 | 7.2-2ubuntu0.1 | Not reported | USN-7064-1 | Not reported |
| Ubuntu | nano | deb | pro | 2.9.3-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2024-5742 | Not reported |
| Ubuntu | nano | deb | 20.04 | 4.8-1ubuntu1.1 | Not reported | UBUNTU-CVE-2024-5742 | Not reported |
| Ubuntu | nano | deb | 22.04 | 6.2-1ubuntu0.1 | Not reported | UBUNTU-CVE-2024-5742 | Not reported |
| Ubuntu | nano | deb | 24.04 | 7.2-2ubuntu0.1 | Not reported | UBUNTU-CVE-2024-5742 | Not reported |
| Opensuse | nano | rpm | tumbleweed | 8.0-2.1 | Not reported | OPENSUSE-SU-2024:14034-1 | Not reported |
| Suse | nano | rpm | package hub 15 sp5 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-1 | Not reported |
| Suse | nano | rpm | package hub 15 sp6 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-1 | Not reported |
| Opensuse | nano | rpm | leap 15.5 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-1 | Not reported |
| Opensuse | nano | rpm | leap 15.6 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-1 | Not reported |
| Suse | nano | rpm | package hub 15 sp5 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-2 | Not reported |
| Suse | nano | rpm | package hub 15 sp6 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-2 | Not reported |
| Opensuse | nano | rpm | leap 15.5 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-2 | Not reported |
| Opensuse | nano | rpm | leap 15.6 | 7.2-bp156.3.3.1 | Not reported | OPENSUSE-SU-2024:0157-2 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-398330.json]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_6986.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2024-5742]
- [https://osv.dev/vulnerability/DLA-3831-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-5742]
- [https://osv.dev/vulnerability/USN-7064-1]
- [https://osv.dev/vulnerability/USN-7064-2]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:0157-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:0157-2]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14034-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-5742]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-5742.json]
- [https://ubuntu.com/security/notices/USN-7064-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-2207.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]