CVE-2011-2185: Fabric vulnerable to symlink attack on tmp files
4.4
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.07585%
CWE
Published
5/17/2022
Updated
1/19/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
AV:L/AC:M/Au:N/C:P/I:P/A:P
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| fabric | pip | < 1.1.0 | 1.1.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure temporary file handling in the upload_project function. The pre-patch code used timestamp-based filenames in /tmp (e.g., '/tmp/fab.%s.tar') which are predictable. Attackers could exploit this by creating symlinks at these paths. The commit 3445b56 fixed this by introducing mkdtemp for secure temporary directory creation, confirming the vulnerability resided in this function. The CVE description explicitly references '/tmp/fab.*.tar' files, which are directly tied to this function's pre-patch behavior.