Hackers Exploit Pandoc CVE-2025-51591 to Target AWS IMDS and Steal EC2 IAM Credentials
Summary: Wiz uncovered in-the-wild exploitation of CVE-2025-51591, a CVSS 6.5 server-side request forgery flaw in the Pandoc document converter that lets attackers inject a crafted HTML iframe pointing at the AWS Instance Metadata Service at 169.254.169.254 to read paths such as /latest/meta-data/iam/info and harvest temporary IAM credentials. Wiz said the attempts ran from August for a few weeks and failed because IMDSv2 was enforced, and it also observed continued attempts to abuse a separate SSRF flaw in ClickHouse against a Google Cloud Platform target.
Why it matters: The credential theft needs no host access, no remote code execution and no path traversal - only an application that can reach the metadata endpoint, which is why Mandiant's UNC2903 was already pulling IAM credentials this way via an Adminer SSRF flaw from July 2021. The Pandoc maintainers treat iframe rendering as intended behavior and put sanitization on the user, so the control that stopped this attack was IMDSv2, not a patch.
Read the original at The Hacker News ↗
- Topics
- Cloud Security
- Mentions
- CVE-2021-21311CVE-2025-51591
- Related
- CVE-2021-21311: Adminer Server-Side Request Forgery Vulnerability Known Exploited Vulnerabilities · Sep 29, 2025Google Cloud Warns Three AMD Turin CPU Flaws Could Leak Data Across Processes in VMs Cyber Risks · Nov 12, 2026New Falcon Cloud Security Innovations Secure the Cloud AI Runs On Cyber Risks · Nov 04, 2026