Categories
CVE-2026-40117

Vulnerability in praisonaiagents (CVE-2026-40117)

Summary

Vulnerability in praisonaiagents (CVE-2026-40117). Confidential information can be exposed externally. Exploitable via skill_tools.py. Mitigation: upgrade to 1.5.128 or later.

Original description

The description as published by the source.

Summary

read_skill_file() in skill_tools.py allows reading arbitrary files from the filesystem by accepting an unrestricted skill_path parameter. Unlike file_tools.read_file which enforces workspace boundary confinement, and unlike run_skill_script which requires critical-level approval, read_skill_file has neither protection. An agent influenced by prompt injection can exfiltrate sensitive files without triggering any approval prompt.

Details

The vulnerability is a missing authorization check in read_skill_file() at src/praisonai-agents/praisonaiagents/tools/skill_tools.py:128.

The function's path validation on line 163 only ensures file_path doesn't escape skill_path via directory traversal:

# skill_tools.py:128-170
def read_skill_file(self, skill_path: str, file_path: str, encoding: str = 'utf-8') -> str:
    # ...
    skill_path = os.path.expanduser(skill_path)      # line 147
    if not os.path.isabs(skill_path):
        skill_path = os.path.join(self._working_directory, skill_path)
    skill_path = os.path.abspath(skill_path)          # line 150

    # ... existence checks ...

    full_path = os.path.join(skill_path, file_path)   # line 159
    full_path = os.path.abspath(full_path)             # line 160

    # Security check: ensure file is within skill directory
    if not full_path.startswith(skill_path):           # line 163
        return f"Error: Path traversal detected..."

    with open(full_path, 'r', encoding=encoding…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-40117 has been found in praisonaiagents.
Attackers can target a specific entry point like skill_tools.py over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade praisonaiagents to 1.5.128 or later.
If unsure, ask your IT team or search "praisonaiagents CVE-2026-40117" on the vendor's site.

CVE-2026-40117 (praisonaiagents) — CWE-862
Attack vector: local / unauthenticated / no user interaction
Attack surface: skill_tools.py / skill_path / file_tools.read_file / run_skill_script
Patched: 1.5.128 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (CWE-862) exists in praisonaiagents. Attackers reach the vulnerable code path via skill_tools.py without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of praisonaiagents. Attack surface: skill_tools.py / skill_path / file_tools.read_file / run_skill_script.

🔥 Severity

Severity: ?. Confidential information can be exposed externally.

🔧 How to fix

Update to 1.5.128.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'praisonaiagents' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r 'praisonaiagents' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で praisonaiagents を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patch patch
    Upgrade praisonaiagents to 1.5.128

    ステージング環境で 1.5.128 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PyPI praisonaiagents
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.128"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details