Skip to main content

Python CVE-2026-33752

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-03 https://github.com/lexiforest/curl_cffi GHSA-qw2m-4pqf-rmpp
8.6
CVSS 3.1 · Vendor: https://github.com/lexiforest/curl_cffi
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker supplies malicious URL to curl_cffi
  2. Exploit
    libcurl automatically follows redirect to internal IP
  3. Execution
    TLS impersonation mimics legitimate browser traffic
  4. Impact
    Access cloud metadata endpoints or internal services

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker provides a curl_cffi application with a malicious URL that redirects to internal IP ranges (e.g., 169.254.169.254 cloud metadata, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). Application must use curl_cffi for HTTP requests without internal IP filtering.

Impact

Real-world risk is significant for applications deployed in cloud environments (AWS, GCP, Azure) where metadata services are accessible via 169.254.169.254, as these endpoints frequently expose IAM credentials, instance identity documents, and configuration data without authentication. The CVSS 3.1 score of 8.6 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N) accurately reflects the attack surface: network-accessible, low complexity, requires no authentication or user interaction, scope change indicating access beyond the vulnerable component's security boundary, and high confidentiality impact. Attack complexity is genuinely low-the provided PoC demonstrates exploitation requires only crafting a malicious redirect response and convincing the application to request an attacker-controlled URL. The Changed scope is justified because successful exploitation accesses resources (cloud metadata, internal services) outside the curl_cffi library's intended security context. However, exploitation requires the application to accept external URL input, limiting exposure to applications with URL parameter injection points, webhook handlers, or user-configurable HTTP integrations. Without EPSS scoring or KEV listing, prioritization should focus on internet-facing Python applications in cloud infrastructure that use curl_cffi for outbound requests with any degree of user URL control. The TLS impersonation aspect elevates risk in environments relying on fingerprint-based egress filtering rather than destination IP validation.

Exploit ScenarioDerived

