CVE-2024-5742

Publication date 12 June 2024

Last updated 29 October 2024


Ubuntu priority

Cvss 3 Severity Score

6.7 · Medium

Score breakdown

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.

Read the notes from the security team

Why is this CVE low priority?

Uncommon attack scenario

Learn more about Ubuntu priority

Status

Package Ubuntu Release Status
nano 24.10 oracular
Not affected
24.04 LTS noble
Fixed 7.2-2ubuntu0.1
23.10 mantic Ignored end of life, was needed
22.04 LTS jammy
Fixed 6.2-1ubuntu0.1
20.04 LTS focal
Fixed 4.8-1ubuntu1.1
18.04 LTS bionic
16.04 LTS xenial
14.04 LTS trusty

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Notes


mdeslaur

only an issue if nano is run by root, but an unprivileged user is able to kill it, an uncommon scenario

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
nano

Severity score breakdown

Parameter Value
Base score 6.7 · Medium
Attack vector Local
Attack complexity High
Privileges required Low
User interaction Required
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

References

Related Ubuntu Security Notices (USN)

Other references