5.1
MEDIUM CVSS 2.0
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 !
Affected Products

The following products are affected by CVE-2012-2122 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Oracle mysql
1 Mariadb mariadb
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
Solution
Update MySQL and MariaDB to patched versions to fix an authentication bypass vulnerability.
  • 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.

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:

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

Updated: 21 hours, 46 minutes ago
0 stars 0 fork 0 watcher
Born at : April 15, 2026, 2:24 p.m. This repo has been linked 28 different CVEs too.

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

Updated: 3 days, 4 hours ago
1 stars 0 fork 0 watcher
Born at : April 13, 2026, 6:54 a.m. This repo has been linked 1 different CVEs too.

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.

Updated: 4 days, 13 hours ago
0 stars 0 fork 0 watcher
Born at : April 11, 2026, 10:35 p.m. This repo has been linked 6 different CVEs too.

基于vulhub构建,模拟简单内网,用于nemo-agent进行测试。

Dockerfile Shell

Updated: 6 days, 20 hours ago
0 stars 0 fork 0 watcher
Born at : April 9, 2026, 8:21 a.m. This repo has been linked 3 different CVEs too.

My penetration testing dashboard - runs nmap scans, msf exploitation, and loot the information in an easily digestible browser-based workflow.

Updated: 1 week, 4 days ago
0 stars 0 fork 0 watcher
Born at : April 4, 2026, 11:18 p.m. This repo has been linked 9 different CVEs too.

None

Python

Updated: 1 week, 2 days ago
0 stars 0 fork 0 watcher
Born at : April 4, 2026, 5:59 p.m. This repo has been linked 13 different CVEs too.

None

Updated: 3 weeks, 6 days ago
0 stars 0 fork 0 watcher
Born at : March 19, 2026, 6:12 p.m. This repo has been linked 9 different CVEs too.

None

Python

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : March 13, 2026, 4:07 a.m. This repo has been linked 17 different CVEs too.

An automatic vulnerability scanner for an network in cleaner TUI

cve-scanning python tui vulnerability vulnerability-detection vulnerability-scanners

Python Dockerfile

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : March 13, 2026, 3:51 a.m. This repo has been linked 16 different CVEs too.

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

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : March 10, 2026, 8:35 a.m. This repo has been linked 7 different CVEs too.

None

Shell Python

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 8, 2026, 6:43 a.m. This repo has been linked 1 different CVEs too.

Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool built with Node.js

HTML JavaScript CSS

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 4, 2026, 8:04 p.m. This repo has been linked 13 different CVEs too.

Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool built with Node.js

HTML JavaScript CSS

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 3, 2026, 4:09 p.m. This repo has been linked 12 different CVEs too.

PortHawk - Advanced Network Port Scanner, Vulnerability Detector & Security Assessment Tool with Web Dashboard

HTML JavaScript CSS

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 3, 2026, 7:30 a.m. This repo has been linked 12 different CVEs too.

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

Updated: 5 days, 20 hours ago
2 stars 0 fork 0 watcher
Born at : Jan. 24, 2026, 12:25 p.m. This repo has been linked 33 different CVEs too.

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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.