Your PDF reader might be able to run programs, and that is a security concern

Someone managed to run Doom inside a PDF file.As if that was not impressive enough, the same developer went a step further and managed to boot an entire Linux operating system inside a PDF, and the most surprising part? Both projects worked inside a Chromium-based browser’s built-in PDF viewer, without requiring any special plugins or modified software.Add How-To Geek on Google Add as Preferred Source Follow on Google Discover Those projects are fascinating examples of what you can accomplish with a little creativity and an unusually flexible document format, but they also raise an uncomfortable question: if a PDF can run a game or emulate an operating system, what else could it do? Most of us open PDF files without a second thought.

We download invoices, read manuals, and open email attachments, assuming that we are dealing with ordinary documents.However, PDF readers can interpret executable instructions, and vulnerabilities in how they handle those instructions can have serious consequences.Recent security disclosures show that this remains a legitimate concern.

PDFs were never designed to be completely static The format supports JavaScript and executable actions Close PDF was originally developed to preserve document formatting across different computers.However, the format has accumulated an impressive collection of features since its introduction in the early 1990s.For example, PDF supports interactive forms, embedded attachments, multimedia, and JavaScript.

That last feature is particularly interesting because it allows a document to perform calculations, respond to user interactions, and execute logic inside a compatible PDF reader.This is how DoomPDF and LinuxPDF work.Their developer compiled existing C programs into JavaScript using an older version of Emscripten.

The resulting code runs inside the PDF reader’s JavaScript environment, while interactive form elements provide a rudimentary display and input system.LinuxPDF even runs a RISC-V emulator, allowing a minimal Linux environment to boot inside the document.It is extremely slow, but it works.

There is another feature worth knowing about.The PDF specification defines a /Launch action that can request that a compatible reader open an external file or application.That is considerably more functionality than most people would expect from a document format.

The ability to execute code creates security problems PDF readers have been abused before Running Doom inside a PDF is an impressive technical achievement, but the underlying capability also illustrates why document processing software requires careful security controls.Back in 2010, security researcher Didier Stevens showed that specially crafted PDFs could use the Launch action to execute programs on Windows.His proof of concept launched Calculator, but the technique highlighted how legitimate functionality could be misused.

At the time, some readers displayed security warnings before launching external applications.However, Stevens showed that the warning text could be manipulated, potentially convincing users to approve something dangerous.Modern readers generally impose more restrictions, but executable functionality is only one part of the problem.

A PDF reader must interpret complex document structures, process fonts and images, handle embedded objects, and potentially execute JavaScript.Every additional feature introduces code that developers must implement correctly.An attacker who discovers a vulnerability in one of these components might be able to create a malicious PDF that crashes the reader, exposes information, or executes code outside its intended restrictions.

Importantly, running JavaScript inside a PDF does not automatically give that script unrestricted access to your computer.It becomes a security problem when a reader exposes dangerous functionality or contains vulnerabilities that allow malicious content to escape its restrictions, so there is that nuance to it, but it does not make the threat hypothetical.Recent vulnerabilities show that the problem is still relevant Some flaws can expose information or enable code execution You might assume that these concerns belong to an earlier era of PDF readers, when applications had fewer security restrictions.

However, vulnerabilities discovered in 2026 demonstrate otherwise.For example, CVE-2026-13126 affected Foxit PDF Reader and Editor versions 2026.1.1 and earlier, and Foxit PDF Editor versions 14.0.4 and earlier.It involved a use-after-free vulnerability associated with JavaScript and PDF annotations.

The flaw could crash the application and was rated as potentially allowing arbitrary code execution Another vulnerability, CVE-2026–91796, involved inadequate permission checks in Foxit’s JavaScript interface.A specially crafted PDF could trigger external SMB authentication without displaying the expected security prompt, potentially exposing authentication information.Researchers also identified CVE-2026–91788, which concerned missing authorization checks in the JavaScript interface.

Under specific conditions involving a trusted malicious document, the flaw could allow sensitive information from other documents in the same process to be accessed and transmitted externally.These are documented vulnerabilities affecting particular software versions, and fixes have been released.They should not be interpreted as evidence that every PDF reader is vulnerable.

However, they illustrate why this remains a security concern.PDF readers continue to expose complicated functionality, and implementation mistakes can lead to consequences ranging from crashes and information disclosure to arbitrary code execution.There is also the possibility of vulnerabilities being exploited before developers discover and patch them.

That is particularly concerning because opening a document is such an ordinary activity that users rarely consider it a security-sensitive operation.AI-generated applications could make this problem worse Security is easy to overlook when building a PDF viewer There is another aspect of this problem that I think deserves more attention, particularly with the growing popularity of vibe coding.It has become remarkably easy to build a small application using an AI coding assistant.

You can describe a document viewer, ask it to support PDF uploads, and have a working prototype relatively quickly.The problem is that displaying a PDF securely requires considerably more than making its pages appear correctly.A developer might integrate a PDF rendering library without fully understanding its security implications.

They might use an outdated dependency, expose unnecessary functionality, or process untrusted documents without adequate isolation.These are familiar software development mistakes, but AI-generated applications can make them easier to introduce when someone relies on generated code without reviewing its security assumptions.Related I stopped uploading private documents to AI, this free app handles them on my PC Ollama lets me summarize and analyze sensitive documents on my own PC without sending them to the cloud.

Posts 4 By  Rich Hein Consider a web application that lets users upload PDFs and preview them.If its developer uses a vulnerable rendering library or handles embedded content incorrectly, malicious documents could potentially affect the application or its users.The same concerns apply to AI-powered document summarizers and other tools that automatically process uploaded PDFs.

Of course, using AI to write code does not automatically make an application insecure.The concern is that someone with limited security experience can now build and deploy fairly complicated software without understanding all the components involved.PDF processing is exactly the kind of functionality where that lack of understanding can become dangerous.

You should pay attention to which PDF reader you use Fortunately, modern PDF readers have safeguards that make many of these attacks considerably more difficult.Browser-based viewers, including those in Chrome and Firefox, restrict the JavaScript APIs available to PDFs.Some dedicated applications also use sandboxing, permission checks, and other mechanisms to limit what documents can access.

Related Why Did Web Browsers Become PDF Readers? The quest to replace browser plug-ins had a few side effects.Posts 6 By  Corbin Davenport However, the recent vulnerabilities, combined with the growing number of applications that process PDFs, make PDF security worth taking seriously.You do not have to stop opening PDFs (I doubt that is even a realistic option for most of us), but it is worth remembering that a PDF viewer is still a piece of software processing potentially untrusted input.

Just because a PDF looks like an ordinary sheet of paper does not mean there is little going on behind the scenes.

Read More
Related Posts