{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-27851 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-27851 is a medium-severity vulnerability in GNU Guix guix-daemon, published on 26 Apr 2021. 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-2021-27851 and fix it if it is affected.\n\nWhat it is: CVE-2021-27851 is a medium-severity vulnerability in GNU Guix guix-daemon, published on 26 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-27851 in the wild and no public exploit code.\n\nAffected product: GNU Guix guix-daemon. 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-2021-27851/ (Markdown: https://insights.sbomify.com/CVE-2021-27851/index.md)","id":"CVE-2021-27851","markdown":"https://insights.sbomify.com/CVE-2021-27851/index.md","name":"CVE-2021-27851","record":{"aliases":["DEBIAN-CVE-2021-27851","GHSA-c5fp-qrw2-8x2w","UBUNTU-CVE-2021-27851","openSUSE-SU-2024:10836-1"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"GNU Guix package manager","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges to root by exploiting hardlink handling in guix-daemon when the --keep-failed option is used.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"guix","vendor":"gnu"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-264","name":null}],"description":"A security vulnerability that can lead to local privilege escalation has been found in ’guix-daemon’. It affects multi-user setups in which ’guix-daemon’ runs locally. The attack consists in having an unprivileged user spawn a build process, for instance with `guix build`, that makes its build directory world-writable. The user then creates a hardlink to a root-owned file such as /etc/shadow in that build directory. If the user passed the --keep-failed option and the build eventually fails, the daemon changes ownership of the whole build tree, including the hardlink, to the user. At that point, the user has write access to the target file. Versions after and including v0.11.0-3298-g2608e40988, and versions prior to v1.2.0-75109-g94f0312546 are vulnerable.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Local privilege escalation in GNU Guix via guix-daemon and '--keep-failed'","id":"CVE-2021-27851","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2021"},"n_packages":1,"n_references":2,"next":{"headline":"Checkbox Survey Deserialization of Untrusted Data","id":"CVE-2021-27852"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.3.0-1.8"],"introduced":["0"],"last_affected":[],"package":"guix","purl":"pkg:rpm/opensuse/guix\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10836-1"}],"prev":{"headline":"Bypass of the fix for CVE-2019-0195","id":"CVE-2021-27850"},"products":["guix-daemon"],"published":"2021-04-26","related":[{"cvss_score":7.8,"headline":"Privilege escalation in n/a","id":"CVE-2019-18192","kev_date_added":null,"published":"2019-10-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["GNU Guix"]},"summary":"Local attackers can escalate privileges to root by exploiting hardlink handling in guix-daemon when the --keep-failed option is used.","url":"https://insights.sbomify.com/CVE-2021-27851/"}