CVE-2024-57615
📋 TL;DR
This vulnerability in MonetDB Server's BATcalcbetween_intern component allows attackers to execute crafted SQL statements that cause a denial of service. The vulnerability affects all systems running vulnerable versions of MonetDB Server, potentially disrupting database operations.
💻 Affected Systems
- MonetDB Server
📦 What is this software?
Monetdb by Monetdb
⚠️ Risk & Real-World Impact
Worst Case
Complete database service disruption requiring restart, potentially affecting all applications dependent on the database.
Likely Case
Temporary service degradation or crash affecting database availability until manual intervention.
If Mitigated
Minimal impact with proper network segmentation and access controls limiting who can execute SQL queries.
🎯 Exploit Status
Exploitation requires ability to execute SQL statements, suggesting authenticated access or SQL injection via application layer.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Check MonetDB releases after v11.47.11 for fix
Vendor Advisory: https://github.com/MonetDB/MonetDB/issues/7413
Restart Required: No
Instructions:
1. Check current MonetDB version. 2. Update to patched version via package manager or source. 3. Verify fix with test queries.
🔧 Temporary Workarounds
Restrict SQL Execution
allLimit database user permissions to prevent execution of arbitrary SQL statements.
REVOKE EXECUTE ON PROCEDURE BATcalcbetween_intern FROM public;
GRANT EXECUTE ON PROCEDURE BATcalcbetween_intern TO trusted_users_only;
🧯 If You Can't Patch
- Implement network segmentation to restrict database access to trusted applications only.
- Deploy web application firewall (WAF) to filter malicious SQL patterns at application layer.
🔍 How to Verify
Check if Vulnerable:
Check MonetDB version: if v11.47.11, assume vulnerable. Test with controlled SQL queries that trigger between operations.
Check Version:
monetdbd get version
Verify Fix Applied:
After update, test with same SQL queries that previously caused DoS; service should remain stable.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL error messages related to BATcalcbetween_intern
- Database crash logs or restart events
Network Indicators:
- High volume of SQL queries with BETWEEN clauses from single sources
SIEM Query:
source="monetdb.log" AND ("BATcalcbetween_intern" OR "crash" OR "segfault")