CVE-2019-9787
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in, but needs a user to act. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 38.6% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 38.6% in the next 30 days (EPSS).
- Severity: 8.8 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 38.6% · EPSS, next 30 days
- Weakness
- CWE-352 · Cross-site request forgery
- Record status
- Modified
Affected
- WordPress < 5.1.1
Attack profile CVSS 3.0 · 8.8
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2019-9787.md and follow it. Check whether this project is affected by CVE-2019-9787. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- https://wordpress.org/support/wordpress-version/version-5-1-1/
- https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- https://wordpress.org/support/wordpress-version/version-5-1-1/
References
- http://www.securityfocus.com/bid/107411
- https://blog.ripstech.com/2019/wordpress-csrf-to-rce/
- https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- https://wordpress.org/support/wordpress-version/version-5-1-1/
- https://wpvulndb.com/vulnerabilities/9230
- https://www.debian.org/security/2020/dsa-4677
- http://www.securityfocus.com/bid/107411
- https://blog.ripstech.com/2019/wordpress-csrf-to-rce/
- https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- https://wordpress.org/support/wordpress-version/version-5-1-1/
- https://wpvulndb.com/vulnerabilities/9230
- https://www.debian.org/security/2020/dsa-4677