Skip to content
Agent Threat Rules (ATR)中文
ΖPrivilege Escalation
ATR-2026-00546
Recorded 2026-05-28 · Author ATR Community

CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285)

Detects CVE-2026-2285 (CVSS HIGH, CWE-22): CrewAI's JSON document loader accepts a file path without sanitisation, allowing an agent or tool input to traverse outside the intended data directory and read arbitrary local files (e.g., /etc/passwd, ~/.ssh/id_rsa, .env secrets) by supplying a path-traversal sequence in the loader argument.

path traversal file read · pattern · confidence: high

Severity
high
Lanes
alert · huntmarks and reports a match
Maturity
testnot yet settled
Scan target
both
Status
experimental

Framework mappings

OWASP Agentic Top 10
  • ASI02:2026
  • ASI03:2026
OWASP LLM Top 10
  • LLM06:2025
  • LLM05:2025
  • LLM02:2025

ATR wrote these mappings. The framework owners have not reviewed or endorsed them.

Description

Detects CVE-2026-2285 (CVSS HIGH, CWE-22): CrewAI's JSON document loader accepts a file path without sanitisation, allowing an agent or tool input to traverse outside the intended data directory and read arbitrary local files (e.g., /etc/passwd, ~/.ssh/id_rsa, .env secrets) by supplying a path-traversal sequence in the loader argument. The vulnerability is part of the CERT/CC VU#221883 advisory cluster (four CrewAI CVEs, 2026-03-30). The JSON loader is invoked when CrewAI processes RAG documents; a crafted document path causes the loader to return the contents of an attacker-specified file, which the agent then includes in its context and may exfiltrate via subsequent tool calls. Detection covers: (a) Path-traversal sequences in JSON loader file path arguments; (b) Absolute paths to sensitive files (e.g., /etc/passwd, .env, .ssh); (c) CrewAI document loader with directory traversal or sensitive-file targets; (d) Explicit CVE-2026-2285 / CrewAI JSON loader file-read framing.

Suggested responsealertblock tool
Author: ATR Community · Created 2026-05-28 · Last modified 2026-11-24

Detection conditions

Combinator: any
  1. 01
    JSON/document loader invocation with either a path-traversal sequence (2+ levels up) or a known sensitive-file target — CVE-2026-2285 local file read via CrewAI document loader
    field: contentop: regex
  2. 02
    CrewAI combined with a document/JSON loader and a sensitive path or traversal sequence — attack framing specific to CVE-2026-2285
    field: contentop: regex
  3. 03
    Explicit CVE-2026-2285 reference or CrewAI file-read framing combined with exploitation language or sensitive file targets
    field: contentop: regex

Attacks it catches

  1. JSONLoader('../../../../etc/passwd')
  2. document_loader path: ../../../.env
  3. crewai json_loader ../../.ssh/id_rsa exfil CVE-2026-2285
  4. JSONLoader('/root/.aws/credentials')
  5. CVE-2026-2285: CrewAI JSON loader reads /etc/passwd via unsanitised path

Attack examples the rule must catch, many based on reported attacks and some written to match their shape. They are versioned with the rule as regression tests. If a later revision stops catching one, it shows.

Benign inputs it leaves alone

  1. Legitimate JSON loader with a safe absolute data path
    JSONLoader('/data/documents/report.json')
  2. Normal CrewAI document directory reference — no traversal
    crewai loads documents from the /tmp/uploads/ directory
  3. Mitigation advisory without exploit content
    Upgrade CrewAI to fix CVE-2026-2285

Known false positives

  • ▸Legitimate document loaders referencing known-good data directories — pattern requires traversal or sensitive-file targets.
  • ▸Security advisory text quoting CVE-2026-2285 file paths.
  • ▸References to /etc/ in system administration documentation without traversal context.
title: "CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285)"
id: ATR-2026-00546
rule_version: 1
status: experimental
description: >
  Detects CVE-2026-2285 (CVSS HIGH, CWE-22): CrewAI's JSON document loader
  accepts a file path without sanitisation, allowing an agent or tool input
  to traverse outside the intended data directory and read arbitrary local
  files (e.g., /etc/passwd, ~/.ssh/id_rsa, .env secrets) by supplying a
  path-traversal sequence in the loader argument.

  The vulnerability is part of the CERT/CC VU#221883 advisory cluster
  (four CrewAI CVEs, 2026-03-30). The JSON loader is invoked when CrewAI
  processes RAG documents; a crafted document path causes the loader to
  return the contents of an attacker-specified file, which the agent then
  includes in its context and may exfiltrate via subsequent tool calls.

  Detection covers:
  (a) Path-traversal sequences in JSON loader file path arguments;
  (b) Absolute paths to sensitive files (e.g., /etc/passwd, .env, .ssh);
  (c) CrewAI document loader with directory traversal or sensitive-file targets;
  (d) Explicit CVE-2026-2285 / CrewAI JSON loader file-read framing.
author: "ATR Community"
date: "2026/05/28"
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: high

references:
  owasp_llm:
    - "LLM06:2025"
    - "LLM05:2025"
    - "LLM02:2025"
  owasp_agentic:
    - "ASI02:2026"
    - "ASI03:2026"
  mitre_atlas:
    - "AML.T0037 - Data from Local System"
  mitre_attack:
Show all (135 more lines)
    - "T1083 - File and Directory Discovery"
    - "T1552 - Unsecured Credentials"
  cve:
    - "CVE-2026-2285"

metadata_provenance:
  mitre_atlas: human-reviewed
  owasp_llm: human-reviewed
  owasp_agentic: human-reviewed

