CVE-2015-3440
published 2015-08-03CVE-2015-3440: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via…
PriorityP272medium4.3CVSS 2.0
AVNACMAuNCNIPAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
17.95%
96.8th percentile
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | wordpress | < wordpress 4.2.2+dfsg-1 (bookworm) | wordpress 4.2.2+dfsg-1 (bookworm) |
| debian | wordpress | < wordpress 4.2.1+dfsg-1 (bookworm) | wordpress 4.2.1+dfsg-1 (bookworm) |
| wordpress | wordpress | <= 4.2.1 | — |
| wordpress | wordpress | <= 4.2 | — |
| wordpress | wordpress | >= 0 < 4.2.2+dfsg-1 | 4.2.2+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.1+dfsg-1 | 4.2.1+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.2+dfsg-1 | 4.2.2+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.1+dfsg-1 | 4.2.1+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.2+dfsg-1 | 4.2.2+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.1+dfsg-1 | 4.2.1+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.2+dfsg-1 | 4.2.2+dfsg-1 |
| wordpress | wordpress | >= 0 < 4.2.1+dfsg-1 | 4.2.1+dfsg-1 |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect oversized WordPress comment submissions: HTTP POST bodies to comment endpoints containing comment_content fields approaching or exceeding 64KB (MySQL TEXT type limit) should be flagged as potential CVE-2015-3440 exploitation attempts. ↗
- →Look for malformed HTML in rendered WordPress comment output — specifically unclosed or attribute-injected tags resulting from database truncation of oversized comment text, which is the mechanism that enables script injection. ↗
- →Attackers may bypass comment moderation by first posting a benign comment to gain approval, then submitting the malicious oversized payload. Correlate approved-commenter accounts with subsequent large comment submissions. ↗
- ·CVE-2015-3440 was only partially fixed in WordPress 4.2.1; the incomplete patch left a residual variant (CVE-2015-8834) that was not fully resolved until WordPress 4.2.2. Ensure the patched version is 4.2.2 or later, not merely 4.2.1. ↗
- ·The vulnerability is confirmed across multiple WordPress versions (4.2, 4.1.2, 4.1.1, 3.9.3) and multiple MySQL versions (5.1.53, 5.5.41), so version-based filtering of affected hosts must account for this broad range. ↗
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
osv4.3MEDIUM
vulncheck4.3MEDIUM
vendor_debian4.3MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-c2wg-9wh8-qj37: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
ghsa_unreviewed·2022-05-17·CVSS 4.3
CVE-2015-8834 [MEDIUM] CWE-79 GHSA-c2wg-9wh8-qj37: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.2 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-3440.
GHSA
GHSA-xg6f-394q-j4f9: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
ghsa_unreviewed·2022-05-17
CVE-2015-3440 [MEDIUM] CWE-79 GHSA-xg6f-394q-j4f9: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
OSV
CVE-2015-8834: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
osv·2016-05-22·CVSS 4.3
CVE-2015-8834 [MEDIUM] CVE-2015-8834: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.2 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-3440.
OSV
CVE-2015-3440: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
osv·2015-08-03·CVSS 4.3
CVE-2015-3440 [MEDIUM] CVE-2015-3440: Cross-site scripting (XSS) vulnerability in wp-includes/wp-db
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
VulnCheck
debian debian_linux Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
vulncheck·2015·CVSS 4.3
CVE-2015-3440 [MEDIUM] debian debian_linux Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
debian debian_linux Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
Affected: debian debian_linux
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://www.exploit-db.com/exploits/36844
Debian
CVE-2015-8834: wordpress - Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress b...
vendor_debian·2015·CVSS 4.3
CVE-2015-8834 [MEDIUM] CVE-2015-8834: wordpress - Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress b...
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.2 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-3440.
Scope: local
bookworm: resolved (fixed in 4.2.2+dfsg-1)
bullseye: resolved (fixed in 4.2.2+dfsg-1)
forky: resolved (fixed in 4.2.2+dfsg-1)
sid: resolved (fixed in 4.2.2+dfsg-1)
trixie: resolved (fixed in 4.2.2+dfsg-1)
Debian
CVE-2015-3440: wordpress - Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress b...
vendor_debian·2015·CVSS 4.3
CVE-2015-3440 [MEDIUM] CVE-2015-3440: wordpress - Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress b...
Cross-site scripting (XSS) vulnerability in wp-includes/wp-db.php in WordPress before 4.2.1 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
Scope: local
bookworm: resolved (fixed in 4.2.1+dfsg-1)
bullseye: resolved (fixed in 4.2.1+dfsg-1)
forky: resolved (fixed in 4.2.1+dfsg-1)
sid: resolved (fixed in 4.2.1+dfsg-1)
trixie: resolved (fixed in 4.2.1+dfsg-1)
No detection rules found.
Bugzilla
CVE-2015-8834 wordpress: XSS vulnerability allowing to inject script via long comment
bugzilla·2016-05-24·CVSS 4.3
CVE-2015-8834 [MEDIUM] CVE-2015-8834 wordpress: XSS vulnerability allowing to inject script via long comment
CVE-2015-8834 wordpress: XSS vulnerability allowing to inject script via long comment
Cross-site scripting vulnerability in wp-includes/wp-db.php in WordPress before 4.2.2 allows remote attackers to inject arbitrary web script or HTML via a long comment that is improperly stored because of limitations on the MySQL TEXT data type.
This vulnerability was incompletely fixed in original patch for CVE-2015-3440.
External Reference:
https://wordpress.org/news/2015/05/wordpress-4-2-2/
Bugzilla
CVE-2015-3440 wordpress: stored XSS via long comments
bugzilla·2015-04-28·CVSS 4.3
CVE-2015-3440 [MEDIUM] CVE-2015-3440 wordpress: stored XSS via long comments
CVE-2015-3440 wordpress: stored XSS via long comments
A stored cross-site scripting flaw was found in Wordpress:
If the comment text is long enough, it will be truncated when inserted in the database. The MySQL TEXT type size limit is 64 kilobytes so the comment has to be quite long.
The truncation results in malformed HTML generated on the page. The attacker can supply any attributes in the allowed HTML tags, in the same way as the previous stored XSS vulnerabilities affecting WordPress.
Additional details:
http://seclists.org/fulldisclosure/2015/Apr/84
Upstream release:
https://wordpress.org/news/2015/04/wordpress-4-2-1/
https://wordpress.org/download/release-archive/
Discussion:
Created wordpress tracking bugs for this issue:
Affects: fedora-all [bug 1216070]
Affects: epel-all
http://codex.wordpress.org/Version_4.2.1http://lists.fedoraproject.org/pipermail/package-announce/2015-May/157391.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-May/158271.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-May/158278.htmlhttp://osvdb.org/show/osvdb/121320http://packetstormsecurity.com/files/131644/WordPress-4.2-Cross-Site-Scripting.htmlhttp://seclists.org/fulldisclosure/2015/Apr/84http://www.debian.org/security/2015/dsa-3250http://www.securityfocus.com/bid/74334http://www.securitytracker.com/id/1032199https://core.trac.wordpress.org/changeset/32299https://klikki.fi/adv/wordpress2.htmlhttps://wordpress.org/news/2015/04/wordpress-4-2-1/https://wpvulndb.com/vulnerabilities/7945https://www.exploit-db.com/exploits/36844/http://codex.wordpress.org/Version_4.2.1http://lists.fedoraproject.org/pipermail/package-announce/2015-May/157391.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-May/158271.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2015-May/158278.htmlhttp://osvdb.org/show/osvdb/121320http://packetstormsecurity.com/files/131644/WordPress-4.2-Cross-Site-Scripting.htmlhttp://seclists.org/fulldisclosure/2015/Apr/84http://www.debian.org/security/2015/dsa-3250http://www.securityfocus.com/bid/74334http://www.securitytracker.com/id/1032199https://core.trac.wordpress.org/changeset/32299https://klikki.fi/adv/wordpress2.htmlhttps://wordpress.org/news/2015/04/wordpress-4-2-1/https://wpvulndb.com/vulnerabilities/7945https://www.exploit-db.com/exploits/36844/
2015-08-03
Published
Exploited in the wild