CVE-2021-27851

CVSS V2 Low 2.1 CVSS V3 Medium 5.5
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.
Overview
  • CVE ID
  • CVE-2021-27851
  • Assigner
  • cret@cert.org
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2021-04-26T16:15:07
  • Last Modified Date
  • 2022-07-29T16:34:08
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:gnu:guix:*:*:*:*:*:*:*:* 1 OR 0.11.0 1.2.0
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:L/AC:L/Au:N/C:N/I:P/A:N
  • Access Vector
  • LOCAL
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • NONE
  • Integrity Impact
  • PARTIAL
  • Availability Impact
  • NONE
  • Base Score
  • 2.1
  • Severity
  • LOW
  • Exploitability Score
  • 3.9
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Attack Vector
  • LOCAL
  • Attack Compatibility
  • LOW
  • Privileges Required
  • LOW
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • NONE
  • Availability Impact
  • NONE
  • Base Score
  • 5.5
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 1.8
  • Impact Score
  • 3.6
References
Reference URL Reference Tags
https://guix.gnu.org/en/blog/2021/risk-of-local-privilege-escalation-via-guix-daemon/ Patch Vendor Advisory
https://bugs.gnu.org/47229 Issue Tracking Mailing List Patch Vendor Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 16:16:42 Added to TrackCVE
2022-12-06 02:48:52 cert@cert.org cret@cert.org CVE Assigner updated
2022-12-06 02:48:52 2021-04-26T16:15Z 2021-04-26T16:15:07 CVE Published Date updated
2022-12-06 02:48:52 2022-07-29T16:34:08 CVE Modified Date updated
2022-12-06 02:48:52 Analyzed Vulnerability Status updated