cbcvebase.
CVE-2012-5612
published 2012-12-03

CVE-2012-5612: Heap-based buffer overflow in Oracle MySQL 5.5.19 and other versions through 5.5.28, and MariaDB 5.5.28a and possibly other versions, allows remote…

PriorityP347medium6.5CVSS 2.0
AVNACLAuSCPIPAP
EXPLOIT
EPSS
20.84%
97.3th percentile
Heap-based buffer overflow in Oracle MySQL 5.5.19 and other versions through 5.5.28, and MariaDB 5.5.28a and possibly other versions, allows remote authenticated users to cause a denial of service (memory corruption and crash) and possibly execute arbitrary code, as demonstrated using certain variations of the (1) USE, (2) SHOW TABLES, (3) DESCRIBE, (4) SHOW FIELDS FROM, (5) SHOW COLUMNS FROM, (6) SHOW INDEX FROM, (7) CREATE TABLE, (8) DROP TABLE, (9) ALTER TABLE, (10) DELETE FROM, (11) UPDATE, and (12) SET PASSWORD commands.

Affected

13 ranges
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
mariadbmariadb
mariadbmariadb>= 5.1.0 < 5.1.675.1.67
mariadbmariadb>= 5.2.0 < 5.2.145.2.14
mariadbmariadb>= 5.3.0 < 5.3.125.3.12
mariadbmariadb>= 5.5.0 < 5.5.295.5.29
oraclemysql5.5.0 – 5.5.28
suselinux_enterprise_desktop
suselinux_enterprise_server
suselinux_enterprise_software_development_kit

Detection & IOCsextracted from sources · hover to see the quote

port3306
  • The exploit requires an authenticated database user; monitor for authenticated MySQL sessions issuing rapid repeated variations of DDL/DML commands (USE, SHOW TABLES, DESCRIBE, SHOW FIELDS FROM, SHOW COLUMNS FROM, SHOW INDEX FROM, CREATE TABLE, DROP TABLE, ALTER TABLE, DELETE FROM, UPDATE, SET PASSWORD) in tight loops — characteristic of the PoC fuzzing pattern.
  • The vulnerable code path is in the MDL (Metadata Locking) subsystem, present only in MySQL 5.5 and above; scope detection efforts to MySQL 5.5.x instances (specifically 5.5.19 through 5.5.28) and MariaDB 5.5.28a.
  • The exploit script changes the victim user's password to an undefined value as a side effect; unexpected MySQL user password changes on 5.5.x servers may indicate exploitation attempts.
  • The crash backtrace shows the fault in free_root() called from cleanup()/ha_rollback_trans() chain; mysqld crash reports referencing free_root at my_alloc.c:369 on 5.5.x should be treated as potential exploitation indicators.
  • ·The vulnerability only affects MySQL 5.5.x (5.5.19 through 5.5.28) and MariaDB 5.5.28a; MySQL 5.0.x and 5.1.x are NOT affected because the vulnerable MDL subsystem did not exist in those versions.
  • ·Exploitation requires a valid authenticated database account; unauthenticated remote exploitation is not possible.
  • ·Red Hat Enterprise Linux 5 and 6 ship MySQL 5.0.x and 5.1.x respectively and are confirmed not affected; patched versions are MySQL 5.5.29 and MariaDB fix tracked as MDEV-3908.

CVSS provenance

nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
vendor_redhat6.5MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.