Duplicate Advisory: PraisonAI: API deploy code generator embeds unescaped YAML fields into Python source
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.