{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-64846 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-64846 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-64846 is a low-severity vulnerability in NixOS nix, published on 20 Aug 2026."},"fix_prompt":"Check this codebase for CVE-2026-64846 and fix it if it is affected.\n\nWhat it is: CVE-2026-64846 is a low-severity vulnerability in NixOS nix, published on 20 Aug 2026. \nExploitation: There is no known exploitation of CVE-2026-64846 in the wild and no public exploit code.\n\nAffected product: NixOS nix. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-64846/ (Markdown: https://insights.sbomify.com/CVE-2026-64846/index.md)","id":"CVE-2026-64846","markdown":"https://insights.sbomify.com/CVE-2026-64846/index.md","name":"CVE-2026-64846","record":{"aliases":["DEBIAN-CVE-2026-64846","GHSA-6h4g-g5j9-fm5f","UBUNTU-CVE-2026-64846"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":2.8,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"Nix is a package manager for Linux and other Unix systems. Prior to 2.35.0, a malicious derivation executed with the recursive-nix experimental feature can exploit a time-of-check/time-of-use race involving final symlink handling in the LocalStore restore path. The race can cause writeFile to follow a substituted final symlink when opening a path with O_TRUNC instead of enforcing FinalSymlink::DontFollow, allowing the Nix process or nix-daemon to create or truncate an empty file outside the build sandbox with the daemon user's permissions. The primitive does not provide arbitrary-content writes and requires winning the race. This issue is fixed in version 2.35.0.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Nix: Arbitrary file truncation outside the sandbox with recursive-nix experimental feature","id":"CVE-2026-64846","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"AnyIO process-pool workers can block indefinitely on undrained stderr","id":"CVE-2026-64847"},"packages":[],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-64844"},"products":["nix"],"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-20","vendors":["NixOS"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-64846/"}