Skip to main content

Duplicate Advisory: PraisonAI: API deploy code generator embeds unescaped YAML fields into Python source

0
High
Published: 07/15/2026 (07/15/2026, 12:32:03 UTC)
Source: GCVE Database
Product: praisonai

Description

PraisonAI versions up to 4.6.77 contain a vulnerability where deployment configuration values are not safely encoded when generating Python source code for API servers. This allows attackers to inject arbitrary Python expressions via specific configuration parameters, leading to code execution when the server starts or processes requests.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

PyPIghsa
praisonai
Affected versions
<=4.6.77

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 21:50:32 UTC

Technical Analysis

PraisonAI before version 4.6.78 improperly encodes deployment configuration values in generated Python source code for API servers. Specifically, the deploy.api.host and agents_file configuration parameters can be manipulated by attackers to inject arbitrary Python expressions. These expressions execute with the privileges of the generated server either at startup or during request handling, resulting in remote code execution. The vulnerability is tracked under CWE-94 (Improper Control of Generation of Code).

Potential Impact

Successful exploitation allows an attacker to execute arbitrary Python code on the server hosting the API, potentially leading to full compromise of the system, including confidentiality, integrity, and availability impacts. The CVSS 3.1 score is 7.8 (high), reflecting the significant risk posed by this vulnerability.

Mitigation Recommendations

No official patch information is provided in the advisory. Since the vulnerability affects PraisonAI versions up to 4.6.77 and is fixed in 4.6.78, upgrading to version 4.6.78 or later is recommended once available. Until then, avoid using untrusted input in the deploy.api.host and agents_file configuration parameters or restrict access to configuration files to trusted administrators only. Monitor the vendor advisory for official fixes or updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-qpq9-hwx9-cwgc
Osv Schema Version
1.4.0
Ecosystems
["PyPI"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6ac80f0e2cdf04f6563904a2

Added to database: 10/08/2026, 21:45:50 UTC

Last enriched: 10/08/2026, 21:50:32 UTC

Last updated: 10/08/2026, 21:50:32 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses