Vulnerabilities in pkg:pypi/curl-cffi
PACKAGEGHSA-3vpc-4p9p-47hc is a HIGH curl_cffi bundles a version of vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Curl cffi libraries in the PyPI ecosystem. The issue involves curl_cffi bundles a version of libcurl affected by high severity vulnerability. Remediation is available by upgrading affected packages to version 0.7.0b6.
pkg:pypi/curl-cffi
Vulnerability advisories affecting package pkg:pypi/curl-cffi. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-3vpc-4p9p-47hc | - | HIGH | curl_cffi bundles a version of libcurl affected by High Severity vulnerability |
GHSA-3vpc-4p9p-47hc at a Glance
How to Fix GHSA-3vpc-4p9p-47hc
To remediate this vulnerability, upgrade all affected Curl cffi 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 curl-cffi>=0.7.0b6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show curl-cffi
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-3vpc-4p9p-47hc, inspect your installed packages using pip:
pip show curl-cffi
Analyze the terminal output to locate any version of Curl cffi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0b6), your application is affected.
Note: The pip show curl-cffi command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Curl cffi, 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
GHSA-3vpc-4p9p-47hc Affected Curl cffi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
curl-cffi
|
PyPI |
< 0.7.0b6
|
0.7.0b6
|
References
Frequently Asked Questions
What is GHSA-3vpc-4p9p-47hc?
Which Curl cffi versions are affected?
What version fixes GHSA-3vpc-4p9p-47hc?
Is curl-cffi affected?
What CWE is associated with GHSA-3vpc-4p9p-47hc?
How can I check PyPI dependencies for GHSA-3vpc-4p9p-47hc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3vpc-4p9p-47hc",
"modified" : "2024-10-22T18:15:17Z",
"published" : "2024-10-22T18:15:17Z",
"aliases" : [ ],
"summary" : "curl_cffi bundles a version of libcurl affected by High Severity vulnerability",
"details" : "### Summary\ncurl_cffi is potentially affected by High Severity vulnerability (CVE-2023-38545) in libcurl<8.4.0\n\n### Details\nHIGH severity vulnerability in curl and libcurl: [announcement](https://github.com/curl/curl/discussions/12026#discussioncomment-7195548)\nDetails are still unknown, but seems it will be a major issue as it's advertised by curl devs as \"_probably the worst curl security flaw in a long time_\".\nA patched version (8.4.0) and details will be published around 06:00 UTC on October 11.\ncurl_cffi wheels on PyPI ship with libcurl 7.84.0\n\n### PoC\n[https://inspector.pypi.io/project/curl-cffi/0.5.10b2/packages/56/ae/eb7d39ad234f1f44650b910757d5aa696feff413d327c8328223ce78cb76/curl_cffi-0.5.10b2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/curl_cffi/include/curl/curlver.h](https://inspector.pypi.io/project/curl-cffi/0.5.10b2/packages/56/ae/eb7d39ad234f1f44650b910757d5aa696feff413d327c8328223ce78cb76/curl_cffi-0.5.10b2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/curl_cffi/include/curl/curlver.h)\n\n### Resolution\n\nVersions after 0.7 bundles with `libcurl>=8.5`, which is not affected by this issue.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "curl-cffi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0b6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.6.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lexiforest/curl_cffi/security/advisories/GHSA-3vpc-4p9p-47hc"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7xw9-w465-6x42"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lexiforest/curl_cffi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-22T18:15:17Z",
"nvd_published_at" : null
}
}