Privilege Bypass and OS Command Execution in OrientDB <=2.2.22
OrientDB versions through 2.2.22 fail to enforce privilege requirements when processing queries that use the 'where', 'fetchplan', or 'order by' clauses. This allows remote attackers to craft requests that bypass intended access controls and execute arbitrary operating system commands.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary OS commands on the server hosting OrientDB, potentially leading to full system compromise, data exfiltration, or further lateral movement within the environment.
If you can’t patch tonight, do this now.
Until the software can be upgraded, restrict network access to the OrientDB instance, monitor for suspicious query patterns, and ensure that only trusted users can interact with the database. Consider disabling or limiting the use of affected query clauses if possible.
Patch, then assume compromise.
Upgrade OrientDB to a version later than 2.2.22 where proper privilege enforcement is implemented for query clauses. Review and restrict access to the OrientDB service to trusted users and networks.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.