nday
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…Title composed by nday; the CVE record has none.

A public PoC appeared 14 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. Listed by 3 of 4 PoC sources: exploitdb, metasploit, and nuclei. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

authentication bypass
CWE-287, stated by NVD's analysts
network
AV:N in AV:N/AC:H/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
no authentication required
Au:N in AV:N/AC:H/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
Metasploit
Metasploit modules auxiliary/scanner/mysql/mysql_authbypass_hashdump
Exploit-DB
Exploit-DB entries 19092
nuclei
nuclei templates CVE-2012-2122
MySQL
CPE names NVD's analysts give as vulnerable: a:oracle:mysql
MariaDB
CPE names NVD's analysts give as vulnerable: a:mariadb:mariadb
database
CPE names NVD's analysts give as vulnerable: a:mariadb:mariadb, a:oracle:mysqlthe product type of MariaDB and MySQL in nday's product registry

CVSS 2.0 has no user-interaction metric, so “no user interaction” and “remote, unauthenticated” are never assigned from a CVSS 2.0 vector.

stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2012-06-26T18:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2012-06-12, date only
metasploit, nuclei
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

2012-06-12date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Oracle MySQL - Authentication Bypass” (EDB-19092). Verified by Exploit-DB.

src exploitdb 19092 · nday , bulk import · raw
{
  "id": 27227,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/19092",
  "occurred_at": "2012-06-12T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "19092",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/19092",
    "file": "exploits/multiple/remote/19092.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "Oracle MySQL - Authentication Bypass",
    "author": "David Kennedy (ReL1K)",
    "edb_id": 19092,
    "cve_ids": [
      "CVE-2012-2122"
    ],
    "platform": "multiple",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2012-06-12",
    "date_updated": "2016-12-05",
    "date_published": "2012-06-12"
  }
}
+DISdisclosed

CVE record published by redhat.

src cvelist · nday , bulk import · raw
{
  "id": 71861,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2012-2122",
  "occurred_at": "2012-06-26T18:00:00Z",
  "observed_at": "2026-11-13T05:04:30.424475Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2012-06-26T18:00:00.000Z",
    "assigner_short_name": "redhat"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module auxiliary/scanner/mysql/mysql_authbypass_hashdump (MySQL Authentication Bypass Password Dump). The source gives no release time for the module.

src metasploit auxiliary/scanner/mysql/mysql_authbypass_hashdump · nday , bulk import · raw
{
  "id": 50188,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "auxiliary/scanner/mysql/mysql_authbypass_hashdump",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb",
    "kind": "msf_module",
    "path": "/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb",
    "rank": 300,
    "check": false,
    "title": "MySQL Authentication Bypass Password Dump",
    "cve_ids": [
      "CVE-2012-2122"
    ],
    "fullname": "auxiliary/scanner/mysql/mysql_authbypass_hashdump",
    "rank_name": "normal",
    "confidence": "curated",
    "module_type": "auxiliary",
    "module_last_modified": "2026-06-17 11:11:50 +0000",
    "vuln_disclosure_date": "2012-06-09"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2012-2122 (MySQL - Authentication Bypass). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 57628,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2012/CVE-2012-2122.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2012-2122",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2012/CVE-2012-2122.yaml",
    "kind": "detection_template",
    "title": "MySQL - Authentication Bypass",
    "severity": "medium",
    "confidence": "curated",
    "cvss_score": "5.1",
    "template_id": "CVE-2012-2122",
    "template_path": "javascript/cves/2012/CVE-2012-2122.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.