{
  "id": "CVE-2026-40153",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40153",
  "published_at": "2026-04-09T21:27:45.545Z",
  "title": "PraisonAIAgents Affected by Environment Variable Secret Exfiltration via os.path.expandvars() Bypassing shell=False in Shell Tool",
  "vendor": "MervinPraison",
  "product": "PraisonAIAgents",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, the execute_command function in shell_tools.py calls os.path.expandvars() on every command argument at line 64, manually re-implementing shell-level environment variable expansion despite using shell=False (line 88) for security. This allows exfiltration of secrets stored in environment variables (database credentials, API keys, cloud access keys). The approval system displays the unexpanded $VAR references to human reviewers, creating a deceptive approval where the displayed command differs from what actually executes. This vulnerability is fixed in 1.5.128.",
  "cwe": "CWE-526",
  "cpes": [
    "cpe:2.3:a:praison:praisonaiagents:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.4,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "MervinPraison",
        "product": "PraisonAIAgents",
        "ranges": [
          "\u003c 1.5.128"
        ],
        "fixed_in": [
          "1.5.128"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PraisonAIAgents to 1.5.128 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v8g7-9q6v-p3x8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
