WordPress security changelog
HIGH CVE-2015-2213 Modified

the wp_untrash_post_comments function in wp-includes/post.php in WordPress before 4.2.4: SQL injection

the wp_untrash_post_comments function in wp-includes/post.php in WordPress before 4.2.4 is affected by SQL injection. Exposure depends on how the affected operation is made reachable by the site. A successful request can alter database queries and expose or modify WordPress data.

CVE / CNA score 7.5 CVSS · cve@mitre.org
NVD score 7.5 CVSS 2.0 · nvd@nist.gov
Component
the wp_untrash_post_comments function in wp-includes/post.php in WordPress before 4.2.4
Plugin slug
Not applicable
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Nov 09, 2015
Weakness
CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Update, patch or deactivate.

Update the wp_untrash_post_comments function in wp-includes/post.php in WordPress before 4.2.4 to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

SQL injection vulnerability in the wp_untrash_post_comments function in wp-includes/post.php in WordPress before 4.2.4 allows remote attackers to execute arbitrary SQL commands via a comment that is mishandled after retrieval from the trash.

NVD vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Primary and upstream sources