Description
Multiple stack-based buffer overflows in the CertDecoder::GetName function in src/asn.cpp in TaoCrypt in yaSSL before 1.9.9, as used in mysqld in MySQL 5.0.x before 5.0.90, MySQL 5.1.x before 5.1.43, MySQL 5.5.x through 5.5.0-m2, and other products, allow remote attackers to execute arbitrary code or cause a denial of service (memory corruption and daemon crash) by establishing an SSL connection and sending an X.509 client certificate with a crafted name field, as demonstrated by mysql_overflow1.py and the vd_mysql5 module in VulnDisco Pack Professional 8.11. NOTE: this was originally reported for MySQL 5.0.51a.
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 5.0 | mysql-dfsg-5.0 | 5.0.51a-24+lenny3 | DSA-1997-1 |
| Debian 4.0 | mysql-dfsg-5.0 | 5.0.32-7etch12 | DSA-1997-1 |
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.
Metasploit 1 module
-
MySQL yaSSL CertDecoder::GetName Buffer Overflow
exploit/linux/mysql/mysql_yassl_getname
Exploit-DB 1
- MySQL - yaSSL CertDecoder::GetName Buffer Overflow (Metasploit) EDB-16850 · remote · Apr 30, 2010 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1997-1 mysql-dfsg-5.0 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://intevydis.com/mysql_overflow1.py.txt
- http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html
- 38573 third-party-advisory
- USN-1397-1 vendor-advisory
- 37493 third-party-advisory
- http://www.yassl.com/release.html
- http://www.yassl.com/news.html#yassl199
- http://bazaar.launchpad.net/~mysql/mysql-server/mysql-5.0/revision/2837.1.1
- http://www.intevydis.com/blog/?p=106
- http://intevydis.com/mysql_demo.html
- http://intevydis.blogspot.com/2010/01/mysq-yassl-stack-overflow.html
- 38364 third-party-advisory
- 38517 third-party-advisory
- http://yassl.cvs.sourceforge.net/viewvc/yassl/yassl/taocrypt/src/asn.cpp?r1=1.13&r2=1.14
- 37974 vdb-entry
- 1023513 vdb-entry
- USN-897-1 vendor-advisory
- http://www.metasploit.com/modules/exploit/linux/mysql/mysql_yassl_getname
- ADV-2010-0236 vdb-entry
- [dailydave] 20100106 0day demos mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=555313
- http://bugs.mysql.com/bug.php?id=50227
- 37640 vdb-entry
- mysql-unspecified-bo(55416) vdb-entry
- http://www.intevydis.com/blog/?p=57
- http://isc.sans.org/diary.html?storyid=7900
- [commits] 20100113 bzr commit into mysql-5.0-bugteam branch (ramil:2838) Bug#50227 mailing-list
- 1023402 vdb-entry
- http://dev.mysql.com/doc/refman/5.0/en/news-5-0-90.html
- 61956 vdb-entry
- http://intevydis.com/vd-list.shtml
- 38344 third-party-advisory
- 37943 vdb-entry
- ADV-2010-0233 vdb-entry
- [dailydave] 20100126 New db bugs mailing-list
- DSA-1997 vendor-advisory