CVE-2012-2122
CVE-2012-2122 — 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…
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.
Published Updated Sources: NVD, Unknown (CNA), GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Reported
not confirmed by CISA
EPSS
97%
ahead of 99.9% of scored CVEs
CVSS base
5.1
medium · 2 sources
Remediation
The vendor's own words where we have them.
Upgrade Unknown to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
Red Hat VEX · CVE-2012-2122
vendor_fix: Before applying this update, make sure all previously-released errata relevant to your system have been applied. This update is available via the Red Hat Network. Details on how t…
none_available: Affected
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Unknown | Unknown | n/a | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
P
Confidentiality
P
Integrity
P
Attack Complexity
High
Attack Vector
Network
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.1 | CVSS 2.0 | medium | 4.9 | 6.4 | NVD |
| 7.5 | CVSS 3.1 | high | n/a | n/a | Red Hat (VEX) |
AV:N/AC:H/Au:N/C:P/I:P/A:P
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-287 · Improper Authentication
- Read Application Data
- Gain Privileges or Assume Identity
- Execute Unauthorized Code or Commands
Mitigation: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.::
Weakness & attack patterns
- CWE-287Improper Authentication
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1548Abuse Elevation Control Mechanism
- T1040Network Sniffing
- T1185Browser Session Hijacking
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
159
1 of the 5 sampled are weaponized
Exploit entries
3
Exploit-DB and CTI exploit indexes
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /password.c.
- Prioritize edge telemetry for network-reachable Unknown.
- Monitor for scanner or exploit-pattern traffic after 162 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- ip186.121.244.1667
Collective Intelligence Network Security-Firehol · Jun 13, 2024
- ip43.252.214.12979
ThreatFox · Sep 27, 2026
- ip181.91.173.24549
CINSscore · Sep 7, 2024
- ip181.48.61.2610
Maltiverse IP List · Mar 12, 2025
- ip61.184.139.132
AbuseIPDB Hourly Update · Aug 6, 2025
5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 5.1 (AV:N)
Jun 16, 2026 · NVD
- 2023
CVE is exploited. "ARPSyndicate/cvemon"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "HimmelAward/Goby_POC"
Dec 15, 2023 · SOCRadar CTI
- 2022
Added · GHSA-4qx9-mwf7-7cx8 published (medium)
May 17, 2022 · GitHub Security Advisory
- 2012
Initial · CVE published
Jun 26, 2012 · NVD
Added · Verified remote entry: Oracle MySQL - Authentication Bypass
Jun 12, 2012 · Exploit-DB
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 24×Github ReposMay 9, 2013 – Oct 8, 2026 · SOCRadar CTI
- 3×SvrsDec 19, 2023 – Jul 19, 2026 · SOCRadar CTI
References
18 on the record
- bugs.mysql.com/bug.php?id=64884
Exploit, MITRE_REFERENCES, NIST
- kb.askmonty.org/en/mariadb-5162-release-notes/
Vendor Advisory, MITRE_REFERENCES, NIST
- lists.opensuse.org/opensuse-security-announce/2012-08/msg00007.html
Vendor Advisory, Mitre, NIST
- seclists.org/oss-sec/2012/q2/493
Patch, Mitre, NIST
- secunia.com/advisories/49417
Vendor Advisory, Mitre, NIST
- secunia.com/advisories/53372
Vendor Advisory, Mitre, NIST
- security.gentoo.org/glsa/glsa-201308-06.xml
Vendor Advisory, NIST
- securitytracker.com/id?1027143
Vendor Advisory, NIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2020-24186 A Remote Code Execution vulnerability exists in the gVectors wpDiscuz plugin 7.0 through 7.0.4 for WordPress, which allows unauthenticated…CVSS 10.0
- CVE-2015-1538 Integer overflow in the SampleTable::setSampleToChunkParams function in SampleTable.cpp in libstagefright in Android before 5.1.1 LMY48I…CVSS 10.0
- CVE-2015-0235 Heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2, and other 2.x versions before 2.18, allows…CVSS 10.0
- CVE-2014-0515 Buffer overflow in Adobe Flash Player before 11.7.700.279 and 11.8.x through 13.0.x before 13.0.0.206 on Windows and OS X, and before…CVSS 10.0
- CVE-2011-4862 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT Kerberos Version 5 Applications (aka krb5-appl) 1.0.2 and…CVSS 10.0
- CVE-2010-3972 Heap-based buffer overflow in the TELNET_STREAM_CONTEXT::OnSendData function in ftpsvc.dll in Microsoft FTP Service 7.0 and 7.5 for…CVSS 10.0
Elsewhere on this site
- Unknownevery CVE for this vendor
- Unknownevery page on this product
- Auth Bypasssame class
- CWE-287other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2012-2122 is 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…, a medium vulnerability affecting Unknown from Unknown. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 162 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 5.1 describes technical severity, while EPSS 97% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.