You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
[{"defaultStatus":"affected","collectionURL":"https://git.savannah.gnu.org/git/nano.git","packageName":"nano"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"affected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"nano","cpes":["cpe:/o:redhat:enterprise_linux:8::baseos"],"versions":[{"version":"0:2.9.8-3.el8_10","lessThan":"*","versionType":"rpm","status":"unaffected"}]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"affected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"nano","cpes":["cpe:/o:redhat:enterprise_linux:9::baseos"],"versions":[{"version":"0:5.6.1-6.el9","lessThan":"*","versionType":"rpm","status":"unaffected"}]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"nano","cpes":["cpe:/o:redhat:enterprise_linux:10"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","defaultStatus":"unknown","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"nano","cpes":["cpe:/o:redhat:enterprise_linux:6"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","defaultStatus":"unknown","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"nano","cpes":["cpe:/o:redhat:enterprise_linux:7"]}]
CVE Modified by Red Hat, Inc.11/12/2024 1:15:46 PM
Action
Type
Old Value
New Value
Added
Reference
Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:9430 [No types assigned]
CVE Modified by Red Hat, Inc.10/07/2024 4:15:07 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
Red Hat, Inc. AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Removed
CVSS V3.1
Red Hat, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
CVE Modified by Red Hat, Inc.9/25/2024 2:15:05 AM
Action
Type
Old Value
New Value
Added
CWE
Red Hat, Inc. CWE-59
Removed
CWE
Red Hat, Inc. CWE-377
CVE Modified by Red Hat, Inc.9/24/2024 9:15:44 PM
Action
Type
Old Value
New Value
Added
Reference
Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6986 [No types assigned]
Initial Analysis by NIST9/24/2024 11:39:46 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Added
CWE
NIST CWE-59
Added
CPE Configuration
OR
*cpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:* versions from (including) 2.2.0 up to (excluding) 8.0
Added
CPE Configuration
OR
*cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
*cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
*cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
*cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Changed
Reference Type
https://access.redhat.com/security/cve/CVE-2024-5742 No Types Assigned
Red Hat, Inc. https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html
CVE Modified by Red Hat, Inc.6/17/2024 8:15:49 AM
Action
Type
Old Value
New Value
Added
Reference
Red Hat, Inc. https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html [No types assigned]
New CVE Received from Red Hat, Inc.6/12/2024 5:15:23 AM
Action
Type
Old Value
New Value
Added
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.
Added
CVSS V3.1
Red Hat, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Added
CWE
Red Hat, Inc. CWE-377
Added
Reference
Red Hat, Inc. https://access.redhat.com/security/cve/CVE-2024-5742 [No types assigned]
Added
Reference
Red Hat, Inc. https://bugzilla.redhat.com/show_bug.cgi?id=2278574 [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-5742 NVD
Published Date: 06/12/2024 NVD
Last Modified: 06/17/2026
Source: Red Hat, Inc.