Vibeleaderboard
← All Intel
Intel / article

HEIF Heist: libheif flaws reach OpenAI, Slack, Meta and Next.js

Source
heif-heist.com
Author
Hacktron AI
Date
From the Daily Brief

Hacktron's security team published HEIF Heist, the fuller account of the libheif research that first surfaced two days ago in an OpenAI account takeover chain. The new disclosure shows the same class of memory corruption, information disclosure, and RCE bugs reaching well beyond OpenAI: Slack, Meta, GitHub Enterprise, Rails, Next.js, and ImageMagick all pull in libheif indirectly, through common intermediaries like libvips, Sharp, Linux distro packages, and container base images, not as a direct dependency. That indirection is the real risk: a team can carry the bug without libheif ever appearing in its own manifest. Hacktron says it will publish per-platform technical write-ups over the coming weeks rather than all at once, so the scope of confirmed impact will likely keep growing. The research is credited to three named Hacktron researchers.

Read the 2026-09-20 Brief →

Context

HEIF Heist is Hacktron AI's name for a class of attacks on services that decode images people upload in the HEIF, HEIC or AVIF formats. The flaws sit in libheif and libde265, image decoders written in C and C++ that most applications never call directly. They arrive bundled inside image tools such as ImageMagick, libvips and Sharp, in standard distribution packages, and in prebuilt container images. Because the bug lives below the application, Hacktron's research site says it does not depend on programming language or framework: any backend that processes untrusted image uploads through these decoders is potentially exposed.

Hacktron announced the research as uncovering attack paths affecting OpenAI, Slack, Meta, GitHub Enterprise, Rails, Next.js, ImageMagick and others. Its site frames the list as what the bug could have allowed: dumping OpenAI private repositories, remote code execution on Slack and in Meta's core product suite through image upload, unauthenticated remote code execution in Next.js through its AVIF image optimization, and authenticated remote code execution on GitHub Enterprise, tracked as CVE-2026-19118. Remote code execution means an attacker can run their own commands on the server. The investigation grew out of a libheif flaw Hacktron found and reported in Discourse. An earlier item covers how Hacktron chained a HEIF image bug into an OpenAI account takeover, and Vercel's account describes reproducing, disclosing and fixing the libheif vulnerability with Hacktron and the maintainers. The site does not give per-platform technical details.

The attacks are targeted rather than automatic. An attacker first uploads crafted .avif or .heic files to work out which libheif version family a service runs, then sends a payload matched to that version, using either a known but unpatched flaw or a previously unknown one. Hacktron says these are not out-of-the-box exploits and some of its remote code execution attempts landed only after thousands of image uploads, but it also says an agentic approach with GPT-5.6 Sol cut exploit development to roughly one to three days from first probe. Even when code execution fails, the bugs may let an attacker read heap memory, such as other users' data and environment variables, which is the heist in the name.

Hacktron recommends upgrading to libheif 1.23.2 or later and the latest libde265, and, because it expects more memory-safety flaws in these decoders, disabling untrusted HEIF and AVIF decoding where it is not needed or running image processing inside hardened, short-lived sandboxes. It separately tells self-hosters of Discourse and Next.js to move to the latest release. A team that accepts image uploads should check which libheif its image stack pulls in, since the vulnerable code can sit several layers below anything it installed on purpose.

Terms in this piece · Glossary
  • sandbox — An isolated environment where AI-generated code or agent actions run without being able to touch anything real.
Read the source heif-heist.com
More from Hacktron AI
Recommended reads
Comments

Checking sign-in…

Loading comments…