CVE-2012-2122
Oracle MySQL/MariaDB SQL Heap-Based Buffer Overflow Authentication Bypass
Description
sql/password.c in Oracle MySQL 5.1.x before 5.1.63, 5.5.x before 5.5.24, and 5.6.x before 5.6.6, and MariaDB 5.1.x before 5.1.62, 5.2.x before 5.2.12, 5.3.x before 5.3.6, and 5.5.x before 5.5.23, when running in certain environments with certain implementations of the memcmp function, allows remote attackers to bypass authentication by repeatedly authenticating with the same incorrect password, which eventually causes a token comparison to succeed due to an improperly-checked return value.
INFO
Published Date :
June 26, 2012, 6:55 p.m.
Last Modified :
April 11, 2025, 12:51 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] |
Solution
- Upgrade MySQL to version 5.1.63 or later.
- Upgrade MySQL to version 5.5.24 or later.
- Upgrade MySQL to version 5.6.6 or later.
- Upgrade MariaDB to the latest available version.
Public PoC/Exploit Available at Github
CVE-2012-2122 has a 63 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2012-2122.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2012-2122 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2012-2122
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
AI-Powered Attack Surface Monitoring Framework for Security Researchers | Subdomain enumeration, CVE correlation, continuous monitoring
Python HTML
Multi-threaded network vulnerability scanner with CVE correlation and automated report generation
cybersecurity ethical-hacking kali-linux network-scanner penetration-testing port-scanner python security-tools
Python
OWASP-aligned penetration test on a healthcare platform — EternalBlue, RCE, SQL injection, NTLM cracking, and directory traversal demonstrated in a controlled Azure lab with full mitigation analysis.
基于vulhub构建,模拟简单内网,用于nemo-agent进行测试。
Dockerfile Shell
My penetration testing dashboard - runs nmap scans, msf exploitation, and loot the information in an easily digestible browser-based workflow.
None
Python
None
None
Python
An automatic vulnerability scanner for an network in cleaner TUI
cve-scanning python tui vulnerability vulnerability-detection vulnerability-scanners
Python Dockerfile
Black-box penetration test on Metasploitable Linux 2.0.0 using Kali Linux, Metasploit Framework 6.4.99-dev and Nmap. Full report included.
cybersecurity ethical-hacking kali-linux metasploit metasploitable nmap penetration-testing vulnerability-assessment offensive-security vapt
None
Shell Python
Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool built with Node.js
HTML JavaScript CSS
Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool built with Node.js
HTML JavaScript CSS
PortHawk - Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool with Web Dashboard
HTML JavaScript CSS
Comprehensive containerized security lab with 158+ vulnerable services (OWASP, CVEs, Databases, DevOps). Features an isolated network, unified orchestration, and a production-grade automated OpenVAS/GVM scanning framework.
automation ctf cve-reproduction cybersecurity devsecops docker-lab gvm openvas owasp-top-10 penetration-testing python vulnerability-scanners
Python Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2012-2122 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2012-2122 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://bugs.mysql.com/bug.php?id=64884 Added Reference http://kb.askmonty.org/en/mariadb-5162-release-notes/ Added Reference http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00007.html Added Reference http://seclists.org/oss-sec/2012/q2/493 Added Reference http://secunia.com/advisories/49417 Added Reference http://secunia.com/advisories/53372 Added Reference http://security.gentoo.org/glsa/glsa-201308-06.xml Added Reference http://securitytracker.com/id?1027143 Added Reference http://www.exploit-db.com/exploits/19092 Added Reference http://www.securityfocus.com/bid/53911 Added Reference https://community.rapid7.com/community/metasploit/blog/2012/06/11/cve-2012-2122-a-tragically-comedic-security-flaw-in-mysql -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Jun. 27, 2012
Action Type Old Value New Value