CVE-2007-2583

MySQL < 5.0.40 and 5.1 < 5.1.18-beta - Denial of Service via Crafted IF Clause

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-2583. PoCs published by Neil Kettle.

AI-analyzed exploit summary This exploit leverages a MySQL vulnerability (CVE-2007-2583) by crafting a malicious SELECT query that triggers a division-by-zero error, causing a denial-of-service (DoS) condition. The query uses a subquery with an IF statement to force the error.

Description

The in_decimal::set function in item_cmpfunc.cc in MySQL before 5.0.40, and 5.1 before 5.1.18-beta, allows context-dependent attackers to cause a denial of service (crash) via a crafted IF clause that results in a divide-by-zero error and a NULL pointer dereference.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Neil Kettle · textdoslinux
https://www.exploit-db.com/exploits/30020

This exploit leverages a MySQL vulnerability (CVE-2007-2583) by crafting a malicious SELECT query that triggers a division-by-zero error, causing a denial-of-service (DoS) condition. The query uses a subquery with an IF statement to force the error.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: MySQL versions prior to 5.0.40
Auth required
Prerequisites: Ability to execute arbitrary SELECT statements against the target MySQL database
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (26)

Core 26
Core References
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1731
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27823
Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25196
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25188
Broken Link x_refsource_confirm
https://issues.rpath.com/browse/RPL-1356
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25389
Broken Link vendor-advisory x_refsource_trustix
http://www.trustix.org/errata/2007/0017/
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/34232
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200705-11.xml
Issue Tracking, Vendor Advisory x_refsource_confirm
http://bugs.mysql.com/bug.php?id=27513
Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/30020
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25946
Third Party Advisory, VDB Entry, Vendor Advisory vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23911
Patch, Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1413
Vendor Advisory x_refsource_confirm
http://lists.mysql.com/commits/23685
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/528-1/
Third Party Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:139
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30351
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27155
Broken Link vdb-entry x_refsource_osvdb
http://www.osvdb.org/34734
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25255
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28838
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2008-0364.html

Scores

EPSS 0.1131
EPSS Percentile 95.4%

Details

Status published
Products (6)
canonical/ubuntu_linux 6.06
canonical/ubuntu_linux 6.10
canonical/ubuntu_linux 7.04
debian/debian_linux 3.1
debian/debian_linux 4.0
oracle/mysql < 5.0.40
Published May 10, 2007
Tracked Since Feb 18, 2026