A leading product engineering company, creating adaptive software solutions to improve operations, providing businesses with expert development services from across domain.
A leading product engineering company, creating adaptive software solutions to improve operations, providing businesses with expert development services from across domain.
A HEIC image upload vulnerability in libheif gave researchers code execution on OpenAI's forum; SSO did the rest. How to secure user image uploads.

An iPhone photo format was the way in. Security researchers at Hacktron have described how a crafted HEIC file uploaded to OpenAI's community forum gave them code execution on the server, and how a single sign-on misconfiguration then turned that into control of OpenAI employees' ChatGPT and Codex accounts. It is the clearest recent example of a HEIC image upload vulnerability becoming a company-wide breach — and any application that accepts photos from users has the first half of that chain.
According to Hacktron's disclosure, the team began reviewing the image-upload pipeline of Discourse, the forum software behind community.openai.com, on 23 July 2026. Discourse normally checked images with a library called FastImage. FastImage did not support HEIF, so HEIC and HEIF files were handed to ImageMagick for conversion instead — exposing the libheif decoding library directly to files an attacker controlled.
The Discourse Docker image was built on Debian 12, which shipped libheif 1.19.7. An upstream change that fixed the relevant code the previous year had not been labelled as a security fix and received no CVE, so the fix had not been backported. The result was a heap buffer overflow during HEIC decoding. By the morning of 25 July, the researchers had remote code execution through an image upload.
The second link was identity. OpenAI's forum used "Sign in with OpenAI". Hacktron says an SSO misconfiguration meant that controlling the forum allowed takeover of the ChatGPT and Codex accounts of people who logged into it, without any interaction from them. The researchers took over an OpenAI employee's account whose Codex was connected to OpenAI's GitHub organisation and asked Codex to open a harmless pull request in OpenAI's internal monorepo as proof. Then they stopped.
OpenAI added a clarification to the post: testing against the Discourse-hosted forum was explicitly excluded from its bug bounty programme, and the award recognises the OpenAI-side SSO finding, not the actions against Discourse. Hacktron, for its part, stresses that the escalation was not Discourse-specific: any compromised service using OpenAI's SSO would have led to the same access.
Discourse published advisory GHSA-vhm9-85gw-x335 with patch and rebuild guidance.
libheif is the open-source library that decodes HEIF images, the container format behind iPhone HEIC photos and, with a different codec, AVIF. Hacktron has since expanded the work into a project it calls HEIF Heist, tracing libheif through Slack, Meta, GitHub Enterprise, Ruby on Rails and Node.js frameworks including Next.js, Astro and Gatsby. The researchers say the issue is not tied to one version but spans several release families, and that any deployment without the latest upstream security patches is potentially vulnerable. As of 14 September 2026 they list v1.23.4 as the latest upstream security release.
Their summary is blunt: if your application processes user-controlled images and accepts .heic, .heif or .avif files, it is highly likely to be affected.
The format is not the problem; parsing untrusted files with complex native code is. Image decoders are large C and C++ codebases that interpret intricate binary formats, and they run on whatever users upload. HEIF is newer and less battle-tested than JPEG or PNG, and, as this case shows, fixes can reach distributions slowly. Hacktron reports that only one company it tested noticed the activity, even after thousands of images were sent and image processors repeatedly crashed.
The researchers also note that AI models did much of the exploit development, and that the whole multi-company campaign cost under $3,000 in tokens. Whatever you make of that, the economics of turning a memory bug into a working exploit have changed.
For teams running web or mobile back ends that accept photos, the practical checklist is short:
It can if the identity design lets it. The second half of this chain is arguably the more important lesson. A community forum is a low-value system that sits next to high-value ones through SSO. Any application that relies on a shared identity provider should ensure that compromising one relying application cannot mint or replay sessions for another, and that sessions for internal staff on public-facing tools are isolated from their internal access. We saw a similar pattern of low-value surfaces reaching high-value secrets in GitHub Actions prompt injection and the Forgejo template repository RCE.
If your product accepts user uploads, our web app development team can review the upload pipeline, and our QA and automation practice can add malformed-file testing to CI so the next decoder bug is caught before an attacker finds it.
HEIC image uploads are dangerous when servers decode them with unpatched native libraries such as libheif. In July 2026 researchers used a crafted HEIC file to gain code execution on a Discourse forum, because the decoder had a heap overflow that distributions had not patched.
The libheif vulnerability exploited by Hacktron was a heap buffer overflow in HEIC decoding, present in libheif 1.19.7 shipped with Debian 12. The upstream fix was not marked as a security fix, so it was not backported. Hacktron lists v1.23.4 as the latest security release.
Safely processing user uploaded images means accepting only needed formats, restricting ImageMagick with a security policy, decoding in an isolated, unprivileged sandbox without network access or credentials, rebuilding container images to pick up library fixes, and alerting on repeated decoder crashes.
A compromised forum can compromise single sign-on accounts if the identity design lets one relying application obtain sessions for others. Hacktron showed that code execution on OpenAI's Discourse forum, combined with an SSO misconfiguration, allowed takeover of employee ChatGPT and Codex accounts.
Self-hosted Discourse sites need to rebuild their installation, because older Docker images may contain the vulnerable libheif. Discourse's advisory GHSA-vhm9-85gw-x335 and Hacktron advise running git pull and ./launcher rebuild app, since a web-interface update alone may not replace the library.
Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.
11th Floor, O-Hub, Chandaka Industrial Estate, Infocity, Bhubaneswar, Odisha 751024
Level 4, 11 York Street Sydney Startup Hub Sydney, NSW – 2000
30 N. Đinh Nghệ, Phước Mỹ Sơn Trà, Đà Nẵng / Da Nang City – 550000
Level 25, AIDP Business Tower, Dubai Marina, United Arab Emirates
50 Beauchamp Street, Wellington, WGN 5028, New Zealand