CVE-2012-5612 Out-of-bounds Write
No CVSS score yet. EPSS 21% estimated probability of exploitation activity in the next 30 days.
On this page
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.
- EPSS
- 21% (unchanged from 21% a week ago; 21% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-787 Out-of-bounds Write
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- SUSE, openSUSE: fixed package versions per release
- Patch: https://mariadb.atlassian.net/browse/MDEV-3908
- Vendor advisory: http://www.oracle.com/technetwork/topics/security/cpujan2013-1515902.html
Ask an AI about this CVE
Show the prompt
Explain CVE-2012-5612 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2012-5612?via=ask-ai-copy and https://cve.bz/cve/CVE-2012-5612?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2012-5612 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
- canonical:ubuntu_linux
- mariadb:mariadb
- oracle:mysql
- suse:linux_enterprise_desktop
- suse:linux_enterprise_server
- suse:linux_enterprise_software_development_kit
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| mariadb:mariadb | from 5.1.0 before 5.1.67 |
| mariadb:mariadb | from 5.2.0 before 5.2.14 |
| mariadb:mariadb | from 5.3.0 before 5.3.12 |
| mariadb:mariadb | from 5.5.0 before 5.5.29 |
| mariadb:mariadb | 10.0.0 |
| oracle:mysql | from 5.5.0 through 5.5.28 |
| suse:linux_enterprise_desktop | 11:sp2 |
| suse:linux_enterprise_server | 11:sp2 |
| suse:linux_enterprise_software_development_kit | 11:sp2 |
| canonical:ubuntu_linux | 10.04 |
| canonical:ubuntu_linux | 11.10 |
| canonical:ubuntu_linux | 12.04 |
| canonical:ubuntu_linux | 12.10 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| SUSE | Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| openSUSE | Tumbleweed | mariadb | 10.0.22-3.8 | openSUSE-SU-2024:10153-1 |
From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.
Red Hat
Red Hat rates this Important.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | mysql | Not affected | |
| Red Hat Enterprise Linux 6 | mysql | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2012-5612.
Public exploits
- Exploit-DB MySQL (Linux) - Heap Overrun (PoC)
References
- https://mariadb.atlassian.net/browse/MDEV-3908
- http://www.oracle.com/technetwork/topics/security/cpujan2013-1515902.html
- http://lists.opensuse.org/opensuse-security-announce/2013-02/msg00000.html
- http://seclists.org/fulldisclosure/2012/Dec/5
- http://secunia.com/advisories/53372
- http://security.gentoo.org/glsa/glsa-201308-06.xml
- http://www.exploit-db.com/exploits/23076
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:102
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:150
- http://www.openwall.com/lists/oss-security/2012/12/02/3
- http://www.openwall.com/lists/oss-security/2012/12/02/4
- http://www.ubuntu.com/usn/USN-1703-1
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A16960