CVE-2012-2122

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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
96.619%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 4
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 1

Weakness

Timeline

  1. 2012-06-12First Exploit-DB entry (EDB-ID 19092)14 days before publication
  2. 2012-06-26Published by the CNA18:00 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 19092remotemultiple2012-06-12yes

Nuclei templates:

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
mariadb mariadb5.1.41no fix listed5.1.42no fix listed5.1.44no fix listed5.1.47no fix listed5.1.49no fix listed(+28 more)not listednot listednot listednot listednot listed
oracle mysql5.1.51no fix listed5.1.52no fix listed5.1.53no fix listed5.1.54no fix listed5.1.55no fix listed(+22 more)not listednot listednot listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources