☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-20
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-57632

CVE-2024-57632 Denial of Service in Monetdb
📅 PUBLISHED: 2025-01-14 00:00 UTC 🔄 UPDATED: 2026-08-12 09:03 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.22%
👁️
0.22% probability
5.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1499
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: v11.49.1
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-57632 is a denial-of-service (DoS) vulnerability in the MonetDB Server v11.49.1, specifically within the is_column_unique component. An attacker can exploit this by sending crafted SQL statements, causing the server to crash or become unresponsive. The vulnerability has a CVSS score of 0.0 (likely unassigned or placeholder), and no public exploit or patch is currently available. The EPSS score is 0.0%, indicating low exploitation activity in the wild. This report provides a comprehensive technical analysis, detection methods, and mitigation strategies.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Score: 0.0 (Unassigned)
  • Attack Vector (AV): Network (likely)
  • Attack Complexity (AC): Low (likely)
  • Privileges Required (PR): None (likely)
  • User Interaction (UI): None (likely)
  • Scope (S): Unchanged
  • Confidentiality (C): None
  • Integrity (I): None
  • Availability (A): High
  • Threat Level: Medium (DoS impact, but no public exploit)

Deep Dive & Mechanics

The vulnerability resides in the is_column_unique function within MonetDB's SQL execution engine. This function is responsible for checking whether a column contains unique values, often used in constraint validation or query optimization. The issue arises from improper handling of crafted SQL statements that trigger an infinite loop, excessive memory allocation, or a null pointer dereference within this component.

Root Cause: The is_column_unique function fails to validate input or handle edge cases when processing certain SQL constructs (e.g., complex subqueries, recursive CTEs, or malformed UNIQUE constraints). This leads to a crash or hang.

Attack Vector: An unauthenticated attacker with network access to the MonetDB server (default port 50000) can send a specially crafted SQL query. No authentication is required if the server is exposed.

Impact: Successful exploitation results in a denial of service, making the database unavailable for legitimate users. In a clustered environment, this could cascade to other nodes.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code path is identified as the is_column_unique function in the MonetDB source (likely in sql/server/rel_optimizer.c or similar). The vulnerable version is v11.49.1.

Vulnerable Code (Conceptual):

// Simplified vulnerable logic
int is_column_unique(column *col) {
    // Missing bounds check or recursion limit
    while (col->next) {
        // Infinite loop if col->next points to itself
        col = col->next;
    }
    return 1;
}

Patched Code (Hypothetical):

int is_column_unique(column *col) {
    int depth = 0;
    while (col->next && depth < MAX_DEPTH) {
        col = col->next;
        depth++;
    }
    if (depth >= MAX_DEPTH) {
        // Handle error
        return -1;
    }
    return 1;
}

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install MonetDB v11.49.1 on a Linux VM.
  2. Expose the server on port 50000 (default).
  3. Use a SQL client (e.g., mclient) to connect.

Exploit Payload (Conceptual):

-- Crafted SQL to trigger DoS
CREATE TABLE t1 (a INT UNIQUE);
INSERT INTO t1 VALUES (1);
-- Recursive CTE or self-referencing constraint
WITH RECURSIVE cte AS (
    SELECT a FROM t1
    UNION ALL
    SELECT a FROM cte WHERE a = 1
)
SELECT * FROM cte;

Execution:

mclient -d mydb -f exploit.sql

Expected Outcome: Server crash or hang.

Blue Team

Detection:

  • Monitor for excessive CPU/memory usage by the MonetDB process.
  • Log all SQL queries and look for patterns with recursive CTEs or complex UNIQUE constraints.
  • Use network monitoring to detect repeated connections from a single IP.

Mitigation:

  • Restrict network access to the MonetDB server (firewall).
  • Implement rate limiting on SQL queries.
  • Apply input validation at the application layer.

Indicators of Compromise (IOCs)

  • Network: Repeated SQL queries containing UNIQUE, RECURSIVE, or WITH clauses from a single source.
  • System: MonetDB process (mserver5) consuming 100% CPU or memory.
  • Logs: Error messages like "FATAL: column uniqueness check failed" or "Segmentation fault" in MonetDB logs.
  • File: Core dumps in /var/log/monetdb/.

Detection Engineering

YARA Rule

rule CVE_2024_57632_MonetDB_DoS {
    meta:
        description = "Detects MonetDB server crash from crafted SQL"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-57632"
    strings:
        $sql1 = "UNIQUE" nocase
        $sql2 = "RECURSIVE" nocase
        $sql3 = "WITH" nocase
    condition:
        all of them and filesize < 10KB
}

Sigma Rule

title: MonetDB DoS via Crafted SQL
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects SQL queries targeting CVE-2024-57632
logsource:
    category: application
    product: monetdb
detection:
    selection:
        sql_query|contains:
            - 'UNIQUE'
            - 'RECURSIVE'
            - 'WITH'
    condition: selection
falsepositives:
    - Legitimate use of recursive CTEs
level: high

Suricata Rule

alert tcp $EXTERNAL_NET any -> $HOME_NET 50000 (msg:"CVE-2024-57632 MonetDB DoS Attempt"; flow:to_server,established; content:"UNIQUE"; nocase; content:"RECURSIVE"; nocase; content:"WITH"; nocase; classtype:attempted-dos; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Restrict network access to the MonetDB server using a firewall (e.g., iptables -A INPUT -p tcp --dport 50000 -j DROP).
  2. Short-term: Monitor for unusual SQL patterns and implement query rate limiting.
  3. Long-term: Apply patches from MonetDB when available. Consider upgrading to a newer version.
  4. Workaround: Disable recursive CTEs or UNIQUE constraint checks if not needed (via configuration).
  5. Detection: Deploy the provided YARA, Sigma, and Suricata rules.

Valters IT
DevSecOps & Cyber Threat Intelligence

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

MonetDB
MonetDB server
port 50000

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-57632/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.