CVE-2026-40113
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
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| praison | praisonai | to 4.5.128 (exc) |
Helpful Resources
Exploitability
| 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 Powered Q&A
Can you explain this vulnerability to me?
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.
How can this vulnerability impact me? :
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.
What immediate steps should I take to mitigate this vulnerability?
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.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
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.