Skip to content
OpenAdvisories
High Public exploit CVE-2011-2506 EUVD-2022-4696GHSA-p6h7-29r2-g88f

phpMyAdmin vulnerable to static code injection

Published Jul 14, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

setup/lib/ConfigGenerator.class.php in phpMyAdmin 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1 does not properly restrict the presence of comment closing delimiters, which allows remote attackers to conduct static code injection attacks by leveraging the ability to modify the SESSION superglobal array.

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 14 phpmyadmin 4:3.4.3.1-1 —
Debian 13 phpmyadmin 4:3.4.3.1-1 —
Debian 12 phpmyadmin 4:3.4.3.1-1 —
Debian 6.0 phpmyadmin 4:3.3.7-6 DSA-2286-1
Debian 5.0 phpmyadmin 4:2.11.8.1-5+lenny9 DSA-2286-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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 2

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmyadmin/phpmyadmin >= 3.0, < 3.3.10.2 3.3.10.2 GHSA-p6h7-29r2-g88f
Packagist phpmyadmin/phpmyadmin >= 3.4, < 3.4.3.1 3.4.3.1 GHSA-p6h7-29r2-g88f

Advisories 1

References