5.1

CVE-2012-2122: mariadb Improper Authentication

Modified
Published 26-06-2012Last modified 06-08-2024

Vulnerability summary

CVE-2012-2122 is a medium (CVSS 5.1) Improper Authentication vulnerability in mariadb. EPSS estimates a 96.62% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 5 public exploits are recorded.

Priority
Prioritiseweaponized exploit

Weaponized exploit (exploit-database, 12-06-2012)

Source freshness unavailable

How is this decided?
CVSS score
5.1/10
010
Medium · v2.0 (NVD)
EPSS score
96.62%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits5reference, exploit-database, metasploit

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 26-06-2012
    PublishedVulnerability first disclosed.
  2. 06-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

1 score · 1 source · 1 version

EPSS trend

Probability

96.62%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

No change 0.00 pp

From 96.62% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

5 found
  • referenceUnverified

    Exploit Reference (bugs.mysql.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (securityfocus.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (community.rapid7.com)

    Maturity: unknown

Show all 5 exploits
  • exploit-databaseremotemultipleVerified

    Oracle MySQL - Authentication Bypass

    Maturity: weaponized

  • MetasploitMetasploitremoteUnverified

    MySQL Authentication Bypass Password Dump

    auxiliary/scanner/mysql/mysql_authbypass_hashdump

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication (CVSS vector). Other conditions: not stated in public data.

Mariadb1 product
  • mariadbEOL5.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
Oracle1 product
  • mysqlEOL5.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

2 vendors · 2 products

References

11 links
Show all 11 references