compliance:
  eu_ai_act:
    - article: "15"
      context: >
        CVE-2026-2285 allows arbitrary local file read via the CrewAI JSON
        loader without path sanitisation; Article 15 cybersecurity requirements
        mandate that AI agent document loaders canonicalise paths and restrict
        access to the intended data directory.
      strength: primary
    - article: "14"
      context: "Article 14 (human oversight) requires high-risk AI systems to remain subject to effective human oversight; this rule provides detection evidence where the privilege-escalation attempt (CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285)) would bypass or undermine that oversight."
      strength: secondary
  nist_ai_rmf:
    - subcategory: "MP.5.1"
      context: >
        Path traversal in a document loader argument enabling sensitive file
        read constitutes an adversarial input; MP.5.1 requires scanning
        document loader path arguments for traversal sequences.
      strength: primary
    - subcategory: "MS.2.7"
      context: "NIST AI RMF MEASURE 2.7 (security and resilience evaluated and documented) is supported by this rule's runtime detection of the privilege-escalation attempt (CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285))."
      strength: primary
    - subcategory: "MG.2.3"
      context: "NIST AI RMF MANAGE 2.3 (respond to previously unknown identified risks) is supported by this rule, which surfaces the privilege-escalation attempt (CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285)) so the risk can be treated."
      strength: secondary
  iso_42001:
    - clause: "8.1"
      context: >
        Operational controls must detect and block document loader invocations
        with path traversal sequences targeting sensitive files outside the
        intended data scope.
      strength: primary
    - clause: "6.2"
      context: "ISO/IEC 42001 Clause 6.2 (AI objectives and planning) calls for risk treatment of known attack patterns; this rule's detection of the privilege-escalation attempt (CrewAI JSON Loader Arbitrary Local File Read (CVE-2026-2285)) is such a treatment."
      strength: secondary

tags:
  category: privilege-escalation
  subcategory: path-traversal-file-read
  scan_target: both
  confidence: high
  source: cve-disclosure
  vendor_sources: crewai-vu221883

agent_source:
  type: llm_io
  framework:
    - crewai
    - any
  provider:
    - any

detection:
  condition: any
  false_positives:
    - "Legitimate document loaders referencing known-good data directories — pattern requires traversal or sensitive-file targets."
    - "Security advisory text quoting CVE-2026-2285 file paths."
    - "References to /etc/ in system administration documentation without traversal context."
  conditions:
    - field: content
      operator: regex
      value: '(?i)(?:json[_-]?loader|load[_-]?json|JSONLoader|document[_-]?loader)[^\n]{0,200}(?:(?:\.\.\/|\.\.\\){2,}|(?:\/etc\/(?:passwd|shadow|hosts)|\/root\/|\/home\/[^/]+\/\.ssh|\.env|\.aws\/credentials|\.npmrc|id_rsa))'
      description: >
        JSON/document loader invocation with either a path-traversal sequence
        (2+ levels up) or a known sensitive-file target — CVE-2026-2285
        local file read via CrewAI document loader

    - field: content
      operator: regex
      value: '(?i)(?:crewai|crew_ai|CrewAI)[^\n]{0,200}(?:json[_-]?loader|load[_-]?json|document[_-]?loader)[^\n]{0,200}(?:\.\.\/|\/etc\/|\.env|\.ssh|id_rsa|credentials)'
      description: >
        CrewAI combined with a document/JSON loader and a sensitive path
        or traversal sequence — attack framing specific to CVE-2026-2285

    - field: content
      operator: regex
      value: '(?i)(?:CVE-2026-2285|crewai[^\n]{0,80}(?:file[_\s-]?read|local[_\s-]?file|json[_\s-]?loader))[^\n]{0,200}(?:inject|read|exfil|bypass|traverse|sensitive|passwd|\.env|\.ssh)'
      description: >
        Explicit CVE-2026-2285 reference or CrewAI file-read framing combined
        with exploitation language or sensitive file targets

response:
  actions:
    - alert
    - block_tool
  message_template: >
    [ATR-2026-00546] HIGH: CrewAI JSON loader with path traversal or
    sensitive-file target detected (CVE-2026-2285, CWE-22). The CrewAI JSON
    loader does not sanitise document paths, allowing traversal to read
    arbitrary local files (/etc/passwd, .env, SSH keys). Block this loader
    call; canonicalise document paths and restrict loader access to the
    intended data directory. Part of VU#221883 advisory cluster — upgrade
    CrewAI to the patched version.

confidence: 80


test_cases:
  true_positives:
    - input: "JSONLoader('../../../../etc/passwd')"
      expected: triggered
      description: "JSON loader with path traversal to /etc/passwd"
    - input: "document_loader path: ../../../.env"
      expected: triggered
      description: "Document loader with traversal to .env secrets file"
    - input: "crewai json_loader ../../.ssh/id_rsa exfil CVE-2026-2285"
      expected: triggered
      description: "CrewAI JSON loader + SSH key + CVE reference"
    - input: "JSONLoader('/root/.aws/credentials')"
      expected: triggered
      description: "JSON loader with absolute path to AWS credentials"
    - input: "CVE-2026-2285: CrewAI JSON loader reads /etc/passwd via unsanitised path"
      expected: triggered
      description: "CVE-2026-2285 exploitation framing with sensitive file target"

  true_negatives:
    - input: "JSONLoader('/data/documents/report.json')"
      expected: not_triggered
      description: "Legitimate JSON loader with a safe absolute data path"
    - input: "crewai loads documents from the /tmp/uploads/ directory"
      expected: not_triggered
      description: "Normal CrewAI document directory reference — no traversal"
    - input: "Upgrade CrewAI to fix CVE-2026-2285"
      expected: not_triggered
      description: "Mitigation advisory without exploit content"

Revision history

Created
2026-05-28
Last modified
2026-11-24
Full commit history on GitHub