Critical Vulnerability in MariaDB: CVE-2017-3312 - Potential Server Takeover Risk

mariadb Updated 02 Oct 2025

Summary

27/01/2017
N/A
Yes i
Medium
6.7

ALPINE-CVE-2017-3312: Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Packaging). Affects mariadb versions < 10.1.21-r0. Fixed in 10.1.21-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

MariaDB is an open-source relational database management system that is widely used for web applications and data storage. It is known for its high performance, scalability, and ease of use. However, certain versions of MariaDB are vulnerable to CVE-2017-3312, which can allow low-privileged attackers to compromise the server if they gain access to the infrastructure where MariaDB is running.

Vulnerability Detail

CVE-2017-3312 is a vulnerability in the MySQL Server component of Oracle MySQL, affecting versions 5.5.53 and earlier, 5.6.34 and earlier, and 5.7.16 and earlier. This vulnerability is difficult to exploit but can lead to a complete takeover of the MySQL Server if successfully executed. It requires human interaction from a user other than the attacker, making it a unique threat. The CVSS v3.0 Base Score for this vulnerability is 6.7, indicating significant impacts on confidentiality, integrity, and availability.

How To Fix

Minimum fixed version

10.1.21-r0

This is the first release that contains the fix.

sudo apk add --upgrade mariadb

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider restricting access to the MariaDB server and implementing strict user authentication measures to minimize the risk of exploitation until the package can be updated.

Conclusion

CVE-2017-3312 presents a serious risk to MariaDB users, allowing potential server takeover by low-privileged attackers. It is crucial to update to the patched version 10.1.21-r0 or later to mitigate this vulnerability. Implementing strict access controls can also help reduce the risk until the update is applied.

See every vulnerability recorded for mariadb →

Share this vulnerability

FAQ

CVE-2017-3312 is a vulnerability in the MySQL Server component of Oracle MySQL that can allow low-privileged attackers to compromise the server.

Affected versions include those prior to 10.1.21-r0. Specifically, versions 5.5.53, 5.6.34, and 5.7.16 and earlier are vulnerable.

Successful exploitation can lead to a complete takeover of the MySQL Server, impacting data confidentiality, integrity, and availability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2017-3312 is 6.7, indicating a significant risk level.

Related vulnerabilities

Recent vulnerabilities recorded for mariadb.

How To Fix

Minimum fixed version

10.1.21-r0

This is the first release that contains the fix.

sudo apk add --upgrade mariadb

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback