Skip to main content

Python CVE-2026-34936

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-01 https://github.com/MervinPraison/PraisonAI GHSA-x6m9-gxvr-7jpv
7.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticated user calls passthrough() with malicious api_base
  2. Exploit
    Parameter concatenated with endpoint without validation
  3. Execution
    httpx.Client.request() sends request to attacker-controlled host
  4. Impact
    Server-side request forgery to internal network

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

Authenticated access required to praisonai application. Attacker must be authenticated user with ability to call passthrough() or apassthrough() functions. No URL scheme validation or private IP filtering applied to api_base parameter. Default configurations vulnerable when authentication exists.

Impact

This vulnerability presents significant real-world risk despite the CVSS 3.1 score of 7.7 requiring low privileges (PR:L). The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N indicates network-based attack with low complexity, low privileges required, no user interaction, scope change to impact other components, and high confidentiality impact. However, the technical analysis reveals the default AUTH_ENABLED=False configuration effectively removes the authentication requirement in practice, making this exploitable by unauthenticated remote attackers in default deployments. The Changed Scope (S:C) rating is particularly accurate given the ability to pivot from the PraisonAI application context to access entirely separate systems like cloud metadata services and internal infrastructure. Publicly available exploit code exists as demonstrated in the PoC showing successful retrieval of localhost services and metadata endpoints. The vulnerability is not listed in CISA KEV indicating no confirmed active exploitation campaigns at time of analysis, but the combination of public PoC availability, cloud metadata service targeting capability, and default-insecure configuration creates elevated risk for organizations running PraisonAI on AWS EC2 with IMDSv1 or in containerized environments with accessible Kubernetes APIs. Attack complexity is genuinely low (AC:L) as exploitation requires only crafting HTTP requests with custom api_base and custom_llm_provider parameters. The primary limiting factor is that impact is confidentiality-only (C:H/I:N/A:N) as SSRF typically enables information disclosure rather than direct system modification, though retrieved IAM credentials could enable subsequent authenticated attacks outside the scope of this CVE.

Exploit ScenarioDerived

An authenticated attacker with access to a PraisonAI deployment on AWS EC2 sends a crafted

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 02, 2026

Server-Side Request Forgery in PraisonAI's passthrough API allows authenticated remote attackers to access internal cloud metadata services and private network resources. The vulnerability affects the praisonai Python package where the passthrough() and apassthrough() functions accept unvalidated caller-controlled api_base parameters that are directly concatenated and passed to httpx requests. With default AUTH_ENABLED=False configuration, this is remotely exploitable to retrieve EC2 IAM credent

Earlier versions of this analysis (1)
v1 Apr 02, 2026 - 00:15 CVSS 7.7

Server-Side Request Forgery in PraisonAI's passthrough API allows authenticated remote attackers to access internal cloud metadata services and private network resources. The vulnerability affects the praisonai Python package where the passthrough() and apassthrough() functions accept unvalidated caller-controlled api_base parameters that are directly concatenated and passed to httpx requests. With default AUTH_ENABLED=False configuration, this is remotely exploitable to retrieve EC2 IAM credentials via IMDSv1 (169.254.169.254) or reach internal services like Redis, Elasticsearch, and Kubernetes APIs within cloud VPCs. Public exploit code exists demonstrating localhost and metadata service access. EPSS data not available, not listed in CISA KEV.

RemediationAI

Users should immediately review the official GitHub Security Advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x6m9-gxvr-7jpv for vendor-provided remediation guidance and patch availability. No vendor-released patch version is independently confirmed from the available data at time of analysis. As interim mitigations, organizations should enable authentication by setting AUTH_ENABLED=True in the Flask API server configuration to enforce the low-privilege requirement indicated in the CVSS vector, implement network-layer controls to block outbound requests from PraisonAI servers to RFC 1918 private address ranges and link-local addresses (169.254.0.0/16), upgrade EC2 instances to IMDSv2 which requires PUT requests with token headers that cannot be exploited via simple GET-based SSRF, and if possible avoid using the passthrough() and apassthrough() functions with untrusted input until a patched version is released. Network egress filtering should deny access to internal service ports (6379 for Redis, 9200 for Elasticsearch, 6443/8443 for Kubernetes) from the PraisonAI application tier. Consider implementing application-layer allowlists that restrict api_base parameters to explicitly approved external API domains if passthrough functionality is required for legitimate use cases.

Affected Packages

pypi praisonai fix: 4.5.90

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

This is a classic Server-Side Request Forgery vulnerability (CWE-918) in the PraisonAI Python package's HTTP passthrough capability. The passthrough.py module implements a fallback mechanism for LLM provider routing: when litellm raises AttributeError for unrecognized providers, the code enters an exception handler that concatenates the caller-supplied api_base parameter with an endpoint path and passes it directly to httpx.Client.request() without any validation. The vulnerable code path is: passthrough.py:92 accepts api_base from caller, line 109 catches AttributeError and constructs the URL via string concatenation (url = f"{api_base or 'https://api.openai.com'}{endpoint}"), and line 110 executes the HTTP request with no scheme validation, IP address filtering, or domain allowlisting. The httpx library faithfully executes requests to any reachable destination including RFC 1918 private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), localhost (127.0.0.1), and link-local addresses (169.254.0.0/16). This architectural flaw is compounded by PraisonAI's Flask API server deploying with AUTH_ENABLED=False by default, removing the low-privilege authentication barrier indicated in the CVSS vector and effectively making this network-accessible without credentials in default configurations.

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

NVD PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 14:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 23:21 nvd
HIGH 7.7

DescriptionNVD

Summary

passthrough() and apassthrough() in praisonai accept a caller-controlled api_base parameter that is concatenated with endpoint and passed directly to httpx.Client.request() when the litellm primary path raises AttributeError. No URL scheme validation, private IP filtering, or domain allowlist is applied, allowing requests to any host reachable from the server.

Details

passthrough.py:92 (source) -> passthrough.py:109 (fallback trigger) -> passthrough.py:110 (sink)

python
# source -- api_base taken directly from caller
def passthrough(endpoint, api_base=None, method="GET", ...):
# fallback trigger -- AttributeError from unrecognised provider enters fallback
except AttributeError:
    url = f"{api_base or 'https://api.openai.com'}{endpoint}"
# sink -- no validation before request
    response = client.request(method, url=url, ...)

PoC

python
# tested on: praisonai 1.5.87 (source install)
# install: pip install -e src/praisonai
# start listener: python3 -m http.server 8888
import sys, litellm
sys.path.insert(0, 'src/praisonai')
del litellm.llm_passthrough_route

from praisonai.capabilities.passthrough import passthrough

result = passthrough(
    endpoint="/ssrf-test",
    api_base="http://127.0.0.1:8888",
    method="GET",
    custom_llm_provider="__nonexistent__",
)
print(result)
# expected output: PassthroughResult(data='...', status_code=404, headers={'server': 'SimpleHTTP/0.6 Python/3.12.3', ...})
# listener logs: "GET /ssrf-test HTTP/1.1" 404
# on EC2 with IMDSv1: api_base="http://169.254.169.254" returns IAM credentials

Impact

On cloud infrastructure with IMDSv1 enabled, an attacker can retrieve IAM credentials via the EC2 metadata service. Internal services (Redis, Elasticsearch, Kubernetes API) are reachable without authentication from within the VPC. The Flask API server deploys with AUTH_ENABLED = False by default, making this reachable over the network without credentials.

Executive ViewAI

Why It Matters

PraisonAI's passthrough API (CVE-2026-34936) contains a server-side request forgery vulnerability that allows authenticated attackers to access internal cloud metadata services and private network resources, including EC2 IAM credentials and backend services like Redis and Kubernetes APIs. Organizations using PraisonAI with default authentication disabled face immediate risk of credential exposure and lateral movement within their cloud infrastructure. This vulnerability directly threatens cloud security posture and requires urgent isolation of affected deployments.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Set AUTH_ENABLED=True and enforce strong authentication on passthrough endpoints; (2) Disable passthrough() and apassthrough() functions if not actively used; (3) Implement network-level egress controls to block access to 169.254.169.254 (IMDS) and internal service IPs from PraisonAI process; (4) Apply strict allowlist validation on api_base parameters to only approved external API endpoints; (5) Isolate PraisonAI instances in restricted VPC subnets without access to internal services; (6) Enable CloudTrail and VPC Flow Logs to detect exploit attempts.

Threat Intelligence Overview

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

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
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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)NVD

pkg:pip/praisonai

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