Security mailing lists by PureSourceCode

CVE-2024-5742

MEDIUM 6.7CVSS 3.1

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

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.

Published
12 Jun 2024
Last modified
25 Nov 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-59
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD secalert@redhat.com (Secondary) CVSS 3.1 MEDIUM 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Secondary) CVSS 3.1 MEDIUM 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVE List redhat CVSS 3.1 MEDIUM 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: total

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gnu nano
cpe:2.3:a:gnu:nano:*:*:*:*:*:*:*:*
>= 2.2.0, < 8.0 8.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
= 6.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
= 9.0
CVE List https://git.savannah.gnu.org/git/nano.git nano all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ nano
cpe:/o:redhat:enterprise_linux:8::baseos
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ nano
cpe:/o:redhat:enterprise_linux:9::baseos
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ nano
cpe:/o:redhat:enterprise_linux:10
CVE List https://access.redhat.com/downloads/content/package-browser/ nano
cpe:/o:redhat:rhel_els:6
CVE List https://access.redhat.com/downloads/content/package-browser/ nano
cpe:/o:redhat:rhel_els:7
CVE List Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
CVE List Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
CVE List Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5

References

History

  • 25 Nov 2026 20:55 UTC · CVE List: first stored (published 12 Jun 2024)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 12 Jun 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.