{"answers":{"affected":"2 open source packages ship an affected version, including coreutils. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35368 exists.","fix":"Apply the vendor's patch.","what":"CVE-2026-35368 is a high-severity vulnerability in Uutils coreutils, published on 22 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35368 and fix it if it is affected.\n\nWhat it is: CVE-2026-35368 is a high-severity vulnerability in Uutils coreutils, published on 22 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35368 exists.\n\nAffected packages and fixed versions:\n- coreutils (crates.io): affected all versions up to 0.8.0; no fix listed\n- coreutils (crates.io): affected all versions up to 0.8.0; no fix listed\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-35368/ (Markdown: https://insights.sbomify.com/CVE-2026-35368/index.md)","id":"CVE-2026-35368","markdown":"https://insights.sbomify.com/CVE-2026-35368/index.md","name":"CVE-2026-35368","record":{"aliases":["DEBIAN-CVE-2026-35368","GHSA-mh5c-xrmh-m794","UBUNTU-CVE-2026-35368"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"uutils coreutils","requires_auth":"low_privilege","summary":"Attackers with write access to a chroot directory can inject malicious NSS modules to execute arbitrary code as root, enabling privilege escalation or container escape.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"coreutils","vendor":"uutils"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"description":"A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility resolves the user specification via getpwnam() after entering the chroot but before dropping root privileges. On glibc-based systems, this can trigger the Name Service Switch (NSS) to load shared libraries (e.g., libnss_*.so.2) from the new root directory. If the NEWROOT is writable by an attacker, they can inject a malicious NSS module to execute arbitrary code as root, facilitating a full container escape or privilege escalation.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"uutils coreutils chroot Local Privilege Escalation and chroot Escape in via Name Service Switch (NSS) Injection","id":"CVE-2026-35368","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"privilege_escalation","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"uutils coreutils kill System-wide Process Termination and Denial of Service via Argument Misinterpretation","id":"CVE-2026-35369"},"packages":[{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.8.0"],"package":"coreutils","purl":null,"source":"GHSA-mh5c-xrmh-m794"},{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.8.0"],"package":"coreutils","purl":"pkg:cargo/coreutils","source":"GHSA-mh5c-xrmh-m794"}],"prev":{"headline":"uutils coreutils nohup Information Disclosure via Insecure Default Output Permissions","id":"CVE-2026-35367"},"products":["coreutils"],"published":"2026-04-22","related":[{"cvss_score":7.3,"headline":"uutils coreutils chmod Path Traversal Bypass of --preserve-root","id":"CVE-2026-35338","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":7.1,"headline":"uutils coreutils mkfifo Unauthorized Permission Change on Existing Files","id":"CVE-2026-35341","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":7,"headline":"uutils coreutils mkfifo Privilege Escalation via TOCTOU Race Condition","id":"CVE-2026-35352","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":6.7,"headline":"uutils coreutils Path-Based Safety Bypass with --preserve-root","id":"CVE-2026-35349","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":6.6,"headline":"uutils coreutils cp Unexpected Privileged Executable Creation with -p","id":"CVE-2026-35350","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":6.6,"headline":"uutils coreutils mv Denial of Service and Data Duplication via Improper Symlink Expansion","id":"CVE-2026-35365","kev_date_added":null,"published":"2026-04-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-25","vendors":["Uutils"]},"summary":"Attackers with write access to a chroot directory can inject malicious NSS modules to execute arbitrary code as root, enabling privilege escalation or container escape.","url":"https://insights.sbomify.com/CVE-2026-35368/"}