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
Advisories And Exploit References
- advisorySUSE-SU-2013:0262
- advisoryhttps://bugzilla.suse.com/1001367
- advisoryhttps://bugzilla.suse.com/1005555
- advisoryhttps://bugzilla.suse.com/1005558
- advisoryhttps://bugzilla.suse.com/1005562
- advisoryhttps://bugzilla.suse.com/1005564
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| Product | Affected versions | Fixed in |
|---|---|---|
| MariadbMariadb | 10.0.0 | 5.1.67 |
| MysqlOracle | See advisory | 5.5.28 |
| Ubuntu LinuxCanonical | 10.04, 11.10, 12.04, 12.10 | n/a |
| Linux Enterprise DesktopSuse | 11-sp2 | n/a |
| Linux Enterprise ServerSuse | 11-sp2 | n/a |
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
Publicly disclosed
Dec 1, 2012
Last updated
Feb 4, 2026
Weakness Type
- CWE-122 Heap-based Buffer Overflow
- CWE-787 Out-of-bounds Write
References
- advisorySUSE-SU-2013:0262
- advisorybugzilla.suse.com · 1001367
- advisorybugzilla.suse.com · 1005555
- advisorybugzilla.suse.com · 1005558
- advisorybugzilla.suse.com · 1005562
FAQ
Common Questions.
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…
Affected: Mariadb versions 10.0.0; Mysql (Oracle); Ubuntu Linux (Canonical) versions 10.04, 11.10, 12.04, 12.10, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
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.
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