{"id":"CVE-2011-2506","aliases":["DEBIAN-CVE-2011-2506","DSA-2286-1","EUVD-2022-4696","GHSA-p6h7-29r2-g88f"],"status":"published","title":"phpMyAdmin vulnerable to static code injection","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.09626,"percentile":0.95518,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-94"],"published":"2011-07-14T23:00:00Z","modified":"2026-10-23T17:47:47Z","exploits":[{"source":"exploitdb","id":"EDB-17510","title":"phpMyAdmin3 (pma3) - Remote Code Execution","type":"webapps","platform":"php","date":"2011-07-08","verified":true,"url":"https://www.exploit-db.com/exploits/17510"},{"source":"exploitdb","id":"EDB-17514","title":"phpMyAdmin 3.x - Swekey Remote Code Injection","type":"webapps","platform":"php","date":"2011-07-09","verified":true,"url":"https://www.exploit-db.com/exploits/17514"}],"fixes":[{"ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","fixed_in":["3.3.10.2","3.4.3.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"phpmyadmin","fixed_in":["4:3.4.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"phpmyadmin","fixed_in":["4:3.4.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"phpmyadmin","fixed_in":["4:3.4.3.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.3.10.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4"},{"fixed":"3.4.3.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:3.4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:3.4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:3.4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:3.3.7-6"}]}],"versions":["4:3.3.7-3","4:3.3.7-5"],"bundled":6},{"source":"osv","ecosystem":"Debian:5.0","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:2.11.8.1-5+lenny9"}]}],"versions":["4:2.11.8.1-5","4:2.11.8.1-5+lenny1","4:2.11.8.1-5+lenny3","4:2.11.8.1-5+lenny4","4:2.11.8.1-5+lenny5","4:2.11.8.1-5+lenny6","4:2.11.8.1-5+lenny7","4:2.11.8.1-5+lenny8"],"bundled":6},{"source":"osv","ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.3.10.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4"},{"fixed":"3.4.3.1"}]}]}],"products":[{"vendor":"phpmyadmin","product":"phpmyadmin"}],"references":[{"url":"http://www.xxor.se/advisories/phpMyAdmin_3.x_Multiple_Remote_Code_Executions.txt","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2011/06/28/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://typo3.org/teams/security/security-bulletins/typo3-sa-2011-008/","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.phpmyadmin.net/home_page/security/PMASA-2011-6.php","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","advisory","fix","web"]},{"url":"http://secunia.com/advisories/45292","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2011/06/28/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/06/28/8","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2011:124","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://securityreason.com/securityalert/8306","tags":["third-party-advisory","x_refsource_SREASON","x_transferred","web"]},{"url":"http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin%3Ba=commit%3Bh=0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/45139","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.exploit-db.com/exploits/17514/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","evidence"]},{"url":"http://www.debian.org/security/2011/dsa-2286","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://www.securityfocus.com/archive/1/518804/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://www.osvdb.org/73612","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/06/29/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://ha.xxor.se/2011/07/phpmyadmin-3x-multiple-remote-code.html","tags":["x_refsource_MISC","x_transferred","Exploit","evidence","web"]},{"url":"http://secunia.com/advisories/45315","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062719.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-2506","tags":["advisory"]},{"url":"http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commit;h=0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f","tags":["web"]},{"url":"https://github.com/phpmyadmin/phpmyadmin/commit/0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f","tags":["web"]},{"url":"https://github.com/phpmyadmin/phpmyadmin/commit/2e01647949df937040e73a94ce0bac0daecbdcf4","tags":["web"]},{"url":"https://web.archive.org/web/20110712103138/http://www.xxor.se/advisories/phpMyAdmin_3.x_Multiple_Remote_Code_Executions.txt","tags":["web"]},{"url":"https://web.archive.org/web/20111116172111/http://www.securityfocus.com/archive/1/518804/100/0/threaded","tags":["web"]},{"url":"https://web.archive.org/web/20121105034518/http://www.mandriva.com/en/support/security/advisories?name=MDVSA-2011:124","tags":["web"]},{"url":"https://github.com/advisories/GHSA-p6h7-29r2-g88f"},{"url":"https://security-tracker.debian.org/tracker/CVE-2011-2506","tags":["advisory"]},{"url":"https://github.com/phpmyadmin/composer","tags":["package"]},{"url":"http://typo3.org/teams/security/security-bulletins/typo3-sa-2011-008","tags":["web"]},{"url":"http://www.exploit-db.com/exploits/17514","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2011-2506","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.","status":"published","published":"2011-07-14T23:00:00Z","modified":"2024-08-06T23:00:34.178Z","updated_at":"2026-11-02T14:35:36.603688Z"}],"euvd":[{"id":"EUVD-2022-4696","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.","status":"published","published":"2011-07-14T23:00:00Z","modified":"2024-08-06T23:00:34Z","updated_at":"2026-11-03T01:39:55.11051Z"}],"ghsa":[{"id":"GHSA-p6h7-29r2-g88f","title":"phpMyAdmin vulnerable to static code injection","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.","status":"published","published":"2022-05-14T02:55:16Z","modified":"2024-01-15T17:50:30Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:31.550603Z"}],"nvd":[{"id":"CVE-2011-2506","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.","status":"published","published":"2011-07-14T23:55:04.88Z","modified":"2026-06-16T23:31:28.447Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:02:09.182398Z"}],"osv":[{"id":"CVE-2011-2506","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.","status":"published","published":"2011-07-14T23:55:04Z","modified":"2026-04-10T03:41:50.801289Z","updated_at":"2026-11-02T15:43:58.279353Z"},{"id":"DEBIAN-CVE-2011-2506","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.","status":"published","published":"2011-07-14T23:55:04.88Z","modified":"2026-10-23T17:47:47.755072416Z","updated_at":"2026-11-02T15:45:24.612044Z"},{"id":"DSA-2286-1","title":"phpymadmin - several","status":"published","published":"2011-07-26T00:00:00Z","modified":"2026-03-09T01:21:01.668846Z","updated_at":"2026-11-02T15:46:15.108335Z"},{"id":"GHSA-p6h7-29r2-g88f","title":"phpMyAdmin vulnerable to static code injection","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.","status":"published","published":"2022-05-14T02:55:16Z","modified":"2024-01-15T18:11:46.964011Z","cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:52.891208Z"}]}}
