← Übersicht Nicht im beobachteten Stack

Claude Code: Insecure Temporary File in /copy Command Enables Response Disclosure and Symlink-Based File Write

CVE-2026-46406 · GHSA-4vp2-6q8c-pvq2

Mittel · CVSS 6.8 Red Hat: Moderate Lokal · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
25.06.2026
Zuletzt geändert
09.07.2026
EPSS (30 Tage)
0.2 %
CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Claude Code is an agentic coding tool. From 2.1.59 until 2.1.128, the Claude Code /copy command wrote responses to a hardcoded, predictable path (/tmp/claude/response.md) without UID isolation, randomness, or symlink protection. The file was created world-readable (0644) in a world-traversable directory (0755), allowing any local user to read a privileged user's Claude response, which could contain secrets or credentials. Additionally, because the path was static and predictable, a local attacker could pre-create the directory and plant a symlink at the expected file path, causing the privileged process to follow the symlink and overwrite an attacker-chosen file with the response text. Exploiting this required a local unprivileged user on the same system and a privileged user to run the /copy command. This vulnerability is fixed in 2.1.128.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 1 betroffen, 1 nicht betroffen.

OpenShift Lightspeed BetroffenFix zurückgestellt openshift-lightspeed/lightspeed-agentic-sandbox-rhel9
Nicht betroffen (1)
Red Hat OpenShift Dev SpacesNicht betroffenverwundbarer Code nicht enthaltendevspaces/pluginregistry-rhel9
Weitere betroffene Pakete (3)
CVEanthropics/claude-codekein Fix bekanntCVE-2026-46406
NVDanthropic:claude_code2.1.58 → 2.1.128CVE-2026-46406
npm@anthropic-ai/claude-code2.1.59 → 2.1.128GHSA-4vp2-6q8c-pvq2

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Lokal · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.