π§ CVE-2025β54794: Hijacking Claude AI with a Prompt Injection β The Jailbreak That Talked Back
A prompt injection flaw in Claude AI allowed hidden instructions inside code blocks or uploaded documents to be treated as system-level commands. An attacker could override the model's safeguards, leak internal prompts or prior session data, and generate unrestricted content.
Published on infosecwriteups.com
In an era where language models have become the co-pilots of our code, content, and cognition β vulnerabilities arenβt just about ports and payloads anymore. Theyβre about words.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the model did not separate untrusted user content (such as code comments or uploaded documents) from trusted system instructions, so spoofed system-level markers were obeyed.
Impact
An attacker could force Claude to act as a system-level entity, leak internal prompts or prior session data, and generate unsafe or unrestricted content; the text does not state that any defence blocked this.
What the attacker needed
Ability to submit text or upload a document to Claude; Claude processes the input into its context
The fix
Input validation and markdown sanitisation should strip fake instruction markers, and each input should be isolated in its own sandboxed prompt scope.
How it was found
- Provide input through a chatbox, input field, or file upload such as a PDF or DOCX containing markdown.
- Embed a markdown code block that contains fake system instructions in comments.
- Claude interprets the malicious content as top-level context and switches behaviour.
- If memory or multi-turn persistence exists, the jailbreak can survive across prompts.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A prompt injection is when someone hides instructions inside normal-looking text or code that an AI reads. Here, Claude was tricked into following those hidden commands as if they came from its own system, so it could ignore its safety rules and reveal things it should not.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.