{"id":"CVE-2024-31210","summary":"PHP file upload bypass via Plugin installer","details":"WordPress is an open publishing platform for the Web. It's possible for a file of a type other than a zip file to be submitted as a new plugin by an administrative user on the Plugins -\u003e Add New -\u003e Upload Plugin screen in WordPress. If FTP credentials are requested for installation (in order to move the file into place outside of the `uploads` directory) then the uploaded file remains temporary available in the Media Library despite it not being allowed. If the `DISALLOW_FILE_EDIT` constant is set to `true` on the site _and_ FTP credentials are required when uploading a new theme or plugin, then this technically allows an RCE when the user would otherwise have no means of executing arbitrary PHP code. This issue _only_ affects Administrator level users on single site installations, and Super Admin level users on Multisite installations where it's otherwise expected that the user does not have permission to upload or execute arbitrary PHP code. Lower level users are not affected. Sites where the `DISALLOW_FILE_MODS` constant is set to `true` are not affected. Sites where an administrative user either does not need to enter FTP credentials or they have access to the valid FTP credentials, are not affected. The issue was fixed in WordPress 6.4.3 on January 30, 2024 and backported to versions 6.3.3, 6.2.4, 6.1.5, 6.0.7, 5.9.9, 5.8.9, 5.7.11, 5.6.13, 5.5.14, 5.4.15, 5.3.17, 5.2.20, 5.1.18, 5.0.21, 4.9.25, 2.8.24, 4.7.28, 4.6.28, 4.5.31, 4.4.32, 4.3.33, 4.2.37, and 4.1.40. A workaround is available. If the `DISALLOW_FILE_MODS` constant is defined as `true` then it will not be possible for any user to upload a plugin and therefore this issue will not be exploitable.\n","aliases":["BIT-wordpress-2024-31210","BIT-wordpress-multisite-2024-31210","GHSA-x79f-xrjv-jx5r"],"modified":"2026-11-08T02:47:22.074696597Z","published":"2024-04-04T22:59:28.955Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-434"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31210.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31210.json"},{"type":"ADVISORY","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-x79f-xrjv-jx5r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31210"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress","events":[{"introduced":"0"},{"fixed":"7354bd6a934b98c59ba118e23c9e0ed4a3285411"},{"fixed":"d86d26bd27cc6bee1797fa7b4cd11f62a9d7c42c"},{"introduced":"87bf150016e042bc3e21f2f1cb9de44042b8cdb1"},{"fixed":"c3679bda80b5cc9bc725af01a7166de9b61bbe2f"},{"introduced":"b57f3aa5f00a127f209eff74b78787dd3fd5ed4d"},{"fixed":"3b514bb4e26a3c2462325709f61ad079484e96dd"},{"introduced":"f6a29831c76d2dbe82e9ae673539f910654c58a4"},{"fixed":"f64d8ee9fe2c3ff0da5957ca8306f321ba3a055e"},{"introduced":"e3aafee3f2bc07e09bf79389f20ea3db731466c3"},{"fixed":"9b36cf6e1af4aff499d246c2c6b40e106ef941c2"},{"introduced":"fe47e6139dbfc0f0c9ce0d79da77926b5fceaa77"},{"fixed":"2f9b3d1f69887ae7fa0dfaf3700d08dbd49adf9b"},{"introduced":"14247ee4302378d292863865c643abe99bbfe3c7"},{"fixed":"c56ca940574e09e24a673fe216d2d2f59e022aa5"},{"introduced":"06fa4161aa74619239cf27017d124081c825684a"},{"fixed":"c57e263526f6d6badb53de350d14653eab17394c"},{"introduced":"29ffbff370968ae48a1b7a34e35c8b8e75cf0f91"},{"fixed":"d3f20e69ea69f85a367dda63b79b5d936179c8b5"},{"introduced":"491c67be12ca8a9fe37ae38307ba7e298c976ec3"},{"fixed":"a3f765816ea8c8b0b744637c504ac68d83e688e9"},{"introduced":"c33464a4554cff8a082bc353d9226d8104b80d2b"},{"fixed":"9f49ec5b1f62982a6512022f484fdfb9211e96b7"},{"introduced":"6fe64752be3260f2a47f38e68c2cb77400e5a0c9"},{"fixed":"3506bfe7d5abbb8facd0b80f50fe2e90e22f192a"},{"introduced":"50dc0ca5bb332c895f0f39fe4e6ee1e4a43e06dc"},{"fixed":"55c85787ed665213c0b3db622ce5f8c483a5f44b"},{"introduced":"9ff4499281663b0c772787fd4a60538288f842e9"},{"fixed":"72194ee089516881cbf5e76240bc80ee1fe6651f"},{"introduced":"537fd931bc02e6e934a2d774422b897871aa87ad"},{"fixed":"fe438e99c0ade15bb320b907cd67a61c463c0990"},{"introduced":"965fcddcf68cf4fd122ae24b992e242dfea1d773"},{"fixed":"07e3ba6e6ddf7c2d6db53191be25ca19afb2ce7e"},{"introduced":"058f9903676a7efaee534a682df0a2a8b87574d8"},{"fixed":"86432b70ab0473ba777810bac50a2da45129b391"},{"introduced":"50caeb6e61ad0c49d2c7e1d6d5115047a011f590"},{"fixed":"c3b5c0d129e3dba2b0342a650b23e54b5f469a96"},{"introduced":"73157386d069425c5e6ea7c4fc0122e8a9b58a7b"},{"fixed":"c2b107ebed665f3e5a6dbd2340b2845d2632ad80"},{"introduced":"cc101b64012b16d087780657a2b828ccd7794a63"},{"fixed":"8e188eb150ba5668e5ca42fe599788af2f897c11"},{"introduced":"6c5d5b5dcb9712bfc400b09cb6627e42898527af"},{"fixed":"0829db91f97d7c11e8186761dfcb0ad16dbd0e1f"},{"introduced":"17e2eff4aa3beb2802cbec12b6f08e2fbf69893d"},{"fixed":"6e337fb3bd4d7035dc507df7e5cad477a64e8724"},{"introduced":"ac3899153a790a6f060dc816ff94812e0fd99875"},{"fixed":"3a495a2d71987d21c6eeaa403eb656b7fb785217"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"4.1.40"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"6.4.0"},{"fixed":"6.4.3"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.2"},{"fixed":"4.2.37"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.3"},{"fixed":"4.3.33"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.4"},{"fixed":"4.4.32"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.5"},{"fixed":"4.5.31"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.6"},{"fixed":"4.6.28"}]},{"range":[{"introduced":"4.7"},{"fixed":"4.7.28"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"4.8"},{"fixed":"4.8.24"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.9"},{"fixed":"4.9.25"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.0"},{"fixed":"5.0.21"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.1"},{"fixed":"5.1.18"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.2"},{"fixed":"5.2.20"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.3"},{"fixed":"5.3.17"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.4"},{"fixed":"5.4.15"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.5"},{"fixed":"5.5.14"}]},{"range":[{"introduced":"5.6"},{"fixed":"5.6.13"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.7"},{"fixed":"5.7.11"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.8"},{"fixed":"5.8.9"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.9"},{"fixed":"5.9.9"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.0"},{"fixed":"6.0.7"}]},{"range":[{"introduced":"6.1"},{"fixed":"6.1.5"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.2"},{"fixed":"6.2.4"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.3"},{"fixed":"6.3.3"}]}]}},{"type":"GIT","repo":"https://github.com/wordpress/wordpress-develop","events":[{"introduced":"0"},{"fixed":"04a69861fbf292ee78a5b19a6f641fac67132c39"},{"introduced":"7b07c0ccc7453ce057e009ffa65f12a02ce7d2ee"},{"fixed":"bd46d35819a5e83e045a7fa2562b77ea01ed50bf"},{"introduced":"ec8826ed50f8ce0eea39900eeeba09a9d621f00e"},{"fixed":"ba5e013352c9d64004adaf130ecd69cbf3d5172c"},{"introduced":"b5f6ca5af6e29fe5df7a65d512b177fa465cfa2e"},{"fixed":"ddba33a81bdedcbbcaf15cd45619a334384d4448"},{"introduced":"7acf453090c10537e6f41fc4cf2608d7bbcce8ca"},{"fixed":"1a6e6f7c67ce757c312a308400f3de2f11d39d7f"},{"introduced":"7c76a1b79e21176b176b5b6d6b03151f8eea4b55"},{"fixed":"593d17ec11ee48159d300b6d507b739d67dfaaa7"},{"introduced":"efa83f48bd4ebd066e5efc94b9feefe50e7925a2"},{"fixed":"59501dffb47f27fca93df751fbd1b74906339c84"},{"introduced":"2ac9b801ef5c18accf223b093529dacfcf809133"},{"fixed":"04c277c9a111ab5a2149e49bbcbc85cda6845e04"},{"introduced":"31f7ece8503f0dc6ef1df2473ae3f3d352973e12"},{"fixed":"4732b951abfa838305f464979902fb01634f4afb"},{"introduced":"b3bf6266acd61682bc654845f621b4426645e324"},{"fixed":"15521409abefbfe61293a459bda1a503a8903f02"},{"introduced":"5aa596fee9bf6ea7f0ccc2ed51b16c0f2f04076b"},{"fixed":"e89c717b762dfd136a8407b0bd7503d70cbe81fd"},{"introduced":"1cf3888655c0eb8b0b0539834ad67db5920190d7"},{"fixed":"dad62d94743c6c245bed2e3852b32dc1f271a019"},{"introduced":"d05f0a86b23e37b9d97acd9317ff3fd661d64dea"},{"fixed":"dd4ec85ff4dc17f60d4388beb27e6dbcdaf7a870"},{"introduced":"e0bedd676512ace4c5586337c072037298315f79"},{"fixed":"bf8e482210f9a2f50bd111d5279ce498898af993"},{"introduced":"944a787b8071d3a27f4ac68980c21ed6137db91d"},{"fixed":"6364ea34d0457bb6e0fbe205df83d17180bc5d14"},{"introduced":"96a6969aab5f0b9362cbc984af230bdfc93022e8"},{"fixed":"960904020bce79512be9a64caedcc77c92e4ab65"},{"introduced":"895d6a691d7ccdfe80cdf999bc0c8a78d11ad55a"},{"fixed":"3c767d6867fba173c59c85d9ba72747a30c98d4f"},{"introduced":"4b54a6c2c9a3be775cc6dda66ed207998b068c8f"},{"fixed":"286d1f0b6707331f2a3e31cfcfdeb455e1bc677b"},{"introduced":"b83a8be65054cd890e24c7c1416ebbb39aeb4c09"},{"fixed":"dbd202d31165b6951fb59badd4147f505dd77497"},{"introduced":"1c0a2efa5eac05dfd3b7d2b9cfe68e02da55b966"},{"fixed":"51e1504558785e87360fe93a9178608551960ea1"},{"introduced":"e33c9f3203961a823ec8410fc1481f6c87b4e3db"},{"fixed":"6be383b734be0338e99709c141d5bcd1b9ba33a5"},{"introduced":"b829903bb0104bfeccc7623946a25cb7ccda1dea"},{"fixed":"57a0893fc820b425ba1ebe76e56d67499d0c0614"},{"introduced":"4a6363076129378869f8742ef00a39a7421e6f29"},{"fixed":"efe8c1b9742a9c64bacede0cf135c20e8839d60e"},{"introduced":"82dab16707a0a9af6a9707fed979a559aefdd511"},{"fixed":"9e9559d6d6bd2327dee822c305b2905b65a91ef2"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"4.1.40"}]},{"range":[{"introduced":"4.2"},{"fixed":"4.2.37"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.3"},{"fixed":"4.3.33"}]},{"range":[{"introduced":"4.4"},{"fixed":"4.4.32"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.5"},{"fixed":"4.5.31"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.6"},{"fixed":"4.6.28"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.7"},{"fixed":"4.7.28"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"4.8"},{"fixed":"4.8.24"}],"source":"CPE_RANGE"},{"range":[{"introduced":"4.9"},{"fixed":"4.9.25"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"5.0"},{"fixed":"5.0.21"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.1"},{"fixed":"5.1.18"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.2"},{"fixed":"5.2.20"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.3"},{"fixed":"5.3.17"}],"source":"CPE_RANGE"},{"range":[{"introduced":"5.4"},{"fixed":"5.4.15"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.5"},{"fixed":"5.5.14"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.6"},{"fixed":"5.6.13"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.7"},{"fixed":"5.7.11"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"5.8"},{"fixed":"5.8.9"}],"source":"CPE_RANGE"},{"range":[{"introduced":"5.9"},{"fixed":"5.9.9"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"6.0"},{"fixed":"6.0.7"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.1"},{"fixed":"6.1.5"}]},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.2"},{"fixed":"6.2.4"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.3"},{"fixed":"6.3.3"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","range":[{"introduced":"6.4.0"},{"fixed":"6.4.3"}],"source":"CPE_RANGE"}]}}],"versions":["4.9.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31210.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H"}]}