Medium
nix — security advisory
Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.
- Products
- nix
- Affected versions
- 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, 2.18.1+dfsg-1ubuntu5+esm2, 2.24.9+dfsg-2ubuntu2, 2.26.3+dfsg-1ubuntu1, 2.26.3+dfsg-1ubuntu2, 2.26.3+dfsg-1ubuntu4, 2.26.3+dfsg-1ubuntu5, 2.3.10+dfsg1-1, 2.3.10+dfsg1-1build1, 2.32.5+dfsg-1ubuntu3, 2.32.5+dfsg-2ubuntu1, 2.34.3+dfsg-1, 2.34.6+dfsg-1, 2.34.6+dfsg-1build1, 2.34.8+dfsg-1, 2.34.8+dfsg-1build1, 2.6.0+dfsg-2, 2.6.0+dfsg-3, 2.6.0+dfsg-3ubuntu0.1~esm1
- Fixed versions
- Not specified
- CVEs
- CVE-2024-36050
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:08 UTC · Revision 1
Source evidence
Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.
osv:UBUNTU-CVE-2024-36050
nix
Fixed versions: Not specified
nix
Fixed versions: Not specified
nix
Fixed versions: Not specified
nix
Fixed versions: Not specified
nix
Fixed versions: Not specified
Complete source record
{
"id": "6e5f73876681f3df1acfb2a1988689c88f4cbbec7058cc24b31575fc819c4bb9",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-36050",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-36050",
"summary": "Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.",
"evidence": "osv:UBUNTU-CVE-2024-36050",
"products": [
{
"name": {
"value": "nix",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.3.10+dfsg1-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.3.10+dfsg1-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0+dfsg-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0+dfsg-3ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "nix",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.16.1+dfsg-3ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "2.18.1+dfsg-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "2.18.1+dfsg-1ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "2.18.1+dfsg-1ubuntu4",
"evidence": "/affected/1/versions"
},
{
"value": "2.18.1+dfsg-1ubuntu5",
"evidence": "/affected/1/versions"
},
{
"value": "2.18.1+dfsg-1ubuntu5+esm2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "nix",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.24.9+dfsg-2ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "2.26.3+dfsg-1ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "2.26.3+dfsg-1ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "2.26.3+dfsg-1ubuntu4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "nix",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.34.3+dfsg-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.34.6+dfsg-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.34.6+dfsg-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "2.34.8+dfsg-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.34.8+dfsg-1build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "nix",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.26.3+dfsg-1ubuntu4",
"evidence": "/affected/4/versions"
},
{
"value": "2.26.3+dfsg-1ubuntu5",
"evidence": "/affected/4/versions"
},
{
"value": "2.32.5+dfsg-1ubuntu3",
"evidence": "/affected/4/versions"
},
{
"value": "2.32.5+dfsg-2ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "2.34.3+dfsg-1",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-36050",
"aliases": [
"UBUNTU-CVE-2024-36050"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nix",
"purl": "pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.3.10+dfsg1-1",
"2.3.10+dfsg1-1build1",
"2.6.0+dfsg-2",
"2.6.0+dfsg-3",
"2.6.0+dfsg-3ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nix-bin",
"binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
},
{
"binary_name": "nix-setup-systemd",
"binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nix",
"purl": "pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"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",
"2.18.1+dfsg-1ubuntu5+esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nix-bin",
"binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
},
{
"binary_name": "nix-setup-systemd",
"binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nix",
"purl": "pkg:deb/ubuntu/nix?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.24.9+dfsg-2ubuntu2",
"2.26.3+dfsg-1ubuntu1",
"2.26.3+dfsg-1ubuntu2",
"2.26.3+dfsg-1ubuntu4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nix-bin",
"binary_version": "2.26.3+dfsg-1ubuntu4"
},
{
"binary_name": "nix-setup-systemd",
"binary_version": "2.26.3+dfsg-1ubuntu4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nix",
"purl": "pkg:deb/ubuntu/nix?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.34.3+dfsg-1",
"2.34.6+dfsg-1",
"2.34.6+dfsg-1build1",
"2.34.8+dfsg-1",
"2.34.8+dfsg-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nix-bin",
"binary_version": "2.34.8+dfsg-1build1"
},
{
"binary_name": "nix-setup-systemd",
"binary_version": "2.34.8+dfsg-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nix",
"purl": "pkg:deb/ubuntu/nix?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.26.3+dfsg-1ubuntu4",
"2.26.3+dfsg-1ubuntu5",
"2.32.5+dfsg-1ubuntu3",
"2.32.5+dfsg-2ubuntu1",
"2.34.3+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nix-bin",
"binary_version": "2.34.3+dfsg-1"
},
{
"binary_name": "nix-setup-systemd",
"binary_version": "2.34.3+dfsg-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:36.445832414Z",
"provider": "osv",
"upstream": [
"CVE-2024-36050"
],
"references": [
"https://ubuntu.com/security/CVE-2024-36050",
"https://www.cve.org/CVERecord?id=CVE-2024-36050",
"https://github.com/NixOS/nix/issues/969",
"https://github.com/NixOS/ofborg/issues/68#issuecomment-2082789441"
]
},
"related_cves": [
{
"value": "CVE-2024-36050",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355843,
"published_at": "2024-05-18T22:15:00+00:00"
}