Critical Denial of Service Vulnerability in MariaDB - CVE-2017-3238
Summary
ALPINE-CVE-2017-3238: Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Optimizer). Affects mariadb versions < 10.1.21-r0. Fixed in 10.1.21-r0. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
MariaDB is an open-source relational database management system that is widely used for web applications and data storage. It is a fork of MySQL and offers enhanced features, performance improvements, and a strong community support. However, certain versions of MariaDB are vulnerable to a critical denial of service (DoS) vulnerability, which can be exploited by attackers to disrupt database operations.
Vulnerability Detail
The vulnerability, identified as CVE-2017-3238, originates from a flaw in the MySQL Server component of Oracle MySQL, specifically in the Server: Optimizer subcomponent. A low-privileged attacker with network access can exploit this vulnerability through multiple protocols, leading to unauthorized actions that can cause the MySQL Server to hang or crash repeatedly. This results in a complete denial of service, impacting the availability of the database. The vulnerability affects versions 5.5.53 and earlier, 5.6.34 and earlier, and 5.7.16 and earlier, with a CVSS v3.0 Base Score of 6.5, indicating significant availability impacts.
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
If an immediate update is not possible, consider restricting network access to the MariaDB server to trusted IP addresses only. This can help mitigate the risk of exploitation until the package can be updated.
Conclusion
CVE-2017-3238 is a critical vulnerability in MariaDB that can lead to denial of service attacks. It is crucial for users to update their MariaDB installations to the patched version to ensure the security and availability of their database systems. Implementing network restrictions can serve as a temporary workaround until the update is applied.
See every vulnerability recorded for mariadb →
FAQ
CVE-2017-3238 is a critical denial of service vulnerability in MariaDB that allows attackers to crash the MySQL Server.
Affected versions include MariaDB 5.5.53 and earlier, 5.6.34 and earlier, and 5.7.16 and earlier.
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 v3.0 Base Score of CVE-2017-3238 is 6.5, indicating a significant impact on availability.
If you cannot update immediately, restrict network access to the MariaDB server to trusted IP addresses to mitigate the risk.
References
Related vulnerabilities
Recent vulnerabilities recorded for mariadb.