Skip to content
OpenAdvisories
Unscored CVE-2007-2692 EUVD-2007-2684GHSA-p759-pfvw-7vmx

The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning…

Published May 16, 2007 · Updated Aug 7, 2024 · Assigned by mitre

Description

The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routines, which allows remote authenticated users to gain privileges.

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.

ReleasePackageFixed inAdvisory
Debian 4.0 mysql-dfsg-5.0 5.0.32-7etch3 DSA-1413-1
Debian 3.1 mysql-dfsg 4.0.24-10sarge3 DSA-1413-1
Debian 3.1 mysql-dfsg-4.1 4.1.11a-4sarge8 DSA-1413-1
ReleasePackageFixed inAdvisory
RHEL 5 mysql +4 5.0.45-7.el5 RHSA-2008:0364
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Application Stack 1 mysql +6 5.0.44-1.el4s1.1 RHSA-2007:0894

Advisories 3

References