Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS03bWp2LXgzamYtNTQ1eM4AAyNr
cloudflared's Installer has Local Privilege Escalation Vulnerability
Impact
A vulnerability has been discovered in cloudflared's installer (<= 2023.3.0) for Windows 32-bits devices that allows a local attacker with no administrative permissions to escalate their privileges on the affected device. This vulnerability exists because the MSI installer used by cloudflared relied on a world-writable directory.
An attacker with local access to the device (without Administrator rights) can use symbolic links to trick the MSI installer into deleting files in locations that the attacker would otherwise have no access to. By creating a symlink from the world-writable directory to the target file, the attacker can manipulate the MSI installer's repair functionality to delete the target file during the repair process.
Exploitation of this vulnerability could allow an attacker to delete important system files or replace them with malicious files, potentially leading to the affected device being compromised.
The cloudflared client itself is not affected by this vulnerability, only the installer for 32-bit Windows devices.
Patches
A new installer was released as part of version 2023.3.1, corresponding to pseudoversion 0.0.0-20230313153246-f686da832f85 on pkg.go.dev. Users are encouraged to remove old installers from their systems.
References Permalink: https://github.com/advisories/GHSA-7mjv-x3jf-545x
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03bWp2LXgzamYtNTQ1eM4AAyNr
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 2 years ago
Updated: almost 2 years ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:H
EPSS Percentage: 0.00042
EPSS Percentile: 0.05089
Identifiers: GHSA-7mjv-x3jf-545x, CVE-2023-1314
References:
- https://github.com/cloudflare/cloudflared/security/advisories/GHSA-7mjv-x3jf-545x
- https://nvd.nist.gov/vuln/detail/CVE-2023-1314
- https://github.com/cloudflare/cloudflared/commit/9c15f31d003bebfbe6467c2b42972df3e7c9b886
- https://github.com/cloudflare/cloudflared/releases
- https://github.com/advisories/GHSA-7mjv-x3jf-545x
Blast Radius: 3.6
Affected Packages
go:github.com/cloudflare/cloudflared
Dependent packages: 10Dependent repositories: 3
Downloads:
Affected Version Ranges: < 0.0.0-20230313153246-f686da832f85
Fixed in: 0.0.0-20230313153246-f686da832f85
All affected versions: 0.0.0-20221114112238-85b44695f089, 0.0.0-20221114172511-1fe4878264cc, 0.0.0-20221116100417-1c6316c1c94f, 0.0.0-20221116120509-b50f172bdb93, 0.0.0-20221117102804-9339bb948557, 0.0.0-20221118100713-c49621c7232c, 0.0.0-20221122113548-af59851f33f1, 0.0.0-20221124160347-b0663dce334e, 0.0.0-20221125170059-e3d35570e6e5, 0.0.0-20221129151334-64f15d9992e0, 0.0.0-20221130101203-cf87ec796995, 0.0.0-20221130150521-4c10f68e2d33, 0.0.0-20221205135938-09e33a0b176f, 0.0.0-20221205162315-72503eeaaac9, 0.0.0-20221205175049-45e8eb727539, 0.0.0-20221207110916-7ef9bb89d30f, 0.0.0-20221207131344-61ccc0b30302, 0.0.0-20221207174615-b8b35d99fa18, 0.0.0-20221212130606-c13b6df0a77c, 0.0.0-20221212132114-78ca8002d2e4, 0.0.0-20221213110300-7dee179652d9, 0.0.0-20221213120332-e51724219403, 0.0.0-20221214131721-99b3736cc7f7, 0.0.0-20221215081939-2519aec73345, 0.0.0-20221219115237-045439f0abb8, 0.0.0-20221220112627-d19da6767a60, 0.0.0-20221220115932-645e22744c07, 0.0.0-20221225040551-887e486a6325, 0.0.0-20230104135200-de4fd472f3dd, 0.0.0-20230110103745-87bd36c924cc, 0.0.0-20230111154803-794e8e622f84, 0.0.0-20230112215501-4d993488df6f, 0.0.0-20230117101002-de7ca4be3046, 0.0.0-20230120115256-4616e9fcc2b5, 0.0.0-20230122191706-bd917d294cb1, 0.0.0-20230123130058-513855df5cd9, 0.0.0-20230126173008-207f4e2c8d04, 0.0.0-20230131103458-93e569fa2395, 0.0.0-20230131115129-d8f2b768f8d8, 0.0.0-20230131223528-c24f27598117
All unaffected versions: