CVE-2012-5627

Oracle MySQL 5.5.0-5.5.28 & MariaDB 5.2.0-5.2.13 - Brute Force via Insufficient Salt Rotation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2012-5627. PoCs published by kingcope.

AI-analyzed exploit summary This exploit leverages a security-bypass weakness in MySQL and MariaDB to aid in brute-force attacks by scrambling passwords and executing authentication commands. It reads passwords from stdin and tests them against a target MySQL server.

Description

Oracle MySQL and MariaDB 5.5.x before 5.5.29, 5.3.x before 5.3.12, and 5.2.x before 5.2.14 does not modify the salt during multiple executions of the change_user command within the same connection which makes it easier for remote authenticated users to conduct brute force password guessing attacks.

Exploits (1)

exploitdb WORKING POC VERIFIED
by kingcope · perlremotelinux
https://www.exploit-db.com/exploits/38109

This exploit leverages a security-bypass weakness in MySQL and MariaDB to aid in brute-force attacks by scrambling passwords and executing authentication commands. It reads passwords from stdin and tests them against a target MySQL server.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: MySQL and MariaDB (versions affected by CVE-2012-5627)
No auth needed
Prerequisites: Network access to the target MySQL/MariaDB server · Valid username to brute-force
MITRE ATT&CK
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Exploit, Mailing List, Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2012/Dec/58
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=883719
Exploit, Mailing List, Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2012/Dec/83
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://seclists.org/oss-sec/2012/q4/424
Broken Link vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2013:102
Not Applicable third-party-advisory x_refsource_secunia
http://secunia.com/advisories/53372
Patch, Third Party Advisory, VDB Entry vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-201308-06.xml
Broken Link, Vendor Advisory x_refsource_confirm
https://mariadb.atlassian.net/browse/MDEV-3915

Scores

EPSS 0.1141
EPSS Percentile 95.4%

Details

CWE
CWE-522
Status published
Products (3)
mariadb/mariadb 10.0.0
mariadb/mariadb 5.2.0 - 5.2.14
oracle/mysql 5.5.0 - 5.5.29
Published Oct 01, 2013
Tracked Since Feb 18, 2026