CVE-2020-13249
MariaDB Server vulnerability analysis and mitigation

Overview

CVE-2020-13249 affects MariaDB Connector/C versions before 3.1.8. The vulnerability exists in the libmariadb/mariadb_lib.c file where the content of an OK packet received from a server is not properly validated (NVD, CVE).

Technical details

The vulnerability is located in the ma_read_ok_packet function within libmariadb/mariadb_lib.c. The issue stems from insufficient validation of OK packet contents received from the server, which could lead to buffer overflows. The fix involved adding proper bounds checking and sanity checks for client-supplied OK packet content (GitHub Commit).

Impact

While the specific impact is not explicitly detailed in the sources, improper validation of server packets could potentially lead to security issues such as buffer overflows or denial of service conditions when processing malformed responses from a MariaDB server (Red Hat).

Exploitability

The vulnerability requires an attacker to be in a position to manipulate server responses or control a malicious server that a vulnerable client connects to. It's worth noting that although the mariadb_lib.c code was originally based on MySQL code, this issue does not affect any MySQL components supported by Oracle (CVE).

Mitigation and workarounds

The vulnerability was fixed in MariaDB Connector/C version 3.1.8. Users should upgrade to this version or later to address the issue. Multiple vendors have released security updates including Red Hat Enterprise Linux, Fedora, and OpenSUSE (Red Hat, OpenSUSE).

Additional resources


SourceThis report was generated using AI

Related MariaDB Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-55215HIGH7.5
  • MariaDB Server logoMariaDB Server
  • cpe:2.3:a:mariadb:mariadb
NoYesAug 28, 2026
CVE-2026-48165HIGH7.2
  • MariaDB Server logoMariaDB Server
  • mariadb:11.8::mariadb
NoYesJun 12, 2026
CVE-2026-48163HIGH7.2
  • MariaDB Server logoMariaDB Server
  • mariadb10.11-devel
NoYesJun 12, 2026
CVE-2026-55855MEDIUM6.5
  • MariaDB Server logoMariaDB Server
  • cpe:2.3:a:mariadb:mariadb
NoYesAug 28, 2026
CVE-2026-55854MEDIUM5.9
  • MariaDB Server logoMariaDB Server
  • mariadb
NoYesAug 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management