Skip to content
WatchlistMedium

CVE-2012-5612Mariadb Heap Buffer Overflow

mysql: MDL subsystem heap-based buffer overflow

Published Dec 1, 2012 · Updated Feb 4, 2026

Key Facts

Routine patching
  • CVE-2012-5612 is a medium-severity vulnerability (CVSS 6.5 v2) affecting Mariadb, Mysql (Oracle), Ubuntu Linux (Canonical) and 22 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 21% probability of exploitation in the next 30 days.
  • Fixed versions are available, including liblz4-1 1.8.0-3.5.2, libmariadb_plugins 3.1.22-2.35.1, libmariadb-devel 3.1.22-2.35.1.
  • Brandefense priority: routine patching, as no exploitation is known and its severity is moderate or low.

Scores

CVSS v2

6.5

AV:N/AC:L/Au:S/C:P/I:P/A:P

EPSS (30-day exploit likelihood)

21%

Higher than 97.5% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

39/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

Description

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 Products

143 affected entries in total
ProductAffected versionsFixed in
MariadbMariadb10.0.05.1.67
MysqlOracleSee advisory5.5.28
Ubuntu LinuxCanonical10.04, 11.10, 12.04, 12.10n/a
Linux Enterprise DesktopSuse11-sp2n/a
Linux Enterprise ServerSuse11-sp2n/a
20 more affected products in the full CVE brief

Patched Releases

liblz4-1

1.8.0-3.5.2

libmariadb_plugins

3.1.22-2.35.1

libmariadb-devel

3.1.22-2.35.1

libmariadb3

3.1.22-2.35.1

libmariadbd104-devel

10.4.30-150100.3.5.10, 10.4.30-8.5.46

libmariadbd19

10.4.30-150100.3.5.10, 10.4.30-8.5.46

libmysqlclient_r15

5.0.96-0.6.1

libmysqlclient_r18

10.0.22-3.8

libmysqlclient_r18-32bit

10.0.22-3.8

libmysqlclient-devel

10.0.22-3.8

libmysqlclient15

5.0.96-0.6.1

libmysqlclient15-32bit

5.0.96-0.6.1

libmysqlclient15-x86

5.0.96-0.6.1

libmysqlclient18

10.0.22-3.8

libmysqlclient18-32bit

10.0.22-3.8

libmysqld-devel

10.0.22-3.8

libmysqld18

10.0.22-3.8

lz4

1.8.0-3.5.2

Mariadb

10.0.22-3.8, 5.1.67

mariadb-bench

10.0.22-3.8

mariadb-client

10.0.22-3.8

mariadb-connector-c

3.1.22-2.35.1

mariadb-errormessages

10.0.22-3.8

mariadb-test

10.0.22-3.8

mariadb-tools

10.0.22-3.8

Timeline

  1. Publicly disclosed

    Dec 1, 2012

  2. Last updated

    Feb 4, 2026

Weakness Type

  • CWE-122 Heap-based Buffer Overflow
  • CWE-787 Out-of-bounds Write

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2012-5612 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.