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.osv.dev/v1/vulns/UBUNTU-CVE-2024-38531
Related
Published
2024-06-28T14:15:00Z
Modified
2025-06-25T17:17:03Z
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
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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / nix

Package

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

Affected ranges

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

Affected versions

2.*

2.18.1+dfsg-1ubuntu5

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix@2.24.9+dfsg-2ubuntu2?arch=source&distro=plucky

Affected ranges

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

Affected versions

2.*

2.18.1+dfsg-1ubuntu5
2.18.1+dfsg-1ubuntu6
2.24.9+dfsg-2ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_name": "nix-bin",
            "binary_version": "2.24.9+dfsg-2ubuntu2"
        },
        {
            "binary_name": "nix-bin-dbgsym",
            "binary_version": "2.24.9+dfsg-2ubuntu2"
        },
        {
            "binary_name": "nix-setup-systemd",
            "binary_version": "2.24.9+dfsg-2ubuntu2"
        }
    ]
}