UBUNTU-CVE-2024-5742

Source
https://ubuntu.com/security/CVE-2024-5742
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5742.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-5742
Related
Published
2024-06-12T09:15:00Z
Modified
2024-10-29T16:39:59Z
Severity
  • 6.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

Affected packages

Ubuntu:Pro:14.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.6-1ubuntu1+esm1

Affected versions

2.*

2.2.6-1ubuntu1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano"
        },
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano-tiny-dbgsym"
        },
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano-udeb"
        },
        {
            "binary_version": "2.2.6-1ubuntu1+esm1",
            "binary_name": "nano-udeb-dbgsym"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:Pro:16.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.3-2ubuntu2+esm1

Affected versions

2.*

2.4.2-1
2.4.2-1ubuntu1
2.4.3-1
2.5.0-1
2.5.1-1
2.5.2-1
2.5.3-2
2.5.3-2ubuntu1
2.5.3-2ubuntu2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano"
        },
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano-tiny-dbgsym"
        },
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano-udeb"
        },
        {
            "binary_version": "2.5.3-2ubuntu2+esm1",
            "binary_name": "nano-udeb-dbgsym"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:Pro:18.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.3-2ubuntu0.1~esm1

Affected versions

2.*

2.8.6-3
2.8.7-1
2.9.0-1
2.9.1-1
2.9.2-1
2.9.3-1
2.9.3-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.9.3-2ubuntu0.1~esm1",
            "binary_name": "nano"
        },
        {
            "binary_version": "2.9.3-2ubuntu0.1~esm1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "2.9.3-2ubuntu0.1~esm1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "2.9.3-2ubuntu0.1~esm1",
            "binary_name": "nano-tiny-dbgsym"
        },
        {
            "binary_version": "2.9.3-2ubuntu0.1~esm1",
            "binary_name": "nano-udeb"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:20.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.8-1ubuntu1.1

Affected versions

4.*

4.3-1
4.5-1
4.7-1
4.7-2
4.8-1
4.8-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "4.8-1ubuntu1.1",
            "binary_name": "nano"
        },
        {
            "binary_version": "4.8-1ubuntu1.1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "4.8-1ubuntu1.1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "4.8-1ubuntu1.1",
            "binary_name": "nano-tiny-dbgsym"
        },
        {
            "binary_version": "4.8-1ubuntu1.1",
            "binary_name": "nano-udeb"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:22.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.2-1ubuntu0.1

Affected versions

5.*

5.6.1-1build1
5.9-1

6.*

6.0-1
6.1-1
6.2-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "6.2-1ubuntu0.1",
            "binary_name": "nano"
        },
        {
            "binary_version": "6.2-1ubuntu0.1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "6.2-1ubuntu0.1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "6.2-1ubuntu0.1",
            "binary_name": "nano-tiny-dbgsym"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:24.10 / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0-1

Affected versions

7.*

7.2-2build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "8.0-1",
            "binary_name": "nano"
        },
        {
            "binary_version": "8.0-1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "8.0-1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "8.0-1",
            "binary_name": "nano-tiny-dbgsym"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}

Ubuntu:24.04:LTS / nano

Package

Name
nano
Purl
pkg:deb/ubuntu/nano?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.2-2ubuntu0.1

Affected versions

7.*

7.2-1
7.2-2
7.2-2build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "7.2-2ubuntu0.1",
            "binary_name": "nano"
        },
        {
            "binary_version": "7.2-2ubuntu0.1",
            "binary_name": "nano-dbgsym"
        },
        {
            "binary_version": "7.2-2ubuntu0.1",
            "binary_name": "nano-tiny"
        },
        {
            "binary_version": "7.2-2ubuntu0.1",
            "binary_name": "nano-tiny-dbgsym"
        }
    ],
    "priority_reason": "Uncommon attack scenario"
}