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 29, 2026, 1:13 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 72 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).

None

Python HTML Shell CSS JavaScript

Updated: 12 hours, 17 minutes ago
0 stars 0 fork 0 watcher
Born at : May 6, 2026, 7:09 p.m. This repo has been linked 18 different CVEs too.

None

Python HTML Shell

Updated: 3 days, 23 hours ago
0 stars 0 fork 0 watcher
Born at : May 5, 2026, 4:39 a.m. This repo has been linked 18 different CVEs too.

None

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

3-VM SOC lab - Nessus CVE discovery, custom Snort IDS rules, 5 attack simulations from Kali Linux

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : May 1, 2026, 11:15 a.m. This repo has been linked 4 different CVEs too.

None

Python HTML Shell

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

None

Python

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : April 23, 2026, 7:04 a.m. This repo has been linked 9 different CVEs too.

A practical collection of vulnerability discovery methodologies, focusing on identification techniques, root causes, and mitigation strategies for real-world security issues.

Updated: 1 day, 7 hours ago
4 stars 0 fork 0 watcher
Born at : April 22, 2026, 4:34 p.m. This repo has been linked 30 different CVEs too.

Netology HW: Nmap scan of Metasploitable2 + SYN/FIN/Xmas/UDP traffic analysis

Updated: 3 weeks ago
0 stars 0 fork 0 watcher
Born at : April 17, 2026, 3:05 p.m. This repo has been linked 7 different CVEs too.

Attack Surface Monitoring Framework for Security Researchers | Subdomain enumeration, CVE correlation, continuous monitoring

Python HTML

Updated: 2 weeks ago
1 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 weeks, 4 days 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: 3 weeks, 6 days 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 Python

Updated: 2 weeks, 3 days 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 month 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 month 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: 1 month, 2 weeks 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.

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.

  • Status Change by [email protected]

    Apr. 29, 2026

    Action Type Old Value New Value
  • 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.