{"id":"CVE-2019-9787","published":"2019-03-14T16:00:00Z","modified":"2024-08-04T22:01:54Z","title":"WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.38557,"percentile":0.9861,"provenance":"source"},"cwes":[],"references":[{"url":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/","tags":["x_refsource_MISC"]},{"url":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/","tags":["x_refsource_MISC"]},{"url":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b","tags":["x_refsource_MISC"]},{"url":"https://wpvulndb.com/vulnerabilities/9230","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/107411","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://wordpress.org/support/wordpress-version/version-5-1-1/","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2020/dsa-4677","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.72},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":5,"skipped":1,"earliest":"2019-04-15","earliestUrl":"https://github.com/rkatogit/cve-2019-9787_csrf_poc","repos":[{"name":"sijiahi/Wordpress_cve-2019-9787_defense","url":"https://github.com/sijiahi/Wordpress_cve-2019-9787_defense","stars":3,"created":"2020-05-01"},{"name":"rkatogit/cve-2019-9787_csrf_poc","url":"https://github.com/rkatogit/cve-2019-9787_csrf_poc","stars":2,"created":"2019-04-15"},{"name":"PalmTreeForest/CodePath_Week_7-8","url":"https://github.com/PalmTreeForest/CodePath_Week_7-8","stars":0,"created":"2019-08-18"},{"name":"matinciel/Wordpress_CVE-2019-9787","url":"https://github.com/matinciel/Wordpress_CVE-2019-9787","stars":0,"created":"2020-05-19"},{"name":"dexXxed/CVE-2019-9787","url":"https://github.com/dexXxed/CVE-2019-9787","stars":0,"created":"2021-06-29"}]},"first":{"date":"2019-04-15","source":"PoC-in-GitHub","url":"https://github.com/rkatogit/cve-2019-9787_csrf_poc"},"provenance":"source"},"summary":{"text":"The flaw affects WordPress before 5.1.1, where comment content is not properly filtered, and it spans the comment handling code in wp-admin/includes/ajax-actions.php and wp-includes/comment.php. An unauthenticated attacker can achieve remote code execution in a default configuration by chaining mishandled CSRF protection with incorrectly performed Search Engine Optimization of A elements, which leads to XSS that yields administrative access and allows arbitrary changes to .php files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:02Z"},"euvd":{"id":"EUVD-2019-19149","exploited":false,"provenance":"source"}}