| Name | CVE-2006-6942 | 
| Description | Multiple cross-site scripting (XSS) vulnerabilities in PhpMyAdmin before 2.9.1.1 allow remote attackers to inject arbitrary HTML or web script via (1) a comment for a table name, as exploited through (a) db_operations.php, (2) the db parameter to (b) db_create.php, (3) the newname parameter to db_operations.php, the (4) query_history_latest, (5) query_history_latest_db, and (6) querydisplay_tab parameters to (c) querywindow.php, and (7) the pos parameter to (d) sql.php. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DSA-1370-1, DSA-1370-2 | 
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|---|---|---|
| phpmyadmin (PTS) | bullseye | 4:5.0.4+dfsg2-2+deb11u1 | fixed | 
| bullseye (security) | 4:5.0.4+dfsg2-2+deb11u2 | fixed | |
| bookworm | 4:5.2.1+dfsg-1+deb12u1 | fixed | |
| trixie | 4:5.2.2-really+dfsg-1 | fixed | |
| forky, sid | 4:5.2.3+dfsg-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|---|---|---|---|---|---|
| phpmyadmin | source | sarge | 4:2.6.2-3sarge5 | DSA-1370-2 | ||
| phpmyadmin | source | etch | 4:2.9.1.1-4 | DSA-1370-2 | ||
| phpmyadmin | source | (unstable) | 4:2.9.1.1-2 | medium | 
All versions 2.9.1 is vulnerable, solution is 2.9.1.1 or newer.
https://www.phpmyadmin.net/security/PMASA-2006-7/
https://github.com/phpmyadmin/phpmyadmin/commit/59d245f36ab4e0b8a49c44b1f9045fc9aef939b2