An attacker identifies a cloud-hosted Python application using curl_cffi that accepts webhook URLs or allows users to configure external API endpoints for integrations. The attacker registers the webhook URL as their controlled server (https://attacker-controlled.example/hook) which returns an HTTP 302 redirect to http://169.254.169.254/latest/meta-data/iam/security-credentials/. The application's curl_cffi client automatically follows the redirect per libcurl's default behavior, retrieves temporary AWS IAM credentials from the instance metadata service, and returns them in the webhook response or logs. With these credentials, the attacker gains unauthorized access to AWS resources under the instance's IAM role, potentially including S3 buckets, databases, or lateral movement capabilities within the cloud environment. Publicly available exploit code exists in the form of the detailed proof-of-concept included in the GitHub advisory, demonstrating both direct internal requests and redirect-based exploitation with TLS impersonation features.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 03, 2026

Server-Side Request Forgery in curl_cffi Python library allows unauthenticated remote attackers to access internal network resources and cloud metadata endpoints via attacker-controlled redirect chains. The library passes user-supplied URLs directly to libcurl without validating destination IP ranges and follows redirects automatically (CURLOPT_FOLLOWLOCATION enabled), enabling access to services like AWS/GCP metadata APIs (169.254.169.254). TLS fingerprint impersonation features (e.g., 'impersonate=chrome') can disguise these requests as legitimate browser traffic, potentially bypassing network controls. EPSS data not available; no active exploitation confirmed (not in CISA KEV); functional proof-of-concept publicly disclosed in GitHub advisory.

RemediationAI

Monitor the official GitHub Security Advisory at https://github.com/lexiforest/curl_cffi/security/advisories/GHSA-qw2m-4pqf-rmpp for vendor-released patch announcements with specific fixed version numbers; patch status not confirmed from available data at time of analysis. Until patched versions are available, implement application-layer URL validation before passing URLs to curl_cffi: parse and validate destination hostnames and IP addresses against allowlists, explicitly reject requests to RFC1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local addresses (169.254.0.0/16), loopback ranges (127.0.0.0/8), and IPv6 equivalents. Disable automatic redirect following where possible by reviewing curl_cffi options or implementing custom redirect handling with destination validation at each hop. For cloud deployments, enforce network-layer controls: configure security groups or firewall rules preventing egress to metadata service IPs (169.254.169.254), implement IMDSv2 requiring session tokens on AWS EC2 instances, and enable metadata service protection features on GCP and Azure. Consider replacing curl_cffi with libraries offering built-in SSRF protections or wrapping requests in a proxy service that validates all outbound destinations.

Affected Packages

pypi curl-cffi fix: 0.15.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

curl_cffi is a Python binding for libcurl that provides browser TLS fingerprinting capabilities. The vulnerability (CWE-918) stems from the library's design where user-controlled URLs are forwarded to the underlying libcurl engine without Python-layer validation of destination IP addresses or redirect targets. LibCurl's automatic redirect following (CURLOPT_FOLLOWLOCATION flag set to 1) operates below the Python abstraction layer, creating a blind spot where redirect chains can pivot from external attacker-controlled servers to internal RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local addresses (169.254.0.0/16), or loopback interfaces (127.0.0.0/8). The TLS impersonation feature, while designed for legitimate web scraping and testing, generates ClientHello fingerprints matching popular browsers, potentially evading network security controls that allowlist browser-like traffic patterns while blocking non-browser HTTP clients.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/lexiforest/curl_cffi) PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Primary rating from Vendor (https://github.com/lexiforest/curl_cffi) · only source for this CVE.

CVSS VectorVendor: https://github.com/lexiforest/curl_cffi

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 04, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 21:36 nvd
HIGH 8.6

DescriptionCVE.org

Summary

curl_cffi does not restrict requests to internal IP ranges, and follows redirects automatically via the underlying libcurl.

Because of this, an attacker-controlled URL can redirect requests to internal services such as cloud metadata endpoints. In addition, curl_cffi’s TLS impersonation feature can make these requests appear as legitimate browser traffic, which may bypass certain network controls.

Details

The issue comes from how curl_cffi handles outbound requests

  • User-supplied URLs are passed directly to libcurl without checking whether they resolve to internal IP ranges (e.g., 127.0.0.1, 169.254.0.0/16).
  • Redirects are automatically followed (CURLOPT_FOLLOWLOCATION = 1) inside libcurl.
  • There is no validation of redirect destinations at the Python layer.

This means that even if an application only allows requests to external URLs, an attacker can

  • Provide a URL pointing to an attacker-controlled server
  • Return a redirect response pointing to an internal service
  • Have curl_cffi follow that redirect automatically

As a result, internal endpoints (such as cloud instance metadata APIs) can be accessed.

Additionally, curl_cffi supports TLS fingerprint impersonation (e.g., impersonate="chrome"). In environments where outbound requests are filtered based on TLS fingerprinting, this can make such requests harder to detect or block

This behavior is similar to previously reported redirect-based SSRF issues such as CVE-2025-68616, where redirects allowed access to unintended internal resources.

PoC

  1. Direct internal request
import curl_cffi
resp = curl_cffi.get("http://169.254.169.254/latest/meta-data/")
print(resp.text)
  1. Redirect to internal service

Attacker server:

GET /test
→ 302 Location: http://169.254.169.254/latest/meta-data/

Victim code:

import curl_cffi
resp = curl_cffi.get("https://attacker.example/test")
print(resp.text)

Result

  • Initial request goes to attacker server
  • Redirect is returned
  • libcurl follows the redirect automatically
  • Internal metadata endpoint is accessed
  1. With TLS impersonation
import curl_cffi\
resp = curl_cffi.get(
    "https://attacker.example/test",
    impersonate="chrome")

In some environments, this may help the request bypass TLS-based filtering controls.

Impact

An attacker who can control the requested URL may be able to:

  • Access internal network services
  • Reach cloud metadata endpoints and retrieve sensitive information
  • Bypass certain outbound filtering mechanisms (depending on environment)

This corresponds to CWE-918 Server-Side Request Forgery.

Executive ViewAI

Why It Matters

curl_cffi Python library versions prior to patching contain an unauthenticated Server-Side Request Forgery vulnerability (CVSS 8.6) that allows remote attackers to access internal network resources and cloud metadata endpoints without authentication. Organizations using curl_cffi in production environments face risk of unauthorized access to sensitive cloud credentials, internal services, and metadata APIs; this is particularly critical for applications processing untrusted URLs or deployed in cloud infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict URL validation at application layer rejecting private/reserved IP ranges and metadata endpoints (169.254.169.254, 127.0.0.1); (2) Disable CURLOPT_FOLLOWLOCATION or restrict redirect depth to 0; (3) Deploy network egress controls blocking internal resource access from application servers; (4) Isolate curl_cffi usage to trusted input only; (5) Monitor outbound requests for suspicious destination IPs; (6) Consider temporary migration to alternative HTTP libraries pending patch availability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:pip/curl_cffi

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy