Description
Format string vulnerability in time.cc in MySQL Server 4.1 before 4.1.21 and 5.0 before 1 April 2006 allows remote authenticated users to cause a denial of service (crash) via a format string instead of a date as the first parameter to the date_format function, which is later used in a formatted print call to display the error message.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 3.1 | mysql-dfsg-4.1 | 4.1.11a-4sarge5 | DSA-1112 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | mysql +3 | 4.1.22-2.el4 | RHSA-2008:0768 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MySQL 4.x/5.x - Server Date_Format Denial of Service EDB-28234 · dos · Jul 18, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2008:0768 Red Hat Security Advisory: mysql security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1112 mysql-dfsg-4.1 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- TA07-072A third-party-advisory
- GLSA-200608-09 vendor-advisory
- 19032 vdb-entry
- APPLE-SA-2007-03-13 vendor-advisory
- 31226 third-party-advisory
- http://docs.info.apple.com/article.html?artnum=305214
- RHSA-2008:0768 vendor-advisory
- USN-321-1 vendor-advisory
- 21147 third-party-advisory
- 21366 third-party-advisory
- http://bugs.mysql.com/bug.php?id=20729
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375694
- oval:org.mitre.oval:def:9827 vdb-entry signature
- http://dev.mysql.com/doc/refman/4.1/en/news-4-1-21.html
- DSA-1112 vendor-advisory
- ADV-2007-0930 vdb-entry
- 24479 third-party-advisory