CVE-2026-40113
Received Received - Intake
Environment Variable Injection in PraisonAI deploy.py via Comma Parsing

Publication date: 2026-04-09

Last updated on: 2026-04-17

Assigner: GitHub, Inc.

Description
PraisonAI is a multi-agent teams system. Prior to 4.5.128, deploy.py constructs a single comma-delimited string for the gcloud run deploy --set-env-vars argument by directly interpolating openai_model, openai_key, and openai_base without validating that these values do not contain commas. gcloud uses a comma as the key-value pair separator for --set-env-vars. A comma in any of the three values causes gcloud to parse the trailing text as additional KEY=VALUE definitions, injecting arbitrary environment variables into the deployed Cloud Run service. This vulnerability is fixed in 4.5.128.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-09
Last Modified
2026-04-17
Generated
2026-06-16
AI Q&A
2026-04-10
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
praison praisonai to 4.5.128 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

This vulnerability allows injection of arbitrary environment variables into the deployed Cloud Run service by exploiting improper validation of input values containing commas. Such unauthorized environment variable injection can lead to unauthorized access or exposure of sensitive data.

Because the vulnerability can lead to unauthorized disclosure or modification of sensitive information, it may impact compliance with data protection standards and regulations such as GDPR and HIPAA, which require strict controls over data confidentiality and integrity.

Executive Summary

The vulnerability exists in PraisonAI versions prior to 4.5.128 in the deploy.py script. When constructing the gcloud run deploy command with the --set-env-vars argument, the script directly interpolates the values of openai_model, openai_key, and openai_base without checking if these values contain commas.

Since gcloud uses commas to separate key-value pairs in --set-env-vars, any comma in these values causes gcloud to interpret the trailing text as additional environment variable definitions. This allows an attacker to inject arbitrary environment variables into the deployed Cloud Run service.

This issue was fixed in version 4.5.128 of PraisonAI.

Impact Analysis

This vulnerability can lead to the injection of arbitrary environment variables into the deployed Cloud Run service. Such injection can compromise the integrity and confidentiality of the service by allowing unauthorized configuration changes or exposure of sensitive information.

Because the CVSS score is 8.4 with high impact on confidentiality and integrity, an attacker with limited privileges could escalate their control over the environment, potentially leading to data breaches or service disruption.

Mitigation Strategies

To mitigate this vulnerability, upgrade PraisonAI to version 4.5.128 or later, where the issue has been fixed.

Avoid using unvalidated values containing commas in the openai_model, openai_key, and openai_base environment variables when deploying with gcloud run.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-40113. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart