# CVE-2008-2079: Privilege escalation in n/a

> Local users can bypass privilege checks via crafted CREATE TABLE commands, leading to unauthorized access to future tables.

- **Severity:** Medium 4.6 (`AV:N/AC:H/Au:S/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 5 May 2008
- **Updated:** 7 Aug 2024
- **Also known as:** DTSA-150-1, GHSA-789p-mwwq-w5cp, RHSA-2008:0510

## What is CVE-2008-2079?

CVE-2008-2079 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 5 May 2008. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

MySQL 4.1.x before 4.1.24, 5.0.x before 5.0.60, 5.1.x before 5.1.24, and 6.0.x before 6.0.5 allows local users to bypass certain privilege checks by calling CREATE TABLE on a MyISAM table with modified (1) DATA DIRECTORY or (2) INDEX DIRECTORY arguments that are within the MySQL home data directory, which can point to tables that are created in the future.

Weakness: CWE-264

## Which versions are affected by CVE-2008-2079?

It affects 4 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `httpd` | Red Hat:rhel_application_stack:1 | All versions | 0:2.0.63-2.el4s1.2 |
| `httpd-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:2.0.63-2.el4s1.2 |
| `httpd-devel` | Red Hat:rhel_application_stack:1 | All versions | 0:2.0.63-2.el4s1.2 |
| `httpd-manual` | Red Hat:rhel_application_stack:1 | All versions | 0:2.0.63-2.el4s1.2 |
| `mod_jk` | Red Hat:rhel_application_stack:1 | All versions | 0:1.2.26-1.el4s1.1 |
| `mod_jk-ap20` | Red Hat:rhel_application_stack:1 | All versions | 0:1.2.26-1.el4s1.1 |
| `mod_jk-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:1.2.26-1.el4s1.1 |
| `mod_jk-manual` | Red Hat:rhel_application_stack:1 | All versions | 0:1.2.26-1.el4s1.1 |
| `mod_ssl` | Red Hat:rhel_application_stack:1 | All versions | 1:2.0.63-2.el4s1.2 |
| `mysql` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-bench` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-cluster` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-connector-odbc` | Red Hat:rhel_application_stack:1 | All versions | 0:3.51.24r1071-1.el4s1.1 |
| `mysql-connector-odbc-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:3.51.24r1071-1.el4s1.1 |
| `mysql-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-devel` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-libs` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-server` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `mysql-test` | Red Hat:rhel_application_stack:1 | All versions | 0:5.0.50sp1a-2.el4s1.1 |
| `perl-DBD-MySQL` | Red Hat:rhel_application_stack:1 | All versions | 0:4.006-1.el4 |
| `perl-DBD-MySQL-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:4.006-1.el4 |
| `perl-DBI` | Red Hat:rhel_application_stack:1 | All versions | 0:1.604-1.el4s1 |
| `perl-DBI-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:1.604-1.el4s1 |
| `php` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-bcmath` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-cli` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-common` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-dba` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-debuginfo` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-devel` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-gd` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-imap` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-ldap` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-mbstring` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-mysql` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-ncurses` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-odbc` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-pdo` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-pgsql` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |
| `php-snmp` | Red Hat:rhel_application_stack:1 | All versions | 0:5.1.6-3.el4s1.9 |

Products: Canonical Ubuntu Linux, Debian Debian Linux, Mysql Mysql, Oracle Mysql.

## How do I fix CVE-2008-2079?

Upgrade to a fixed version.

## Is CVE-2008-2079 being exploited?

There is no known exploitation of CVE-2008-2079 in the wild and no public exploit code.

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2020-11651](https://insights.sbomify.com/CVE-2020-11651/): SaltStack Salt Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2020-7247](https://insights.sbomify.com/CVE-2020-7247/): OpenSMTPD Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2019-16928](https://insights.sbomify.com/CVE-2019-16928/): Exim Out-of-bounds Write (critical 9.8, exploited in the wild)
- [CVE-2018-6789](https://insights.sbomify.com/CVE-2018-6789/): Exim Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2015-2590](https://insights.sbomify.com/CVE-2015-2590/): Oracle Java SE and Java SE Embedded Remote Code Execution (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2008-2079 and fix it if it is affected.

What it is: CVE-2008-2079 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 5 May 2008. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2008-2079 in the wild and no public exploit code.

Affected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2008-2079/ (Markdown: https://insights.sbomify.com/CVE-2008-2079/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2008-2079
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2008-2079
- OSV: https://osv.dev/vulnerability/CVE-2008-2079

---
From sbomify Insights: https://insights.sbomify.com/CVE-2008-2079/
Summaries are generated and may contain mistakes; the official description above is the record.
