Appsecure logo

CVE-2021-46667: Medium Vulnerability in MariaDB

A medium-severity vulnerability exists in MariaDB versions prior to 10.6.5, resulting from an integer overflow in sql_lex.cc. Immediate action is recommended to prevent application crashes.

MEDIUMCVSS 5.5 · Published February 1, 2022

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

MariaDB before 10.6.5 has a sql_lex.cc integer overflow, leading to an application crash. This vulnerability is classified as medium severity with a CVSS score of 5.5, which indicates a moderate risk to organizations. The impact is significant, primarily affecting the availability of the application, as it can cause crashes that disrupt services.

Risk to organizations includes potential downtime and loss of service, which could affect business operations. This vulnerability is exploitable locally and requires low privileges, making it accessible to users with minimal access rights. Organizations should prioritize patching immediately to mitigate this risk.

As of now, there are no known public exploits or proof of concept (PoC) available for this vulnerability, which may reduce the immediate threat level; however, it is crucial to address it proactively. Organizations using affected versions of MariaDB should take this vulnerability seriously and implement necessary updates to protect their systems.

The urgency for defenders is high due to the potential availability impacts. Organizations should address this vulnerability in their priority patch cycle to prevent any disruption in service.

Vulnerability Details

This vulnerability allows an integer overflow in the sql_lex.cc file of MariaDB, causing application crashes. The CVSS 3.1 vector string indicates a local attack vector with low complexity and low privileges required, meaning an attacker does not need any advanced skills to exploit it.

The affected product is MariaDB, specifically versions prior to 10.6.5. The vulnerability was published on February 1, 2022, and is classified under CWE-190 (Integer Overflow or Wraparound).

Technical Analysis

The root cause of this vulnerability is an integer overflow in the sql_lex.cc file, which can be triggered during specific SQL operations. This flaw can lead to a crash of the application, resulting in a denial of service. The attack vector is local, meaning that an attacker must have access to the system where the MariaDB server is running.

The attack complexity is low, as it does not require any special conditions beyond local access. Privileges required are also low, allowing any local user to potentially trigger the overflow. There is no user interaction required for this vulnerability to be exploited.

In terms of impact, the confidentiality and integrity of the application are not affected, but the availability impact is high, as the crash may render the database service temporarily unavailable.

Risk & Impact Analysis

Real-world deployment risk includes the potential for application downtime, which can have cascading effects on business operations. Database availability is critical for many organizations; thus, even a temporary outage can lead to significant financial losses and damage to reputation.

This vulnerability matters to organizations that rely on MariaDB for their database management. The blast radius could extend to any service that depends on the database being operational, potentially affecting users and clients.

Given the CVSS score of 5.5, organizations should assess the urgency based on their specific environment and the criticality of services relying on the affected database. Organizations should address this vulnerability in their priority patch cycle.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The affected versions include MariaDB versions prior to 10.6.5. Specific vulnerable ranges are:

- All versions prior to 10.2.41 - Versions 10.3.0 to 10.3.31 - Versions 10.4.0 to 10.4.21 - Versions 10.5.0 to 10.5.12 - Versions 10.6.0 to 10.6.4

Mitigation & Remediation

To remediate this vulnerability, organizations should update to MariaDB version 10.6.5 or later. If immediate patching is not possible, consider implementing workarounds such as limiting access to the database or employing configuration hardening techniques.

For more detailed guidance on security practices, refer to the application security assessment services.

Organizations should also consider monitoring for any unusual behavior or anomalies in their database systems that could indicate exploitation attempts.

Detection Guidance

To detect potential exploitation of this vulnerability, organizations should monitor logs for any abnormal SQL operations that could trigger the integer overflow. Additionally, keep an eye on application crashes and performance degradation that may indicate misuse.

Monitoring network traffic for patterns that may suggest local exploitation attempts could also be beneficial.

AppSecure Threat Intelligence Insight

The long-term significance of this vulnerability lies in its potential to disrupt the availability of critical database services, particularly in environments relying heavily on MariaDB. It reflects the need for ongoing vigilance and proactive security measures to address vulnerabilities in widely-used software.

Security teams should learn from this incident to enhance their vulnerability management strategies. Consider adopting a vulnerability management program that integrates regular assessments and prompt patching protocols.

Furthermore, adopting a culture of security awareness within development teams can significantly reduce the risk of similar vulnerabilities in future releases. For insights into effective penetration testing approaches, refer to our penetration testing methodology guide.

Finally, organizations should remain informed about trends in vulnerability exploitation by following updates and advisories related to software and applications in use. Regularly engaging in security testing best practices can help mitigate risks and enhance overall security posture.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.