CVE-2012-2122

CVE-2012-2122 is a medium-severity vulnerability in Oracle Mysql with a CVSS 2.0 base score of 5.1. Its EPSS exploit-prediction score of 96% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-287.

Key facts

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.

Frequently asked questions

What is 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 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.
How severe is CVE-2012-2122?
CVE-2012-2122 has a CVSS 2.0 base score of 5.1, rated medium severity.
Is CVE-2012-2122 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 96% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-2122?
CVE-2012-2122 primarily affects Oracle Mysql. In total, 61 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2012-2122?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2012-2122 published?
CVE-2012-2122 was published on 2012-06-26 and last updated on 2026-06-16.

References

Affected products (61)

More vulnerabilities in Oracle Mysql

All CVEs affecting Oracle Mysql →

Other CWE-287 (Improper Authentication) vulnerabilities

Browse all CWE-287 (Improper Authentication) vulnerabilities →