{"id":"CVE-2019-9787","aliases":["DEBIAN-CVE-2019-9787","DLA-1742-1","EUVD-2019-19149","GHSA-vqp9-3cmr-vgcc","UBUNTU-CVE-2019-9787"],"status":"published","title":"WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution...","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.38557,"percentile":0.98585,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-352"],"published":"2019-03-14T16:00:00Z","modified":"2026-10-24T10:49:55Z","exploits":[{"source":"pocgithub","id":"rkatogit/cve-2019-9787_csrf_poc","title":"rkatogit/cve-2019-9787_csrf_poc","date":"2019-04-15","url":"https://github.com/rkatogit/cve-2019-9787_csrf_poc"},{"source":"pocgithub","id":"PalmTreeForest/CodePath_Week_7-8","title":"PalmTreeForest/CodePath_Week_7-8","date":"2019-08-18","url":"https://github.com/PalmTreeForest/CodePath_Week_7-8"},{"source":"pocgithub","id":"sijiahi/Wordpress_cve-2019-9787_defense","title":"sijiahi/Wordpress_cve-2019-9787_defense","date":"2020-05-01","url":"https://github.com/sijiahi/Wordpress_cve-2019-9787_defense"},{"source":"pocgithub","id":"matinciel/Wordpress_CVE-2019-9787","title":"matinciel/Wordpress_CVE-2019-9787","date":"2020-05-19","url":"https://github.com/matinciel/Wordpress_CVE-2019-9787"},{"source":"pocgithub","id":"dexXxed/CVE-2019-9787","title":"dexXxed/CVE-2019-9787","date":"2021-06-29","url":"https://github.com/dexXxed/CVE-2019-9787"},{"source":"pocgithub","id":"kuangting4231/mitigation-cve-2019-9787","title":"kuangting4231/mitigation-cve-2019-9787","date":"2022-04-30","url":"https://github.com/kuangting4231/mitigation-cve-2019-9787"}],"fixes":[{"ecosystem":"Debian:12","package":"wordpress","fixed_in":["5.1.1+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"wordpress","fixed_in":["5.1.1+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"wordpress","fixed_in":["5.1.1+dfsg1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.26+dfsg-1+deb8u1"}]}],"versions":["4.1+dfsg-1","4.1+dfsg-1+deb8u1","4.1+dfsg-1+deb8u10","4.1+dfsg-1+deb8u11","4.1+dfsg-1+deb8u12","4.1+dfsg-1+deb8u13","4.1+dfsg-1+deb8u14","4.1+dfsg-1+deb8u15","4.1+dfsg-1+deb8u16","4.1+dfsg-1+deb8u17","4.1+dfsg-1+deb8u18","4.1+dfsg-1+deb8u2","4.1+dfsg-1+deb8u3","4.1+dfsg-1+deb8u4","4.1+dfsg-1+deb8u5","4.1+dfsg-1+deb8u6","4.1+dfsg-1+deb8u7","4.1+dfsg-1+deb8u8","4.1+dfsg-1+deb8u9","4.1.1+dfsg-1","4.1.25+dfsg-1+deb8u1"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"]}],"products":[{"vendor":"wordpress","product":"wordpress"}],"references":[{"url":"https://blog.ripstech.com/2019/wordpress-csrf-to-rce/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","report"]},{"url":"https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://wpvulndb.com/vulnerabilities/9230","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/107411","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://wordpress.org/support/wordpress-version/version-5-1-1/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://www.debian.org/security/2020/dsa-4677","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9787"},{"url":"https://github.com/advisories/GHSA-vqp9-3cmr-vgcc"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-9787","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-9787","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-9787","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-9787","description":"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.","status":"published","published":"2019-03-14T16:00:00Z","modified":"2024-08-04T22:01:54.717Z","updated_at":"2026-11-02T14:20:20.081405Z"}],"euvd":[{"id":"EUVD-2019-19149","description":"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.","status":"published","published":"2019-03-14T16:00:00Z","modified":"2024-08-04T22:01:54Z","updated_at":"2026-11-03T02:40:55.125862Z"}],"ghsa":[{"id":"GHSA-vqp9-3cmr-vgcc","title":"WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution...","description":"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.","status":"published","published":"2022-05-14T01:14:32Z","modified":"2023-02-02T05:03:31Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:51:39.380797Z"}],"nvd":[{"id":"CVE-2019-9787","description":"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.","status":"published","published":"2019-03-14T16:29:00.337Z","modified":"2026-06-17T02:44:20.553Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:05:07.268578Z"}],"osv":[{"id":"CVE-2019-9787","description":"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.","status":"published","published":"2019-03-14T16:29:00.337Z","modified":"2026-10-24T10:49:55.964922953Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:13.492058Z"},{"id":"DEBIAN-CVE-2019-9787","description":"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.","status":"published","published":"2019-03-14T16:29:00.337Z","modified":"2026-09-21T07:03:26.558371319Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:32.57265Z"},{"id":"UBUNTU-CVE-2019-9787","description":"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.","status":"published","published":"2019-03-14T16:29:00Z","modified":"2025-10-24T04:47:34Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:22.212782Z"},{"id":"DLA-1742-1","title":"wordpress - security update","status":"published","published":"2019-04-01T00:00:00Z","modified":"2026-03-09T01:20:12.362406Z","updated_at":"2026-11-02T15:46:09.777694Z"}]}}
