Cross-site scripting (XSS) vulnerability in the command-line client in MySQL 5.0.26 through 5.0.45, and other versions including versions la
Cross-site scripting (XSS) vulnerability in the command-line client in MySQL 5.0.26 through 5.0.45, and other versions including versions later than 5.0.45, when the --html option is enabled, allows attackers to inject arbitrary web script or HTML by placing it in a database cell, which might be accessed by this client when composing an HTML document. NOTE: as of 20081031, the issue has not been fixed in MySQL 5.0.67.
- Published
- Oct 6, 2008
- Updated
- Jun 16, 2026
- EPSS
- 7.0% · 94th percentile
- CWE
- CWE-79
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
12
Monitor
Low priority for now.
- CVSS
- 10 / 40 · 2.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 7.0%
Affected systems
Using mysql? Add it to your stack and be the first to know about CVEs like this one. (MySQL)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- mysql mysql5.0.30
- mysql mysql5.0.36
- mysql mysql5.0.4
- mysql mysql5.0.44
- oracle mysql5.0.26
- oracle mysql5.0.27
- oracle mysql5.0.30
- oracle mysql5.0.32
- oracle mysql5.0.33
- oracle mysql5.0.37
- oracle mysql5.0.38
- oracle mysql5.0.41
- oracle mysql5.0.42
- oracle mysql5.0.45
- oracle mysql5.0.67
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:4.0 | mysql-dfsg-5.0 | before 5.0.32-7etch10 | 5.0.32-7etch10 |
| Debian:5.0 | mysql-dfsg-5.0 | before 5.0.51a-24+lenny1 | 5.0.51a-24+lenny1 |
| Red Hat:enterprise_linux:4::as | mysql | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-bench | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-debuginfo | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-devel | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-server | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:5::client_workstation | mysql | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-bench | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-debuginfo | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-devel | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-server | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-test | before 0:5.0.77-3.el5 | 0:5.0.77-3.el5 |
| Red Hat:rhel_application_stack:2 | httpd | before 0:2.2.13-2.el5s2 | 0:2.2.13-2.el5s2 |
| Red Hat:rhel_application_stack:2 | httpd-debuginfo | before 0:2.2.13-2.el5s2 | 0:2.2.13-2.el5s2 |
| Red Hat:rhel_application_stack:2 | httpd-devel | before 0:2.2.13-2.el5s2 | 0:2.2.13-2.el5s2 |
| Red Hat:rhel_application_stack:2 | httpd-manual | before 0:2.2.13-2.el5s2 | 0:2.2.13-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mod_ssl | before 1:2.2.13-2.el5s2 | 1:2.2.13-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql-bench | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql-cluster | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql-debuginfo | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql-devel | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
| Red Hat:rhel_application_stack:2 | mysql-libs | before 0:5.0.84-2.el5s2 | 0:5.0.84-2.el5s2 |
+42
Same product
mysql: all recordsOther highest-scoring records for the same primary product.
- CVE-2004-0627The check_scramble_323 function in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to bypass authentication via a zero-length scr61This week
- CVE-2003-0780Buffer overflow in get_salt_from_password from sql_acl.cc for MySQL 4.0.14 and earlier, and 3.23.x, allows attackers with ALTER TABLE privil60This week
- CVE-2004-0628Stack-based buffer overflow in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to cause a denial of service (crash) and possibly 42Plan
- CVE-2006-1518Buffer overflow in the open_table function in sql_base.cc in MySQL 5.0.x up to 5.0.20 might allow remote attackers to execute arbitrary code38Monitor
- CVE-2009-2446Multiple format string vulnerabilities in the dispatch_command function in libmysqld/sql_parse.cc in mysqld in MySQL 4.0.0 through 5.0.83 al37Monitor
- CVE-2004-0835MySQL 3.x before 3.23.59, 4.x before 4.0.19, 4.1.x before 4.1.2, and 5.x before 5.0.1, checks the CREATE/INSERT rights of the original table37Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:mysql-dfsg-5.0 | 5.0.32-7etch10 · Debian:4.0 | Package registry (OSV) |
| red hat:httpd | 0:2.2.13-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-debuginfo | 0:2.2.13-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-devel | 0:2.2.13-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-manual | 0:2.2.13-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_ssl | 1:2.2.13-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mysql | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-bench | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-cluster | 0:5.0.84-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mysql-debuginfo | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-devel | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-server | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-test | 0:5.0.77-3.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2008-09-30 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-7 d
- Published
- TodaySep 30, 2026+6568 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- P · data or configuration can be modified
- Availability
- none
- Attack complexity
- High
- Confidentiality impact
- None
- Integrity impact
- P
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
AV:N/AC:H/Au:N/C:N/I:P/A:N
nvd-primary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- seclists.org/bugtraq/2008/Oct/0026.html
- secunia.com/advisories/32072
- secunia.com/advisories/34907
- secunia.com/advisories/36566
- secunia.com/advisories/38517
- securityreason.com/securityalert/4357
- support.apple.com/kb/HT4077
- ubuntu.com/usn/usn-897-1
- www.debian.org/security/2009/dsa-1783
- www.henlich.de/it-security/mysql-command-line-client-html-injection-vulnerability
- www.mandriva.com/security/advisories?name=MDVSA-2009:094
- www.redhat.com/support/errata/RHSA-2009-1289.html
- www.redhat.com/support/errata/RHSA-2010-0110.html
- www.securityfocus.com/archive/1/496842/100/0/threaded
- www.securityfocus.com/archive/1/496877/100/0/threaded
- www.securityfocus.com/archive/1/497158/100/0/threaded
- www.securityfocus.com/archive/1/497885/100/0/threaded
- www.securityfocus.com/bid/31486
- www.ubuntu.com/usn/USN-1397-1
Vendor advisories and official records. Exploit/PoC links are deliberately left out.