CVE-2026-56078 — praisonaiagents
MEDIUMCVE-2026-56078 is a medium-severity (CVSS 6.5) Path Traversal vulnerability in praisonaiagents. A fix is available for praisonaiagents — see the affected versions and patch details below.
PraisonAI has Memory State Leakage and Path Traversal in MultiAgent Context Handling
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-56078.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
CVE-2026-56078 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 378,567 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
praisonaiagentsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
The MultiAgentLedger and MultiAgentMonitor components in the provided code exhibit vulnerabilities that can lead to context leakage and arbitrary file operations. Specifically:
- Memory State Leakage via Agent ID Collision: The
MultiAgentLedgeruses a dictionary to store ledgers by agent ID without enforcing uniqueness. This allows agents with the same ID to share ledger instances, leading to potential leakage of sensitive context data. - Path Traversal in MultiAgentMonitor: The
MultiAgentMonitorconstructs file paths by concatenating thebase_pathand agent ID without sanitization. This allows an attacker to escape the intended directory using path traversal sequences (e.g.,../), potentially leading to arbitrary file read/write.
Details
Vulnerability 1: Memory State Leakage
- File:
examples/context/12_multi_agent_context.py:68 - Description: The
MultiAgentLedgerclass uses a dictionary (self.ledgers) to store ledger instances keyed by agent ID. Theget_agent_ledgermethod creates a new ledger only if the agent ID is not present. If two agents are registered with the same ID, they will share the same ledger instance. This violates the isolation policy and can lead to leakage of sensitive context data (system prompts, conversation history) between agents. - Exploitability: An attacker can register an agent with the same ID as a victim agent to gain access to their ledger. This is particularly dangerous in multi-tenant systems where agents may handle sensitive user data.
Vulnerability 2: Path Traversal
- File:
examples/context/12_multi_agent_context.py:106 - Description: The
MultiAgentMonitorclass constructs file paths for agent monitors by directly concatenating thebase_pathand agent ID. Since the agent ID is not sanitized, an attacker can provide an ID containing path traversal sequences (e.g.,../../malicious). This can result in files being created or read outside the intended directory (base_path). - Exploitability: An attacker can create an agent with a malicious ID (e.g.,
../../etc/passwd) to write or read arbitrary files on the system, potentially leading to information disclosure or file corruption.
PoC
Memory State Leakage
multi_ledger = MultiAgentLedger()
# Victim agent (user1) registers and tracks sensitive data
victim_ledger = multi_ledger.get_agent_ledger('user1_agent')
victim_ledger.track_system_prompt("Sensitive system prompt")
victim_ledger.track_history([{"role": "user", "content": "Secret data"}])
# Attacker registers with the same ID
attacker_ledger = multi_ledger.get_agent_ledger('user1_agent')
# Attacker now has access to victim's ledger
print(attacker_ledger.get_ledger().system_prompt) # Outputs: "Sensitive system prompt"
print(attacker_ledger.get_ledger().history) # Outputs: [{'role': 'user', 'content': 'Secret data'}]
Path Traversal
with tempfile.TemporaryDirectory() as tmpdir:
multi_monitor = MultiAgentMonitor(base_path=tmpdir)
# Create agent with malicious ID
malicious_id = '../../malicious'
monitor = multi_monitor.get_agent_monitor(malicious_id)
# The monitor file is created outside the intended base_path
# Example: if tmpdir is '/tmp/safe_dir', the actual path might be '/tmp/malicious'
print(monitor.path) # Outputs: '/tmp/malicious' (or equivalent)
Impact
- Memory State Leakage: This vulnerability can lead to unauthorized access to sensitive agent context, including system prompts and conversation history. In a multi-tenant system, this could result in cross-user data leakage.
- Path Traversal: An attacker can read or write arbitrary files on the system, potentially leading to information disclosure, denial of service (by overwriting critical files), or remote code execution (if executable files are overwritten).
Recommended Fix
For Memory State Leakage
- Enforce unique agent IDs at the application level. If the application expects unique IDs, add a check during agent registration to prevent duplicates.
- Alternatively, modify the
MultiAgentLedgerto throw an exception if an existing agent ID is reused (unless explicitly allowed).
For Path Traversal
- Sanitize agent IDs before using them in file paths. Replace any non-alphanumeric characters (except safe ones like underscores) or remove path traversal sequences.
- Use
os.path.joinandos.path.realpathto resolve paths, then check that the resolved path starts with the intended base directory.
Example fix for MultiAgentMonitor:
import os
def get_agent_monitor(self, agent_id: str):
# Sanitize agent_id to remove path traversal
safe_id = os.path.basename(agent_id.replace('../', '').replace('..\\', ''))
# Alternatively, use a strict allow-list of characters
# Construct path and ensure it's within base_path
agent_path = os.path.join(self.base_path, safe_id)
real_path = os.path.realpath(agent_path)
real_base = os.path.realpath(self.base_path)
if not real_path.startswith(real_base):
raise ValueError(f"Invalid agent ID: {agent_id}")
...
Additionally, consider using a dedicated function for sanitizing filenames.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | praisonaiagents | all versions | 1.5.115pip install --upgrade 'praisonaiagents==1.5.115' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for praisonaiagents, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update praisonaiagents to 1.5.115 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-56078 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2026-56078 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2026-56078. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is CVE-2026-56078 in your dependencies?
O3 Security finds CVE-2026-56078 across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.