Vulnerabilities in pkg:pypi/curl-cffi

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/curl-cffi

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-3vpc-4p9p-47hc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product Curl cffi
Package Ecosystem PyPI
Published Date
Last Updated

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.

curl-cffi fixed: 0.7.0b6
pip install curl-cffi>=0.7.0b6
Verify Direct and Transitive Dependencies

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

### Summary curl_cffi is potentially affected by High Severity vulnerability (CVE-2023-38545) in libcurl<8.4.0 ### Details HIGH severity vulnerability in curl and libcurl: [announcement](https://github.com/curl/curl/discussions/12026#discussioncomment-7195548) Details 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_". A patched version (8.4.0) and details will be published around 06:00 UTC on October 11. curl_cffi wheels on PyPI ship with libcurl 7.84.0 ### PoC [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) ### Resolution Versions after 0.7 bundles with `libcurl>=8.5`, which is not affected by this issue.

GHSA-3vpc-4p9p-47hc Affected Curl cffi Versions

1 component(s)
Fixed Versions:
0.7.0b6
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?
GHSA-3vpc-4p9p-47hc is a security vulnerability in Curl cffi involving curl_cffi bundles a version of libcurl affected by High Severity vulnerability under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which Curl cffi versions are affected?
Affected versions include releases prior to 0.7.0b6 across affected packages: curl-cffi.
What version fixes GHSA-3vpc-4p9p-47hc?
Upgrading to 0.7.0b6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is curl-cffi affected?
Yes, curl-cffi is affected in releases prior to 0.7.0b6. Upgrade your dependency to 0.7.0b6 or later.
What CWE is associated with GHSA-3vpc-4p9p-47hc?
GHSA-3vpc-4p9p-47hc is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check PyPI dependencies for GHSA-3vpc-4p9p-47hc?
Run the dependency tree command: 'pip show curl-cffi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}