CVE-2024-5742

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.

References

https://lists.debian.org/debian-lts-announce/2024/06/msg00006.html

https://bugzilla.redhat.com/show_bug.cgi?id=2278574

https://bugzilla.redhat.com/show_bug.cgi?id=2278574

https://access.redhat.com/security/cve/CVE-2024-5742

https://access.redhat.com/security/cve/CVE-2024-5742

Details

Source: Mitre, NVD

Published: 2024-06-12

Updated: 2024-06-17

Risk Information

CVSS v2

Base Score: 5.9

Vector: CVSS2#AV:L/AC:H/Au:M/C:C/I:C/A:C

Severity: Medium

CVSS v3

Base Score: 4.7

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Severity: Medium