{"api_version":"1","generated_at":"2026-07-24T20:18:14+00:00","cve":"CVE-2021-27851","urls":{"html":"https://cve.report/CVE-2021-27851","api":"https://cve.report/api/cve/CVE-2021-27851.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-27851","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-27851"},"summary":{"title":"CVE-2021-27851","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.","state":"PUBLIC","assigner":"cert@cert.org","published_at":"2021-04-26 16:15:00","updated_at":"2022-07-29 16:34:00"},"problem_types":["CWE-59"],"metrics":[],"references":[{"url":"https://guix.gnu.org/en/blog/2021/risk-of-local-privilege-escalation-via-guix-daemon/","name":"https://guix.gnu.org/en/blog/2021/risk-of-local-privilege-escalation-via-guix-daemon/","refsource":"MISC","tags":[],"title":"Risk of local privilege escalation via guix-daemon — 2021 — Blog — GNU Guix","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://bugs.gnu.org/47229","name":"https://bugs.gnu.org/47229","refsource":"MISC","tags":[],"title":"#47229 - Local privilege escalation via guix-daemon and ‘--keep-failed’ - GNU bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-27851","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27851","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Nathan Nye of WhiteBeam Security","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"27851","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"guix","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-27851","qid":"179464","title":"Debian Security Update for guix (CVE-2021-27851)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cert@cert.org","DATE_PUBLIC":"2021-03-18T00:00:00.000Z","ID":"CVE-2021-27851","STATE":"PUBLIC","TITLE":"Local privilege escalation in GNU Guix via guix-daemon and '--keep-failed'"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"guix-daemon","version":{"version_data":[{"version_affected":">=","version_value":"v0.11.0-3298-g2608e40988 "},{"version_affected":"<","version_value":"v1.2.0-75109-g94f0312546"}]}}]},"vendor_name":"GNU Guix"}]}},"credit":[{"lang":"eng","value":"Nathan Nye of WhiteBeam Security"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-264 Permissions, Privileges, and Access Controls"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://guix.gnu.org/en/blog/2021/risk-of-local-privilege-escalation-via-guix-daemon/","name":"https://guix.gnu.org/en/blog/2021/risk-of-local-privilege-escalation-via-guix-daemon/"},{"refsource":"MISC","url":"https://bugs.gnu.org/47229","name":"https://bugs.gnu.org/47229"}]},"source":{"discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-04-26 16:15:00","lastModifiedDate":"2022-07-29 16:34:00","problem_types":["CWE-59"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:N/I:P/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gnu:guix:*:*:*:*:*:*:*:*","versionStartIncluding":"0.11.0","versionEndExcluding":"1.2.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"27851","Ordinal":"202964","Title":"CVE-2021-27851","CVE":"CVE-2021-27851","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"27851","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"27851","Ordinal":"2","NoteData":"2021-04-26","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"27851","Ordinal":"3","NoteData":"2021-04-26","Type":"Other","Title":"Modified"}]}}}