Tungsten Automation Power PDF JP2 File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability
The JP2 file parser in Tungsten Automation Power PDF fails to validate user-supplied data, causing an out-of-bounds read. A remote attacker could disclose sensitive information by convincing a victim to open a malicious file or visit a malicious page.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Tungsten Automation Power PDF. 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
Tungsten Automation Power PDF is a desktop PDF application. This advisory concerns its handling of JP2 files, the JPEG 2000 image format. When a user opens a document that embeds or references JP2 image data, Power PDF parses that data as part of rendering the file.
The flaw sits in that parsing path. According to the advisory, the parser does not properly validate user-supplied data, and the result is a read past the end of an allocated object. The vulnerability is rated low severity with a CVSS score of 3.3, and it is credited to Mat Powell of Trend Micro Zero Day Initiative. It was published as a coordinated advisory on 2024-10-11.
Setup
The advisory does not describe a test environment, tooling, account roles or a specific build used during research. What it does state is the precondition for exploitation: user interaction. The target must either visit a malicious page or open a malicious file. No configuration, privilege or network position beyond that is mentioned.
Finding it
The advisory gives no account of how the flaw was discovered. It states only that the specific flaw exists within the parsing of JP2 files and that the issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated object. There is no description of the malformed input, the field involved or the observed behaviour at the point of discovery.
Exploitation
The advisory describes the exploitation model at a high level rather than as a sequence of steps, and it does not include any request, payload, command or file sample. The chain it sets out is as follows.
- The attacker delivers a malicious page or a malicious file to the target.
- The target interacts with it, either by visiting the page or by opening the file. This interaction is required; the advisory is explicit that the vulnerability cannot be triggered without it.
- Power PDF parses JP2 data from that input. Because user-supplied data is not properly validated, the parser reads past the end of an allocated object.
- The out-of-bounds read discloses sensitive information.
- The attacker can leverage the disclosed information in conjunction with other vulnerabilities to execute arbitrary code in the context of the current process.
The last point is a hedge worth reading carefully. The out-of-bounds read on its own is an information disclosure; code execution is described as something an attacker can achieve by combining it with other vulnerabilities, not as a direct consequence of this flaw.
Root cause
The advisory attributes the issue to the lack of proper validation of user-supplied data during JP2 parsing. In other words, user-supplied data is used in a read without proper validation, so the read can run past the end of the allocated object. The advisory does not identify the specific field, function or code path involved, so the exact validation that is missing is not stated. Why existing defences did not stop it is likewise not discussed;
Impact
The impact is disclosure of sensitive information from the memory of the affected Power PDF installation. The attacker is remote, and the victim must visit a malicious page or open a malicious file. The advisory notes that the disclosed information can be leveraged together with other vulnerabilities to execute arbitrary code in the context of the current process. The severity is low, with a CVSS score of 3.3.
Fix
Tungsten Automation fixed the vulnerability in version 5.1.0.1, which the advisory says is available in the Tungsten Download Center:
https://esd.tungstenautomation.com/Registrations/ChooseLanguage
Users of Power PDF should update to that version or later. The advisory does not describe the code change itself.
Variants to test
The advisory names only JP2 parsing, so any variant work starts from that surface. Concrete things to try:
- Other image formats parsed by the same application. Feed malformed image data in formats other than JP2 and watch for reads past allocated buffers. A positive result is a crash under a memory checker or an observable leak of adjacent memory contents.
- Length and offset fields inside JP2 structures. Vary size and offset values in the file and observe whether the parser trusts them without checking them against the real allocation. A positive result is a read that extends beyond the object, visible as a sanitizer report or as data from outside the image appearing in output.
- Documents that embed or reference images rather than standalone image files. Since the advisory frames the trigger as opening a malicious file or visiting a malicious page, test both delivery paths. A positive result is the same out-of-bounds read reached through the document container.
Hunting notes
This class of bug tends to hide in binary format parsers, particularly in image and media decoders embedded in larger applications, where size fields from the file drive memory access. During recon, the signals that point to it are components that accept untrusted files or embedded media and parse them in native code. The advisory does not describe the researcher's process or how impact was demonstrated to the program.
Disclosure timeline
- 2024-06-13: Vulnerability reported to vendor
- 2024-10-11: Coordinated public release of advisory
- 2024-10-11: Advisory Updated
What happened, in plain words
Tungsten Automation Power PDF is a program for opening and working with PDF documents on a desktop computer. A PDF is not only text: it can contain pictures, and one of the picture formats it can contain is JP2, short for JPEG 2000. When Power PDF opens a document that holds or points to JP2 image data, it has to read that data and turn it into something it can draw on screen. That reading step is called parsing.
According to the advisory, the part of Power PDF that parses JP2 data does not check the data properly. The data comes from whoever made the file, so it is untrusted. Because of the missing check, the program can read past the end of a block of memory it had set aside, a block the advisory calls an allocated object. Reading past the end of something is like reading a few lines beyond the end of a page in a notebook: you see whatever happens to be written on the next page, which was never meant for you. In a program, that next area of memory can hold information the program was working with.
The result is that an attacker can get the program to reveal some of its own memory contents. That is called information disclosure. On its own this flaw does not let the attacker run their own code. The advisory says the attacker can use what is disclosed together with other vulnerabilities to execute arbitrary code in the context of the current process, meaning code running with the same permissions as Power PDF itself.
One condition matters: the victim has to do something. The advisory states that user interaction is required, and that the target must either visit a malicious page or open a malicious file. Simply having Power PDF installed is not enough.
The vulnerability is rated low severity with a CVSS score of 3.3. CVSS is a standard scoring system that tries to put a number on how serious a flaw is; 3.3 sits in the low band. The credit goes to Mat Powell of Trend Micro Zero Day Initiative. The advisory was released publicly on 2024-10-11 as a coordinated disclosure, which means the vendor and the reporter agreed on a date to publish.
Context
Power PDF is a desktop application, so it runs on the user's own machine rather than on a website. The advisory concerns how it handles JP2 files. JP2 is the file format for JPEG 2000 images, a newer image format than the familiar JPEG. A PDF can embed a JP2 image inside itself, or reference one, and when the document is displayed Power PDF parses that image data as part of drawing the page.
The flaw sits in that parsing path. The advisory says the parser does not properly validate user-supplied data, and that this results in a read past the end of an allocated object. "User-supplied" here means data that arrived with the file, which the attacker controls, as opposed to data the program generated itself.
The severity is low, the CVSS score is 3.3, and the finder credited is Mat Powell of Trend Micro Zero Day Initiative. The advisory was published on 2024-10-11.
Setup
The advisory does not describe a test environment, tooling, account roles or a specific build used during research. What it does state is the precondition for exploitation: user interaction. The target must either visit a malicious page or open a malicious file. No configuration, privilege or network position beyond that is mentioned.
In plain terms: there is no special setup to describe. The only thing the advisory insists on is that a person has to take an action, opening a file or visiting a page, for the flaw to be reachable.
Finding it
The advisory gives no account of how the flaw was discovered. It states only that the specific flaw exists within the parsing of JP2 files and that the issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated object. There is no description of the malformed input, the field involved or the observed behaviour at the point of discovery.
So the discovery story is not part of this advisory. What we have is the conclusion: a parsing routine for one image format, fed data it does not check, reads beyond the memory it should.
Exploitation
The advisory describes the exploitation model at a high level rather than as a sequence of steps, and it does not include any request, payload, command or file sample. The chain it sets out is as follows.
- The attacker delivers a malicious page or a malicious file to the target.
- The target interacts with it, either by visiting the page or by opening the file. This interaction is required; the advisory is explicit that the vulnerability cannot be triggered without it.
- Power PDF parses JP2 data from that input. Because user-supplied data is not properly validated, the parser reads past the end of an allocated object.
- The out-of-bounds read discloses sensitive information.
- The attacker can leverage the disclosed information in conjunction with other vulnerabilities to execute arbitrary code in the context of the current process.
The last point is a hedge worth reading carefully. The out-of-bounds read on its own is an information disclosure; code execution is described as something an attacker can achieve by combining it with other vulnerabilities, not as a direct consequence of this flaw.
A few of those ideas deserve unpacking for a newcomer.
- Process memory. Every running program gets a region of the computer's memory to work in, called its process memory. It holds the program's own data while it runs. If a program reads outside the area it meant to read, it can pick up neighbouring data that belongs to something else in the same process.
- Allocated object. When a program needs space for some data, it asks the operating system for a block of memory. That block is the allocated object. It has a start and an end. A correct parser stays inside those limits.
- Out-of-bounds read. Reading at an address before the start or after the end of the allocated block. It is a read, not a write, so the program does not change anything; it just looks at memory it should not see.
- Information disclosure. The consequence of that look: some of the program's memory contents end up somewhere the attacker can observe, for example inside the document the program produces or in how it behaves.
- Arbitrary code execution. Getting the computer to run instructions of the attacker's choosing. The advisory does not claim this flaw does that by itself.
Root cause
The advisory attributes the issue to the lack of proper validation of user-supplied data during JP2 parsing. In other words, user-supplied data is used in a read without proper validation, so the read can run past the end of the allocated object. The advisory does not identify the specific field, function or code path involved, so the exact validation that is missing is not stated. Why existing defences did not stop it is likewise not discussed;
To make that concrete for a beginner: image formats are full of numbers that describe the image, such as how wide it is, how tall it is, and where in the file a particular chunk of data begins. A parser reads those numbers and uses them to decide how much data to read. If a number says "read 500 bytes" but the block of memory only holds 100, a parser that trusts the number will read 400 bytes of whatever lies beyond. A bounds check is the simple guard that compares the requested amount against the real size and refuses if it does not fit. The advisory says that guard is missing here, but it does not say which number in the file is at fault.
Impact
The impact is disclosure of sensitive information from the memory of the affected Power PDF installation. The attacker is remote, and the victim must visit a malicious page or open a malicious file. The advisory notes that the disclosed information can be leveraged together with other vulnerabilities to execute arbitrary code in the context of the current process. The severity is low, with a CVSS score of 3.3.
"Remote" means the attacker does not need to be at the machine; the malicious page or file can arrive over a network or as an attachment. "In the context of the current process" means any code that eventually runs would run with the same rights as Power PDF, no more and no less.
Fix
Tungsten Automation fixed the vulnerability in version 5.1.0.1, which the advisory says is available in the Tungsten Download Center:
https://esd.tungstenautomation.com/Registrations/ChooseLanguage
That block is a single web address. Opening it takes you to the Tungsten Download Center, the vendor's page for obtaining its software, where the fixed version can be downloaded. Users of Power PDF should update to that version or later. The advisory does not describe the code change itself.
Variants to test
The advisory names only JP2 parsing, so any variant work starts from that surface. Concrete things to try:
- Other image formats parsed by the same application. Feed malformed image data in formats other than JP2 and watch for reads past allocated buffers. A positive result is a crash under a memory checker or an observable leak of adjacent memory contents.
- Length and offset fields inside JP2 structures. Vary size and offset values in the file and observe whether the parser trusts them without checking them against the real allocation. A positive result is a read that extends beyond the object, visible as a sanitizer report or as data from outside the image appearing in output.
- Documents that embed or reference images rather than standalone image files. Since the advisory frames the trigger as opening a malicious file or visiting a malicious page, test both delivery paths. A positive result is the same out-of-bounds read reached through the document container.
Some of the words in that list may be new.
- Malformed input. A file that does not follow the rules of its format: a number where text should be, a length that does not match the data, a structure cut short.
- Buffer. Another name for a block of memory set aside to hold data, the same idea as the allocated object above.
- Memory checker / sanitizer. A tool that watches a program while it runs and shouts when it touches memory outside the blocks it was given. It turns an invisible mistake into a visible report.
- Offset. A number saying how far into a file or a block of memory something starts, like a page number telling you where a chapter begins.
- Delivery path. The route by which the bad input reaches the program: a standalone file opened directly, or a document that carries the image inside it.
Hunting notes
This class of bug tends to hide in binary format parsers, particularly in image and media decoders embedded in larger applications, where size fields from the file drive memory access. During recon, the signals that point to it are components that accept untrusted files or embedded media and parse them in native code. The advisory does not describe the researcher's process or how impact was demonstrated to the program.
Two terms there: a binary format is a file format made of raw bytes rather than readable text, which is why its contents look like noise in a text editor. Native code means compiled machine code that runs directly on the processor, as opposed to a script running inside a browser's sandbox; mistakes in native code can reach memory directly, which is why parsers written that way are interesting to testers.
Disclosure timeline
- 2024-06-13: Vulnerability reported to vendor
- 2024-10-11: Coordinated public release of advisory
- 2024-10-11: Advisory Updated
The timeline shows the vendor was told first, and the public advisory appeared on the agreed date. Here roughly four months passed between the report and the release.
Glossary
- Advisory: a public notice describing a security flaw, its impact and its fix.
- Allocated object: a block of memory a program has reserved for a particular piece of data, with a defined start and end.
- Arbitrary code execution: getting a computer to run instructions chosen by an attacker.
- Binary format: a file format made of raw bytes rather than human-readable text.
- Bounds check: a guard that compares how much data a program is about to read or write against the real size of the memory block, and refuses if it does not fit.
- Buffer: a block of memory used to hold data, the same idea as an allocated object.
- Coordinated disclosure: an arrangement where a reporter tells the vendor first and both agree when the details become public.
- CVSS: a standard scoring system for rating the severity of a vulnerability; 3.3 falls in the low range.
- Information disclosure: a flaw that lets someone see data the program did not intend to reveal.
- JP2 (JPEG 2000): an image file format, newer than the familiar JPEG, that a PDF can embed or reference.
- Malformed input: a file that breaks the rules of its format, for example with inconsistent lengths or truncated structures.
- Memory checker / sanitizer: a tool that monitors a running program and reports when it accesses memory outside the blocks it was given.
- Native code: compiled machine code that runs directly on the processor, as opposed to a script running in a sandbox.
- Offset: a number giving how far into a file or memory block something begins.
- Out-of-bounds read: reading memory before the start or after the end of an allocated block.
- Parsing: reading structured data, such as an image file, and turning it into something the program can use.
- Process memory: the region of memory a running program uses for its own data.
- Remote attacker: an attacker who does not need to be at the victim's machine; the malicious input arrives over a network or as a file.
- User interaction: an action the victim must take, such as opening a file or visiting a page, for the flaw to be triggered.
- User-supplied data: data that came with the file or input rather than being generated by the program, and which an attacker can therefore control.
- Vendor: the company that makes the affected software, here Tungsten Automation.