Vulnerability · CVE-2024-5742
A vulnerability was found in GNU Nano that allows a possible privilege escalation through an insecure temporary file.
Published Jun 12, 2024 · catalog updated Oct 15, 2026 · A vulnerability was found
Check if you run it
No confirmed exploitation is on record for CVE-2024-5742. EPSS is 0.34%. Act only if a listed version of A vulnerability was found is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (A vulnerability was found).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium6.7
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.34%
- Remediation
- Advisory link
- Affected products
- cpe gnu/nano · cpe redhat/enterprise linux
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe gnu/nanoversion unspecified
- cpe redhat/enterprise linux6.0
- cpe redhat/enterprise linux7.0
- cpe redhat/enterprise linux8.0
- cpe redhat/enterprise linux9.0
How to fix CVE-2024-5742
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2024-5742. EPSS is 0.34%. Act only if a listed version of A vulnerability was found is installed.
Which versions are affected?
Compare what you have installed with redhat/enterprise linux 6.0; redhat/enterprise linux 7.0; redhat/enterprise linux 8.0; redhat/enterprise linux 9.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-59: Link Following. EPSS 0.34%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Jun 12, 2024 · NIST NVD
Detected
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.
Oct 15, 2026 · NIST NVD
Updated
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.
Sources
- CVE.orgVulnerability recordCVE-2024-5742
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2024-5742
30-day exploitation probability 0.3%
first.org - NIST NVDVulnerability recordCVE-2024-5742
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 e
nvd.nist.gov
References
Freshness
Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.