CVE-2026-57129

HIGHPre-NVD 7.57.5
EchelonGraph scoreLOW confidence

This high-severity CVE scores 7.5 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m
7.5EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: CVSS: 7.5Exploit: None knownExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

PraisonAI: Arbitrary File Read via @file: Mention Path Traversal

Summary

The MentionsParser in src/praisonai-agents/praisonaiagents/tools/mentions.py processes @file: mentions in agent prompts by reading arbitrary files from the filesystem. When a file path is not found relative to the workspace, the parser falls back to using the path as an absolute path without any validation or boundary check. This allows an attacker who can influence agent prompts (via chat messages, Telegram/Discord/Slack bot inputs, or YAML workflow configs) to read any file on the filesystem accessible to the process user.

Details

Vulnerable code (lines 165–178):
def _process_file_mention(self, file_path: str) -> Optional[str]:
    """Process @file:path mention."""
    try:
        # Resolve path relative to workspace
        full_path = self.workspace_path / file_path
        if not full_path.exists():
            # Try as absolute path
            full_path = Path(file_path)
        
        if not full_path.exists():
            self._log(f"File not found: {file_path}", logging.WARNING)
            return f"# File: {file_path}\n[File not found]"
        
        content = full_path.read_text(encoding="utf-8")

The vulnerability is in the fallback at line 171–172: When the file is not found relative to workspace_path, the code constructs full_path = Path(file_path), which accepts any absolute or relative path without validation. There is no:

  • .. path traversal check
  • Workspace boundary validation
  • Symlink resolution against workspace
  • Protected path guard

The file_path parameter originates from parsing @file: mentions in user/LLM prompts. The MentionsParser is used across the framework to process mentions in agent instructions and user messages.

Contrast with skill_tools.py read_skill_file (lines 140–193), which properly validates:

# skill_tools.py line 179 — proper validation
if os.path.commonpath([full_path, skill_path]) != skill_path:
    return f"Error: Path traversal detected - {file_path} is outside skill directory"

PoC

Setup: Clean checkout at commit d5f1114a.

Positive trigger — arbitrary file read via @file: mention:

import sys
sys.path.insert(0, 'src/praisonai-agents')
from praisonaiagents.tools.mentions import MentionsParser

parser = MentionsParser()

Test 1: Absolute path read (bypasses workspace resolution)

result = parser._process_file_mention('/etc/hostname') print(f'Absolute path read: {result[:80]}...')

Test 2: Relative path with traversal

result = parser._process_file_mention('../../../etc/hostname') print(f'Traversal read: {result[:80]}...')

Expected output:

Absolute path read: # File: /etc/hostname
linux

``... Traversal read: # File: ../../../etc/hostname

...
Negative control — non-existent file:
python result = parser._process_file_mention('/nonexistent/secret.txt')

Returns: "# File: /nonexistent/secret.txt\n[File not found]"

Cleanup: No persistence or side effects — read-only operation.

Impact

An attacker who can inject @file: mentions into agent prompts (via chat messages in Telegram/Discord/Slack bots, user input in web UI, or YAML workflow configurations) can read any file accessible to the process user, including:

  • Secrets and credentials: .env files, ~/.aws/credentials, ~/.ssh/id_rsa, API keys
  • Configuration files: Database passwords, JWT secrets, OAuth tokens
  • Source code: Application internals, database schemas
  • System files: /etc/passwd, /etc/shadow (if process has read access)

This is particularly dangerous in bot deployments where auto_approve_tools defaults to True and untrusted users can send messages containing @file: mentions.

Suggested remediation

  • Remove the absolute path fallback. Only resolve files within workspace_path:
python def _process_file_mention(self, file_path: str) -> Optional[str]: full_path = (self.workspace_path / file_path).resolve() # Ensure resolved path is within workspace if not str(full_path).startswith(str(self.workspace_path.resolve())): return f"# File: {file_path}\n[Access denied: path outside workspace]" if not full_path.exists(): return f"# File: {file_path}\n[File not found]" content = full_path.read_text(encoding="utf-8")
`
  • Add symlink resolution via .resolve() to prevent symlink-based traversal.
  • Add a protected path guard (.env, .git, .ssh, keys, credentials).
  • Apply the same os.path.commonpath pattern used by skill_tools.py`.

Credits

  • Thai Son Dinh from VinSOC Labs (R&D)

CVSS v3
7.5
EG Score
7.5(low)
EG Risk
38(Track)
EG Risk 38/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity75% × 45%
Exploitation0% × 40%
Automatability30% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
EPSS %ILE
KEV
Not listed

Published

June 18, 2026

Last Modified

June 18, 2026

Vendor Advisories for CVE-2026-57129(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
PyPI(1)
PackageVulnerable rangeFixed inDependents
praisonaiagents0.0.1 ... 1.6.9 (586 versions)1.6.59

Data Freshness Timeline

(refreshed 3× in last 7d / 3× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-26 18:46 UTCEG score recompute
  2. 2026-07-23 03:20 UTCEG score recompute
  3. 2026-07-20 21:34 UTCEG score recompute

Frequently asked(4)

What is CVE-2026-57129?
CVE-2026-57129 is a high vulnerability published on June 18, 2026. PraisonAI: Arbitrary File Read via @file: Mention Path Traversal Summary The MentionsParser in src/praisonai-agents/praisonaiagents/tools/mentions.py processes @file: mentions in agent prompts by reading arbitrary files from the filesystem. When a file path is not found relative to the workspace,…
When was CVE-2026-57129 disclosed?
CVE-2026-57129 was first published in the National Vulnerability Database on June 18, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
What is the CVSS score of CVE-2026-57129?
CVE-2026-57129 has a CVSS v4.0 base score of 7.5 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-57129?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-57129, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-57129

Explore →

Is Your Infrastructure Affected by CVE-2026-57129?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.