Skip to content
Memory corruption Advisory Advanced CVE-2017-3271

Oracle Outside In Technology PDF parser confusion Code Execution Vulnerability

A malformed PDF /Index entry containing a string instead of an integer causes a parser confusion, leading to an out-of-bounds memory access and an arbitrary write. An attacker could exploit this to corrupt heap memory and potentially achieve code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable arbitrary write vulnerability exists in the PDF parser functionality of Oracle Outside In Technology SDK. A specially crafted PDF document can cause a parser confusion resulting in an arbitrary write vulnerability ultimately leading to code execution.

Aleksandar Nikolic, on Cisco Talos

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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The PDF parser failed to validate that all elements of the /Index array are integers, allowing a string pointer to be used in offset calculations and later as a write destination.

Impact

The vulnerability could lead to arbitrary memory overwrite and ultimately code execution, though the supplied testcase might not crash depending on memory layout.

What the attacker needed

Victim opens a crafted PDF; vulnerable Oracle Outside In SDK

How it was found

  1. Create a PDF file with an /Index array containing a string element (e.g., by inserting a misplaced character).
  2. Set the /Size parameter to influence memory layout and control the integer overflow.
  3. Open the crafted PDF with the vulnerable application (e.g., ixsample).
  4. Observe the parser confusion leading to an out-of-bounds access and arbitrary write.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A PDF file has a table that lists where different parts of the file are stored. This table should only contain numbers, but the software did not check properly and accepted a text value instead. That text value was then used as if it were a number, causing the program to write data to the wrong place in memory, which can crash it or let an attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Aleksandar Nikolic

View all

147 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.