MySQL up to 5.0.39 item_cmpfunc.cc in_decimal::set numeric error
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.9 | $0-$5k | 0.00 |
Summary
A vulnerability was found in MySQL up to 5.0.39. It has been declared as problematic. This issue affects the function in_decimal::set of the file item_cmpfunc.cc. Executing a manipulation can lead to numeric error.
This vulnerability is registered as CVE-2007-2583. Furthermore, an exploit is available.
It is recommended to upgrade the affected component.
Details
A vulnerability was found in MySQL up to 5.0.39 (Database Software). It has been declared as problematic. This vulnerability affects the function in_decimal::set of the file item_cmpfunc.cc. The manipulation with an unknown input leads to a numeric error vulnerability. The CWE definition for the vulnerability is CWE-189. As an impact it is known to affect availability. CVE summarizes:
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.
The bug was discovered 03/29/2007. The weakness was published 03/29/2007 (Website). The advisory is shared for download at debian.org. This vulnerability was named CVE-2007-2583 since 05/09/2007. The exploitation appears to be easy. The attack can be initiated remotely. Required for exploitation is a single authentication. Technical details and also a public exploit are known.
It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. As 0-day the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 17832 (MySQL 5.0 < 5.0.40 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Databases and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 19256 (MySQL IF Query Denial of Service Vulnerability).
Upgrading to version 5.0.40 eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (34232), Exploit-DB (30020), Tenable (17832), SecurityFocus (BID 23911†) and OSVDB (34734†). Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.6
- 5.0.7
- 5.0.8
- 5.0.9
- 5.0.10
- 5.0.11
- 5.0.12
- 5.0.13
- 5.0.14
- 5.0.15
- 5.0.16
- 5.0.17
- 5.0.18
- 5.0.19
- 5.0.20
- 5.0.21
- 5.0.22
- 5.0.23
- 5.0.24
- 5.0.25
- 5.0.26
- 5.0.27
- 5.0.28
- 5.0.29
- 5.0.30
- 5.0.31
- 5.0.32
- 5.0.33
- 5.0.34
- 5.0.35
- 5.0.36
- 5.0.37
- 5.0.38
- 5.0.39
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 3.9
VulDB Base Score: 4.3
VulDB Temp Score: 3.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Numeric errorCWE: CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 17832
Nessus Name: MySQL 5.0 < 5.0.40 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 59638
OpenVAS Name: Debian Security Advisory DSA 1413-1 (mysql-dfsg, mysql-dfsg-5.0, mysql-dfsg-4.1)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: MySQL 5.0.40
Timeline
03/09/2007 🔍03/29/2007 🔍
03/29/2007 🔍
05/09/2007 🔍
05/09/2007 🔍
05/09/2007 🔍
05/10/2007 🔍
05/10/2007 🔍
05/13/2007 🔍
01/18/2012 🔍
03/13/2015 🔍
06/08/2025 🔍
Sources
Advisory: debian.orgStatus: Confirmed
Confirmation: 🔍
CVE: CVE-2007-2583 (🔍)
GCVE (CVE): GCVE-0-2007-2583
GCVE (VulDB): GCVE-100-36700
OVAL: 🔍
X-Force: 34232
SecurityFocus: 23911 - MySQL IF Query Handling Remote Denial Of Service Vulnerability
Secunia: 25188
OSVDB: 34734 - MySQL Crafted IF Clause Divide-by-zero NULL Dereference DoS
Vulnerability Center: 15063 - MySQL 5-5.0.39 Remote Denial of Service via a Crafted IF Clause in Select Query, Medium
Vupen: ADV-2007-1731
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 03/13/2015 14:56Updated: 06/08/2025 18:42
Changes: 03/13/2015 14:56 (79), 07/18/2019 21:20 (5), 07/01/2024 21:21 (16), 06/08/2025 18:42 (5)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.