CVE-2022-27382

7.5 HIGH

📋 TL;DR

This vulnerability in MariaDB Server causes a segmentation fault through a specific component, potentially leading to denial of service. It affects MariaDB Server versions 10.7 and below. Attackers could crash the database server, disrupting database operations.

💻 Affected Systems

Products:
  • MariaDB Server
Versions: 10.7 and below (all versions up to and including 10.7)
Operating Systems: All operating systems running affected MariaDB versions
Default Config Vulnerable: ⚠️ Yes
Notes: All default configurations of affected versions are vulnerable. The vulnerability is in the core database engine.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database server crash leading to extended service disruption, data corruption, or potential remote code execution if combined with other vulnerabilities.

🟠

Likely Case

Denial of service through database server crash, requiring manual restart and causing temporary service disruption.

🟢

If Mitigated

Minimal impact with proper network segmentation and access controls limiting who can trigger the vulnerability.

🌐 Internet-Facing: MEDIUM - Internet-facing MariaDB instances could be crashed by attackers, but exploitation requires specific conditions.
🏢 Internal Only: LOW - Internal-only databases have reduced attack surface, though malicious insiders could still trigger the crash.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires database access/privileges. No public proof-of-concept has been released, but the vulnerability details are public.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: MariaDB 10.7.1 and later versions

Vendor Advisory: https://jira.mariadb.org/browse/MDEV-26402

Restart Required: Yes

Instructions:

1. Check current MariaDB version. 2. Backup databases. 3. Upgrade to MariaDB 10.7.1 or later. 4. Restart MariaDB service. 5. Verify upgrade completed successfully.

🔧 Temporary Workarounds

Restrict Database Access

all

Limit database connections to trusted users and applications only

# Configure MariaDB to only accept connections from specific IPs
# Edit /etc/mysql/mariadb.conf.d/50-server.cnf
# Set bind-address = trusted_ip_address

🧯 If You Can't Patch

  • Implement strict network access controls to limit who can connect to MariaDB
  • Monitor for abnormal database crashes and have restart procedures ready

🔍 How to Verify

Check if Vulnerable:

Run 'mysql --version' or 'SELECT VERSION();' in MariaDB. If version is 10.7 or below, the system is vulnerable.

Check Version:

mysql --version || mariadb --version || SELECT VERSION();

Verify Fix Applied:

After patching, verify version is 10.7.1 or higher using 'SELECT VERSION();' in MariaDB.

📡 Detection & Monitoring

Log Indicators:

  • Segmentation fault errors in MariaDB logs
  • Unexpected database crashes/restarts
  • Error messages containing 'Item_field::used_tables' or 'update_depend_map_for_order'

Network Indicators:

  • Multiple failed database connections followed by service disruption
  • Abnormal query patterns from single sources

SIEM Query:

source="mariadb.log" AND ("segmentation fault" OR "crash" OR "Item_field::used_tables")

🔗 References

📤 Share & Export