Skip to content
Heist/ feed
Back to feed
High

TiDB authentication bypass vulnerability

Type: advisorySources: OSV

TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. Under certain conditions, an attacker can construct malicious authentication requests to bypass the authentication process, resulting in privilege escalation or unauthorized access. Only users using TiDB 5.3.0 are affected by this vulnerability. TiDB version 5.3.1 contains a patch for this issue. Other mitigation strategies include turning off Security Enhanced Mode (SEM), disabling local login for non-root accounts, and ensuring that the same IP cannot be logged in as root and normal user at the same time.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-31011
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:12 UTC · Revision 1

Source evidence

TiDB authentication bypass vulnerability

core-osv · Original source

Published 31 May 2022, 19:30 UTC

TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. Under certain conditions, an attacker can construct malicious authentication requests to bypass the authentication process, resulting in privilege escalation or unauthorized access. Only users using TiDB 5.3.0 are affected by this vulnerability. TiDB version 5.3.1 contains a patch for this issue. Other mitigation strategies include turning off Security Enhanced Mode (SEM), disabling local login for non-root accounts, and ensuring that the same IP cannot be logged in as root and normal user at the same time.

osv:CVE-2022-31011
Complete source record
{
  "id": "930183bbc7382547436819613361f11d723d966fb1143cd0344549ef422b2ce7",
  "url": "https://osv.dev/vulnerability/CVE-2022-31011",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "TiDB authentication bypass vulnerability",
    "summary": "TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. Under certain conditions, an attacker can construct malicious authentication requests to bypass the authentication process, resulting in privilege escalation or unauthorized access. Only users using TiDB 5.3.0 are affected by this vulnerability. TiDB version 5.3.1 contains a patch for this issue. Other mitigation strategies include turning off Security Enhanced Mode (SEM), disabling local login for non-root accounts, and ensuring that the same IP cannot be logged in as root and normal user at the same time.",
    "evidence": "osv:CVE-2022-31011",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-31011",
      "aliases": [
        "CVE-2022-31011",
        "GHSA-4whx-7p29-mq22"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pingcap/tidb",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4a1b2e9fe5b5afb1068c56de47adb07098d768d6"
                },
                {
                  "fixed": "459917c6f83df155edcc03f6ebde24942ff73b0e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 5.3.0"
                      },
                      {
                        "last_affected": "= 5.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "459917c6f83df155edcc03f6ebde24942ff73b0e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v5.3.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.3.0",
            "= 5.3.0",
            "v5.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31011.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.149942869Z",
      "provider": "osv",
      "references": [
        "https://github.com/pingcap/tidb/releases/tag/v5.3.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31011.json",
        "https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-31011"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-287"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31011.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-31011",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508939,
  "published_at": "2022-05-31T19:30:18+00:00"
}