THREAT BRIEF (HIGH): Hackers Exploit Pandoc CVE-2025–51591 to T
A server-side request forgery flaw in Pandoc could let an attacker make the tool send requests to internal addresses, including the AWS instance metadata service. That could expose temporary cloud credentials and internal services, though the attack was reportedly unsuccessful because IMDSv2 session tokens were enforced.
Published on medium.com
Pandoc is a free, open source command line tool found in Linux. The cloud security company Wiz found a security flaw in Pandoc as part of its attacks to infiltrate Amazon Web Services (AWS) Instance Metadata Service (IMDS).
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 Pandoc followed a URL supplied inside a document without restricting which destinations it could reach, allowing requests to internal addresses such as the cloud metadata endpoint.
Impact
An attacker could have obtained temporary AWS credentials and reached internal services, but the attempt was deemed unsuccessful because IMDSv2 session tokens were enforced.
What the attacker needed
Ability to supply a document to Pandoc; cloud workload using the metadata service; IMDSv2 not enforced
The fix
The text does not say the flaw was fixed; it recommends enforcing IMDSv2 session tokens, using allowlists instead of blocklists, validating user input, segmenting networks and blocking unnecessary outbound traffic.
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.
Pandoc is a program that converts documents between formats. A server-side request forgery bug means an attacker can make that program fetch a web address of their choosing, even one inside the company network that outsiders cannot normally reach. Here the target was a special cloud address that hands out temporary login credentials.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.