CVE-2017-8761: Swift Temporary Urls Leaked Vulnerability
LOWCVE-2017-8761 is a LOW temporary urls leaked vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Swift libraries in the PyPI ecosystem. The issue involves temporary urls leaked via logging. Remediation is available by upgrading affected packages to version 2.15.2.
CVE-2017-8761 at a Glance
How to Fix CVE-2017-8761
To remediate this vulnerability, upgrade all affected Swift 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 swift>=2.15.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show swift
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2017-8761, inspect your installed packages using pip:
pip show swift
Analyze the terminal output to locate any version of Swift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.15.2), your application is affected.
Note: The pip show swift command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Swift, 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-2017-8761 Affected Swift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
swift
|
PyPI |
< 2.15.2
|
2.15.2
|
References
Frequently Asked Questions
What is CVE-2017-8761?
Which Swift versions are affected?
What version fixes CVE-2017-8761?
Is swift affected?
What CWE is associated with CVE-2017-8761?
How can I check PyPI dependencies for CVE-2017-8761?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8fxc-qm65-vpxg",
"modified" : "2021-06-03T21:08:32Z",
"published" : "2021-06-08T19:23:22Z",
"aliases" : [ "CVE-2017-8761" ],
"summary" : "Temporary urls leaked via logging",
"details" : "In OpenStack Swift prior to 2.15.2, the proxy-server logs full tempurl paths, potentially leaking reusable tempurl signatures to anyone with read access to these logs. All Swift deployments using the tempurl middleware are affected.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "swift"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.15.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-8761"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/swift/+bug/1685798/comments/18"
}, {
"type" : "WEB",
"url" : "https://launchpad.net/bugs/1685798"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-117", "CWE-200" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-03T21:08:32Z",
"nvd_published_at" : "2021-06-02T14:15:00Z"
}
}