UBUNTU-CVE-2024-38531

Source
https://ubuntu.com/security/CVE-2024-38531
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-38531.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2024-38531
Upstream
Downstream
Related
Published
2024-06-28T14:15:00Z
Modified
2025-07-18T16:58:28Z
Severity
  • 3.6 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Nix is a package manager for Linux and other Unix systems that makes package management reliable and reproducible. A build process has access to and can change the permissions of the build directory. After creating a setuid binary in a globally accessible location, a malicious local user can assume the permissions of a Nix daemon worker and hijack all future builds. This issue was patched in version(s) 2.23.1, 2.22.2, 2.21.3, 2.20.7, 2.19.5 and 2.18.4.

References

Affected packages

Ubuntu:22.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix@2.6.0+dfsg-3?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.3.10+dfsg1-1
2.3.10+dfsg1-1build1
2.6.0+dfsg-2
2.6.0+dfsg-3

Ubuntu:Pro:22.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix@2.6.0+dfsg-3ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.0+dfsg-3ubuntu0.1~esm1

Affected versions

2.*

2.3.10+dfsg1-1
2.3.10+dfsg1-1build1
2.6.0+dfsg-2
2.6.0+dfsg-3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "nix-bin",
            "binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
        },
        {
            "binary_name": "nix-bin-dbgsym",
            "binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
        },
        {
            "binary_name": "nix-setup-systemd",
            "binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
        }
    ]
}

Ubuntu:24.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix@2.18.1+dfsg-1ubuntu5?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.16.1+dfsg-3ubuntu1
2.18.1+dfsg-1ubuntu1
2.18.1+dfsg-1ubuntu2
2.18.1+dfsg-1ubuntu4
2.18.1+dfsg-1ubuntu5

Ubuntu:Pro:24.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix@2.18.1+dfsg-1ubuntu5+esm2?arch=source&distro=esm-apps/noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.18.1+dfsg-1ubuntu5+esm2

Affected versions

2.*

2.16.1+dfsg-3ubuntu1
2.18.1+dfsg-1ubuntu1
2.18.1+dfsg-1ubuntu2
2.18.1+dfsg-1ubuntu4
2.18.1+dfsg-1ubuntu5

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "nix-bin",
            "binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
        },
        {
            "binary_name": "nix-bin-dbgsym",
            "binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
        },
        {
            "binary_name": "nix-setup-systemd",
            "binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
        }
    ]
}