CVE-2012-5613

medium
Published 2012-12-03 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.0

Description

MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the FILE privilege to users who should not have administrative privileges, allows remote authenticated users to gain privileges by leveraging the FILE privilege to create files as the MySQL administrator. NOTE: the vendor disputes this issue, stating that this is only a vulnerability when the administrator does not follow recommendations in the product's installation documentation. NOTE: it could be argued that this should not be included in CVE because it is a configuration issue.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-35777 remote windows verified
Metasploit ยท 2015-01-13

Oracle MySQL (Windows) - FILE Privilege Abuse (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-23179 remote windows verified
Metasploit ยท 2012-12-06

Oracle MySQL (Windows) - MOF Execution (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-23077 local linux verified
kingcope ยท 2012-12-02

MySQL (Linux) - Database Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Oracle MySQL for Microsoft Windows MOF Execution
Source fetch failed: fetch_error โ€” view the original via the link above.
Oracle MySQL for Microsoft Windows FILE Privilege Abuse
Source code queued for fetch โ€” refresh in a moment.

OS impact

linux Linux kernel Fixed 1 release
VersionStatusFixed in
- Not affected โ€”

Application impact

VendorProductVersionsFixed
mysql mariadbmariadb5.5.28a
oracle oraclemysql5.5.19

References

CWEs

CWE-16

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.