Vulnerabilities in pkg:pypi/fabric
PACKAGECVE-2011-2185 is a MODERATE fabric vulnerable to symlink attack vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Fabric libraries in the PyPI ecosystem. The issue involves fabric vulnerable to symlink attack on tmp files. Remediation is available by upgrading affected packages to version 1.1.0.
pkg:pypi/fabric
Vulnerability advisories affecting package pkg:pypi/fabric. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xwg2-qc6c-7c3q | CVE-2011-2185 | MODERATE | Fabric vulnerable to symlink attack on tmp files |
CVE-2011-2185 at a Glance
How to Fix CVE-2011-2185
To remediate this vulnerability, upgrade all affected Fabric dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install fabric>=1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show fabric
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2011-2185, inspect your installed packages using pip:
pip show fabric
Analyze the terminal output to locate any version of Fabric in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The pip show fabric command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Fabric, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2011-2185 Affected Fabric Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fabric
|
PyPI |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2011-2185?
Which Fabric versions are affected?
What version fixes CVE-2011-2185?
Is fabric affected?
What CWE is associated with CVE-2011-2185?
How can I check PyPI dependencies for CVE-2011-2185?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xwg2-qc6c-7c3q",
"modified" : "2024-01-19T18:16:49Z",
"published" : "2022-05-17T05:40:10Z",
"aliases" : [ "CVE-2011-2185" ],
"summary" : "Fabric vulnerable to symlink attack on tmp files",
"details" : "Fabric before 1.1.0 allows local users to overwrite arbitrary files via a symlink attack on (1) a `/tmp/fab.*.tar` file or (2) certain other files in the top level of `/tmp/`.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "fabric"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2185"
}, {
"type" : "WEB",
"url" : "https://github.com/fabric/fabric/commit/3445b5653cd297039443110548fb3cab2e8e25af"
}, {
"type" : "WEB",
"url" : "https://github.com/fabric/fabric/commit/d7470d2db919ffcee80c245cf87e6d8d4ba6909c"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=710462"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fabric/fabric"
}, {
"type" : "WEB",
"url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629003"
}, {
"type" : "WEB",
"url" : "http://code.fabfile.org/projects/fabric/files/Fabric-1.1.0.tar.gz"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062534.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/06/03/5"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/06/06/12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-19T18:16:49Z",
"nvd_published_at" : "2011-07-27T02:55:00Z"
}
}