(Pwn2Own) Oracle Autonomous AI Database ONNX Runtime GPT GreedySearch Type Confusion Remote Code Execution Vulnerability
A type confusion flaw in the ONNX Runtime GPT GreedySearch decoder within Oracle Autonomous AI Database allows an authenticated attacker to execute arbitrary code. The attacker can bypass the existing authentication mechanism and run code as the oracle service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Oracle Autonomous AI Database. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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
Likely the ONNX Runtime GPT GreedySearch decoder does not validate the type of user-supplied data before using it, leading to a type confusion.
Impact
An attacker could execute arbitrary code in the context of the oracle service account, although authentication is required and the existing authentication mechanism can be bypassed.
What the attacker needed
Authentication, but bypassable
The fix
Oracle has issued an update to correct this vulnerability.
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 type confusion bug happens when a program treats one kind of data as if it were another kind, which can make it behave in unexpected ways. Here, the database's AI model component fails to check the data it receives properly, so an attacker who can send crafted input may be able to run their own commands on the server. The report says login is needed but that the login check can be bypassed.
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.