CVE-2019-9787: XSS
WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated users in a default configuration. This occurs because CSRF protection is mishandled, and because Search Engine Optimization of A elements is performed incorrectly, leading to XSS. The XSS results in administrative access, which allows arbitrary changes to .php files. This is related to wp-admin/includes/ajax-actions.php and wp-includes/comment.php.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/wordpressto a version that resolves this vulnerability.Fixed in 5.1.1+dfsg1-1Fixed in 5.0.4+dfsg1-1 - Upgrade
Upgrade
debian/wordpressto a version that resolves this vulnerability.Fixed in 5.0.15+dfsg1-0+deb10u1Fixed in 5.0.19+dfsg1-0+deb10u1Fixed in 5.7.8+dfsg1-0+deb11u2Fixed in 6.1.1+dfsg1-1Fixed in 6.3.1+dfsg1-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2019-9787?
CVE-2019-9787 is considered a critical vulnerability because it allows remote code execution by unauthenticated users.
How do I fix CVE-2019-9787?
You can fix CVE-2019-9787 by upgrading WordPress to version 5.1.1 or later.
Who is affected by CVE-2019-9787?
All WordPress installations prior to version 5.1.1 are vulnerable to CVE-2019-9787.
What are the potential impacts of CVE-2019-9787?
The potential impacts of CVE-2019-9787 include unauthorized remote code execution and XSS attacks.
Does CVE-2019-9787 require authentication to exploit?
No, CVE-2019-9787 can be exploited by unauthenticated users, making it particularly dangerous.