# CVE-2012-2122

- Priority: **Prioritise**
- Reason: Weaponized exploit (exploit-database, 12-06-2012)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2012-06-26 · Modified: 2024-08-06
- Record: https://cvemate.com/vulnerability/CVE-2012-2122 · JSON: https://cvemate.com/vulnerability/CVE-2012-2122/json

## Description

```text
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.
```

## Signals

- CVSS: 5.1 medium (v2.0, NVD) AV:N/AC:H/Au:N/C:P/I:P/A:P
- EPSS: 96.619%, percentile 99.881%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 5 (reference, exploit-database, metasploit)

## Affected

- mariadb mariadb: 5.1.41 \| 5.1.42 \| 5.1.44 \| 5.1.47 \| 5.1.49 \| 5.1.50 \| 5.1.51 \| 5.1.53 \| 5.1.55 \| 5.1.60 \| 5.1.61 \| 5.2.0 \| 5.2.1 \| 5.2.2 \| 5.2.3 \| 5.2.4 \| 5.2.5 \| 5.2.6 \| 5.2.7 \| 5.2.8 \| 5.2.9 \| 5.2.10 \| 5.2.11 \| 5.3.0 \| 5.3.1 \| 5.3.2 \| 5.3.3 \| 5.3.4 \| 5.3.5 \| 5.3.6 \| 5.5.20 \| 5.5.21 \| 5.5.22
- oracle mysql: 5.1.51 \| 5.1.52 \| 5.1.52:sp1 \| 5.1.53 \| 5.1.54 \| 5.1.55 \| 5.1.56 \| 5.1.57 \| 5.1.58 \| 5.1.59 \| 5.1.60 \| 5.1.61 \| 5.5.10 \| 5.5.11 \| 5.5.12 \| 5.5.13 \| 5.5.14 \| 5.5.15 \| 5.5.16 \| 5.5.17 \| 5.5.18 \| 5.5.19 \| 5.5.20 \| 5.5.21 \| 5.6.2 \| 5.6.3 \| 5.6.4 \| 5.6.5

## References

- <http://bugs.mysql.com/bug.php?id=64884>
- <http://www.securityfocus.com/bid/53911>
- <http://www.exploit-db.com/exploits/19092>
- <http://secunia.com/advisories/53372>
- <http://security.gentoo.org/glsa/glsa-201308-06.xml>
- <http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00007.html>
- <https://community.rapid7.com/community/metasploit/blog/2012/06/11/cve-2012-2122-a-tragically-comedic-security-flaw-in-mysql>
- <http://securitytracker.com/id?1027143>
- <http://secunia.com/advisories/49417>
- <http://seclists.org/oss-sec/2012/q2/493>
- <http://kb.askmonty.org/en/mariadb-5162-release-notes/>

---

Data as of 2026-12-05T10:59:24.411Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
