---
title: "CVE-2009-4028\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2009-4028?format=md
keywords: index, follow
---

# CVE-2009-4028

Publication date 30 November 2009

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

The vio\_verify\_callback function in viosslfactories.c in MySQL 5.0.x before
5.0.88 and 5.1.x before 5.1.41, when OpenSSL is used, accepts a value of
zero for the depth of X.509 certificates, which allows man-in-the-middle
attackers to spoof arbitrary SSL-based MySQL servers via a crafted
certificate, as demonstrated by a certificate presented by a server linked
against the yaSSL library.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2009-4028?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| mysql-dfsg | 9.10 karmic | Not in release |
| 9.04 jaunty | Not in release |
| 8.10 intrepid | Not in release |
| 8.04 LTS hardy | Not in release |
| 6.06 LTS dapper | Ignored end of life |
| mysql-dfsg-4.1 | 9.10 karmic | Not in release |
| 9.04 jaunty | Not in release |
| 8.10 intrepid | Not in release |
| 8.04 LTS hardy | Not in release |
| 6.06 LTS dapper | Ignored end of life |
| mysql-dfsg-5.0 | 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Not affected |
| 8.04 LTS hardy | Not affected |
| 6.06 LTS dapper | Not affected |
| mysql-dfsg-5.1 | 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Not in release |
| 8.04 LTS hardy | Not in release |
| 6.06 LTS dapper | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2009-4028?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

dapper doesn't build with ssl
hardy+ builds with yaSSL
none of our releases are vulnerable, as the yaSSL code ignores
the verify callback (see mysql bug)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| mysql-dfsg-4.1 | * Upstream:   <http://lists.mysql.com/commits/87446> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4028)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2009-4028)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2009-4028)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2009-4028)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2009-4028>
