(0Day) Soda PDF Desktop PDF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
A flaw in how Soda PDF Desktop parses PDF files means user-supplied data is not properly validated, allowing a write past the end of an allocated buffer. An attacker could exploit this to execute arbitrary code in the context of the current process, though the target must open a malicious file or visit a malicious page.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Soda PDF Desktop. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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.
Context
Soda PDF Desktop is a desktop application for working with PDF files. The advisory concerns the component that parses PDF files: when the application opens a PDF, that parser reads the structures inside the file and uses them to build the document in memory. The flaw described here sits in that parsing path, and it is an out-of-bounds write, classified as a remote code execution vulnerability with a CVSS score of 7.8 (high severity).
The case was handled by the Zero Day Initiative and credited to Mat Powell of TrendAI Zero Day Initiative. ZDI notified the vendor of its intention to publish the case as a 0-day advisory.
Setup
The advisory does not describe a test environment, tooling, build version or debugging setup. What it does state are the preconditions for exploitation:
- The target runs an affected installation of Soda PDF Desktop.
- User interaction is required: the target must either visit a malicious page or open a malicious file.
- The attacker supplies the PDF content that reaches the parser.
No account, role or privilege on the victim machine is mentioned as a requirement.
Finding it
The flaw is in the parsing of PDF files. The advisory attributes it to a lack of proper validation of user-supplied data, which results in a write past the end of an allocated buffer. In other words, a value taken from the PDF is used without sufficient bounds checking, and the write lands beyond the memory that was allocated for it.
The advisory gives no further detail on which PDF structure, field or code path is involved, and it does not include a crash trace, a proof-of-concept file or a sample payload.
Exploitation
The advisory describes the exploitation model at a high level rather than as a sequence of requests or commands. The steps it supports are:
- The attacker prepares a malicious PDF file or a malicious page.
- The target opens the malicious file or visits the malicious page.
- During parsing, the unvalidated data causes a write past the end of an allocated buffer.
- The attacker leverages the resulting memory corruption to execute code in the context of the current process.
There are no HTTP requests, payloads, commands or code listings in the advisory, so none are reproduced here. The outcome stated is code execution in the context of the current process, which means the privileges of the Soda PDF Desktop process on the victim's machine, not those of the attacker.
Root cause
The mistake is the absence of proper validation of user-supplied data during PDF parsing, which allows a write past the end of an allocated buffer. The advisory does not identify the specific function, the size calculation or the field that is mishandled, so the exact coding error is not public in this text.
Why the application's existing defences did not stop it is not discussed. Likely, the parser trusted a length or offset taken from the file and used it to index or copy without checking it against the real size of the destination buffer, but the advisory does not confirm this.
Impact
An attacker who can get a target to open a malicious file or visit a malicious page can execute arbitrary code on an affected installation of Soda PDF Desktop, in the context of the current process. The advisory rates this as high severity with a CVSS score of 7.8.
The conditions are explicit: affected installations only, and user interaction is required. The advisory does not state what data or privileges the process holds, so the practical reach of the code execution beyond that process is not described.
Fix
No fix is described. The vendor confirmed on 06/22/26 that the report was under review by its development team, and ZDI notified the vendor on 11/11/26 of the intention to publish the case as a 0-day advisory. The advisory was released on 2026-11-24 and updated the same day.
The only mitigation the advisory offers is to restrict interaction with the product, given the nature of the vulnerability.
Disclosure timeline
| Date | Event |
|---|---|
| 06/18/26 | ZDI reported the vulnerability to the vendor |
| 06/22/26 | The vendor confirmed the report was under review by its development team |
| 10/19/26 | ZDI asked for updates |
| 11/11/26 | ZDI notified the vendor of the intention to publish the case as a 0-day advisory |
| 2026-11-24 | Coordinated public release of advisory |
| 2026-11-24 | Advisory updated |
Variants to test
The advisory names no parameters or file structures, so the following are general directions for similar PDF parser work rather than confirmed targets in this product:
- Length and count fields in PDF objects: supply values larger than the data that follows and watch for a crash or a write past the end of a heap buffer.
- Offset and cross-reference data: point entries at positions outside the file or into other objects and check whether the parser validates them before use.
- Stream and object nesting: build deeply nested or unusually sized structures and observe whether allocation sizes and copy lengths stay consistent.
- A positive result is a reproducible crash under a debugger that shows a write beyond an allocation whose size was derived from the file, ideally with the overwritten data influencing a pointer or return address.
Hunting notes
This class of bug tends to hide in the file parsing layer of desktop document software, where values read from the file drive buffer sizes and copy lengths. During recon, the signals are a product that opens complex, attacker-supplied file formats locally, a history of parser memory-safety advisories, and parsing code that mixes file-derived lengths with fixed-size allocations.
The advisory does not describe how the researcher demonstrated impact to the program. What it does show is the disclosure path: a report to the vendor, a confirmation that the issue was under review, a follow-up request for updates, a notice of intent to publish as a 0-day, and coordinated public release of the advisory.
What happened, in plain words
Soda PDF Desktop is a program you install on your computer to open, read, edit and create PDF files. Like any program that opens files, it has to read the file first and work out what is inside it. The part of the program that does this reading is called a parser.
A security researcher found a mistake in that parser. If someone gives Soda PDF Desktop a specially crafted PDF file, the parser can be tricked into writing data past the end of a small area of memory it had set aside. That kind of mistake is called an out-of-bounds write. When a program writes outside its own memory, an attacker may be able to take control of it and run their own code. That is why this is called a remote code execution vulnerability.
The person who finds such a bug reports it to the company that makes the product. In this case the report went through the Zero Day Initiative (ZDI), an organisation that collects vulnerability reports and passes them to vendors. The bug was credited to Mat Powell of TrendAI Zero Day Initiative. ZDI notified the vendor of its intention to publish the case as a 0-day advisory. "0-day" simply means a bug that is public while no official fix exists yet.
The severity was rated high, with a CVSS score of 7.8. CVSS is a standard way of scoring how serious a vulnerability is, on a scale from 0 to 10.
Context
Soda PDF Desktop is a desktop application for working with PDF files. The advisory concerns the component that parses PDF files: when the application opens a PDF, that parser reads the structures inside the file and uses them to build the document in memory. The flaw described here sits in that parsing path, and it is an out-of-bounds write, classified as a remote code execution vulnerability with a CVSS score of 7.8 (high severity).
A few of those words deserve a plain explanation:
- Parser: the part of a program that reads a file and turns its raw contents into something the program can use. Think of it as a translator who reads a document in a foreign language and explains it to you. If the translator misreads a sentence, everything that follows can go wrong.
- Memory: the working space a program uses while it runs. Programs reserve small blocks of it (buffers) to hold data they are processing.
- Out-of-bounds write: writing data past the end of a reserved block. Imagine a form with ten boxes for letters, and someone keeps writing into the eleventh box, which belongs to a different form. Whatever was written there is now corrupted.
- Remote code execution: an attacker, working from somewhere else (for example through a file they send you), gets their own instructions to run on your computer.
The case was handled by the Zero Day Initiative and credited to Mat Powell of TrendAI Zero Day Initiative.
Setup
The advisory does not describe a test environment, tooling, build version or debugging setup. What it does state are the preconditions for exploitation:
- The target runs an affected installation of Soda PDF Desktop.
- User interaction is required: the target must either visit a malicious page or open a malicious file.
- The attacker supplies the PDF content that reaches the parser.
"User interaction is required" is an important phrase. It means the attacker cannot simply reach into the victim's computer from afar. The victim has to do something: open a malicious file, or visit a malicious page. This is the same idea as a parcel that only causes trouble once you open the box yourself.
No account, role or privilege on the victim machine is mentioned as a requirement.
Finding it
The flaw is in the parsing of PDF files. The advisory attributes it to a lack of proper validation of user-supplied data, which results in a write past the end of an allocated buffer. In other words, a value taken from the PDF is used without sufficient bounds checking, and the write lands beyond the memory that was allocated for it.
"Validation" here means checking that a value makes sense before using it. If a file says "this section is 500 bytes long" but the program only reserved space for 50, a careful program would notice the mismatch and refuse. A program that skips that check will happily copy 500 bytes into a 50-byte space, and the extra 450 bytes land in memory that belongs to something else.
The advisory gives no further detail on which PDF structure, field or code path is involved, and it does not include a crash trace, a proof-of-concept file or a sample payload.
Exploitation
The advisory describes the exploitation model at a high level rather than as a sequence of requests or commands. The steps it supports are:
- The attacker prepares a malicious PDF file or a malicious page.
- The target opens the malicious file or visits the malicious page.
- During parsing, the unvalidated data causes a write past the end of an allocated buffer.
- The attacker leverages the resulting memory corruption to execute code in the context of the current process.
There are no HTTP requests, payloads, commands or code listings in the advisory, so none are reproduced here. The outcome stated is code execution in the context of the current process, which means the privileges of the Soda PDF Desktop process on the victim's machine, not those of the attacker.
That last point is worth pausing on. "In the context of the current process" means the attacker's code runs with the same permissions that Soda PDF Desktop itself has. If you opened the program as a normal user, the attacker's code gets a normal user's reach; it does not automatically become an administrator. The advisory does not say what data or privileges the process holds, so how far the attacker could go beyond that is not described.
Root cause
The mistake is the absence of proper validation of user-supplied data during PDF parsing, which allows a write past the end of an allocated buffer. The advisory does not identify the specific function, the size calculation or the field that is mishandled, so the exact coding error is not public in this text.
Why the application's existing defences did not stop it is not discussed. Likely, the parser trusted a length or offset taken from the file and used it to index or copy without checking it against the real size of the destination buffer, but the advisory does not confirm this.
To picture the general idea: a PDF file is full of numbers that describe where things are and how big they are. If the program treats those numbers as trustworthy instructions without checking them, a crafted file can steer it into writing where it should not.
Impact
An attacker who can get a target to open a malicious file or visit a malicious page can execute arbitrary code on an affected installation of Soda PDF Desktop, in the context of the current process. The advisory rates this as high severity with a CVSS score of 7.8.
The conditions are explicit: affected installations only, and user interaction is required. The advisory does not state what data or privileges the process holds, so the practical reach of the code execution beyond that process is not described.
Fix
No fix is described. The vendor confirmed on 06/22/26 that the report was under review by its development team, and ZDI notified the vendor on 11/11/26 of the intention to publish the case as a 0-day advisory. The advisory was released on 2026-11-24 and updated the same day.
The only mitigation the advisory offers is to restrict interaction with the product, given the nature of the vulnerability.
"Mitigation" means a way to reduce the risk when no proper fix exists. Restricting interaction with the product means limiting who can open PDF files with it and from where, for example not opening PDFs from untrusted sources.
Disclosure timeline
| Date | Event |
|---|---|
| 06/18/26 | ZDI reported the vulnerability to the vendor |
| 06/22/26 | The vendor confirmed the report was under review by its development team |
| 10/19/26 | ZDI asked for updates |
| 11/11/26 | ZDI notified the vendor of the intention to publish the case as a 0-day advisory |
| 2026-11-24 | Coordinated public release of advisory |
| 2026-11-24 | Advisory updated |
This timeline is the usual back-and-forth of responsible disclosure. The researcher reports the bug privately, the vendor acknowledges it, time passes, the reporting organisation asks for progress, and if no fix appears it announces that it will publish anyway so that users can protect themselves.
Variants to test
The advisory names no parameters or file structures, so the following are general directions for similar PDF parser work rather than confirmed targets in this product:
- Length and count fields in PDF objects: supply values larger than the data that follows and watch for a crash or a write past the end of a heap buffer.
- Offset and cross-reference data: point entries at positions outside the file or into other objects and check whether the parser validates them before use.
- Stream and object nesting: build deeply nested or unusually sized structures and observe whether allocation sizes and copy lengths stay consistent.
- A positive result is a reproducible crash under a debugger that shows a write beyond an allocation whose size was derived from the file, ideally with the overwritten data influencing a pointer or return address.
Some of these terms in plain words:
- Heap: the general pool of memory a program uses for data whose size is only known while it runs. A heap buffer is a block taken from that pool.
- Offset: a number saying where something sits, like a page number in a book.
- Cross-reference data: the part of a PDF that records where each object in the file is located.
- Debugger: a tool that lets a developer pause a program and inspect its memory while it runs.
- Pointer: a value that says where in memory something is stored.
- Return address: the place a program will continue from after finishing the current function. Overwriting it is one classic way an attacker redirects execution.
Hunting notes
This class of bug tends to hide in the file parsing layer of desktop document software, where values read from the file drive buffer sizes and copy lengths. During recon, the signals are a product that opens complex, attacker-supplied file formats locally, a history of parser memory-safety advisories, and parsing code that mixes file-derived lengths with fixed-size allocations.
"Recon" means the early research stage, where someone studies a product to decide whether it is worth testing. The advisory does not describe how the researcher demonstrated impact to the program. What it does show is the disclosure path: a report to the vendor, a confirmation that the issue was under review, a follow-up request for updates, a notice of intent to publish as a 0-day, and coordinated public release of the advisory.
Glossary
- 0-day: a vulnerability that is publicly known while no official fix exists yet.
- Advisory: a public notice describing a vulnerability, its impact and any available fix or mitigation.
- Allocated buffer: a block of memory a program has reserved to hold data.
- Bounds checking: checking that a value stays within the limits of the space reserved for it.
- Buffer: a reserved area of memory used to hold data while it is processed.
- Code execution: running instructions on a computer; in a vulnerability, running the attacker's instructions.
- Context of the current process: the permissions and access of the running program, here Soda PDF Desktop, rather than those of the attacker.
- Coordinated public release: publishing a vulnerability report after informing the vendor, on an agreed or announced schedule.
- Cross-reference data: the part of a PDF file that records where each object is located.
- CVSS: a standard scoring system for vulnerability severity, from 0 to 10.
- Debugger: a tool for pausing a running program and inspecting its memory and state.
- Heap: the pool of memory a program uses for data whose size is only known at run time.
- Memory corruption: damage to a program's memory caused by writing or reading where it should not.
- Mitigation: a measure that reduces risk when no full fix is available.
- Offset: a number that says where something is located within a file or memory.
- Out-of-bounds write: writing data past the end of a reserved block of memory.
- Parser: the part of a program that reads a file and turns its contents into usable data.
- Pointer: a value that records where something is stored in memory.
- Proof of concept: a file or program that demonstrates a vulnerability in practice.
- Remote code execution: an attacker getting their own code to run on someone else's computer.
- Return address: the location a program continues from after a function finishes.
- Recon: the early research stage of studying a product before testing it.
- User interaction: the victim has to perform an action, such as opening a file or visiting a page, for the attack to work.
- Validation: checking that data is sensible and safe before using it.
- Vendor: the company that makes the affected product.
- Zero Day Initiative (ZDI): an organisation that receives vulnerability reports and passes them to vendors.