CVE-2020-24356: Local Privilege Escalation in cloudflared
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.07686%
CWE
Published
5/24/2021
Updated
3/2/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/cloudflare/cloudflared | go | < 0.0.0-20200820025921-9323844ea773 | 0.0.0-20200820025921-9323844ea773 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) Inclusion of C:\etc\
in the configuration search path on Windows, which isn't secure by default (CWE-427). The commit message explicitly mentions stopping checks on /etc
in Windows, indicating this was part of the vulnerable code. 2) Improper handling of log file paths from untrusted configurations, allowing path hijacking. The commit references 'log file protection' as a fix, confirming this was a vulnerable component. While exact function names aren't visible in the provided diff, the CWE mapping and patch context make these functional areas clear vectors.