CVE Database
/

CVE-2024-5742

Back to search

CVE-2024-5742

Published: Jun 12, 2024

Modified: Nov 21, 2025

PUBLISHED

CVSS v3.1

6.7

MEDIUM

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.

VendorProductVersions

Unknown

nano

All versions

Red Hat

Red Hat Enterprise Linux 8

unaffected
0:2.9.8-3.el8_10 - < *

Red Hat

Red Hat Enterprise Linux 9

unaffected
0:5.6.1-6.el9 - < *

Red Hat

Red Hat Enterprise Linux 10

All versions

Red Hat

Red Hat Enterprise Linux 6

All versions

Red Hat

Red Hat Enterprise Linux 7

All versions

Weaknesses (CWE)

CVSS v3.1 Details

CVSS v3.1 Vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Attack Vector

Local

Attack Complexity

High

Privileges Required

Low

User Interaction

Required

Scope

Unchanged

Confidentiality

High

Integrity

High

Availability

High

References

RHSA-2024:6986
vendor-advisory
x_refsource_REDHAT
RHSA-2024:9430
vendor-advisory
x_refsource_REDHAT
RHBZ#2278574
issue-tracking
x_refsource_REDHAT

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now