Mittel

OpenClaw Vulnerable to Local File Inclusion via MEDIA: Path Extraction

  • Veröffentlicht: 04.02.2026
  • Aktualisiert: 11.10.2026 10:22

Summary

The isValidMedia() function in src/media/parse.ts allows arbitrary file paths including absolute paths, home directory paths, and directory traversal sequences. An agent can read any file on the system by outputting MEDIA:/path/to/file, exfiltrating sensitive data to the user/channel.

Details

Location: src/media/parse.ts:17-27

The path validation accepts dangerous patterns:

ts
function isValidMedia(candidate: string, opts?: { allowSpaces?: boolean }) {
  if (candidate.startsWith("/")) return true;      // ALLOWS /etc/passwd
  if (candidate.startsWith("./")) return true;
  if (candidate.startsWith("../")) return true;    // ALLOWS ../../etc/passwd
  if (candidate.startsWith("~")) return true;      // ALLOWS ~/secrets
  return false;
}

No validation ensures the path is within a safe directory or is actually a media file.

PoC

Agent outputs any of:

MEDIA:/etc/passwd
MEDIA:~/.ssh/id_rsa
MEDIA:~/.aws/credentials
MEDIA:../../../etc/passwd

The file contents are rendered/sent to the requesting user or channel.

Impact

  • Read ANY file accessible to the agent user
  • Exfiltrate SSH keys (~/.ssh/id_rsa)
  • Steal cloud credentials (~/.aws/credentials)
  • Access API keys (.env, config.json)
  • Read system files (/etc/passwd, /etc/shadow)

Note: PR #4930 contains a fix but is NOT MERGED - production is vulnerable.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket openclaw < 2026.1.30 2026.1.30

Verweise

CVSS-Wert 6.5/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Schwäche (CWE)
CWE-200, CWE-22
Plattform
npm
Paket
openclaw
Veröffentlicht
04.02.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-r8g4-86fx-92mq - CC BY 4.0

Schwachstellenhistorie: openclaw

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (588) im Archiv
Einträge insgesamt
588
Erste → letzte
02.2026 07.2026
Ohne Fix
9
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 20
  • Hoch 215
  • Mittel 299
  • Niedrig 54

Veröffentlichungen pro Jahr

  1. 2026: 588
Schweregrad:
  1. OpenClaw Vulnerable to Local File Inclusion via MEDIA: Path Extraction dieser Eintrag
    Mittel · 6.5 CVE-2026-25475 < 2026.1.30 2026.1.30
  2. Hoch · 8.8 CVE-2026-53811 < 2026.5.7 2026.5.7
  3. Hoch · 8.8 CVE-2026-53806 < 2026.5.12 2026.5.12
  4. Hoch · 7.8 CVE-2026-53813 < 2026.4.25 2026.4.25
  5. Hoch · 7.5 CVE-2026-53834 < 2026.4.27 2026.4.27
  6. Kritisch CVE-2026-34507 < 2026.4.29 2026.4.29
  7. Hoch CVE-2026-53823 < 2026.5.3 2026.5.3
  8. Hoch · 8.4 CVE-2026-53814 < 2026.5.20 2026.5.20
Mehr anzeigen (20) 21 von 236 angezeigt

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.