Arbitrary Library Execution via UDF in MySQL
CVE-2005-0710 is a vulnerability in MySQL 4.0.23 and earlier, and 4.1.x up to 4.1.10, that allows remote authenticated users with INSERT and DELETE privileges to bypass library path restrictions and execute arbitrary libraries. This is achieved by using the INSERT INTO statement to modify the mysql.func table, which is subsequently processed by the udf_init function, enabling arbitrary code execution via user-defined functions (UDFs).
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.
An attacker with INSERT and DELETE privileges can execute arbitrary code on the MySQL server by injecting malicious libraries as UDFs. This can lead to full compromise of the underlying system, privilege escalation, and further lateral movement within the environment. In the context of the Accellion FTA, this vulnerability can be chained with other flaws to achieve unauthenticated remote code execution as the web server user.
If you can’t patch tonight, do this now.
Restrict database user privileges to the minimum necessary, especially avoiding the use of the root user for application operations. Monitor and audit changes to the mysql.func table. Where possible, disable or restrict the use of user-defined functions (UDFs) and ensure that only trusted libraries can be loaded by the database process.
Patch, then assume compromise.
Upgrade MySQL to a version later than 4.1.10 where this vulnerability is patched. Additionally, restrict the use of the root database user for application tasks, and ensure that only trusted users have INSERT and DELETE privileges on the mysql.func table. Apply the vendor's security updates (e.g., Accellion FTA_9_12_130) that address this and related issues.
No validated public exploits yet. 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.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.