{"schemaVersion":3,"id":"CVE-2021-29447","aliases":["UBUNTU-CVE-2021-29447","DEBIAN-CVE-2021-29447"],"status":"published","duplicateOf":null,"title":null,"description":"Wordpress is an open source CMS. A user with the ability to upload files (like an Author) can exploit an XML parsing issue in the Media Library leading to XXE attacks. This requires WordPress installation to be using PHP 8. Access to internal files is possible in a successful XXE attack. This has been patched in WordPress version 5.7.1, along with the older affected versions via a minor release. We strongly recommend you keep auto-updates enabled.","dates":{"published":"2021-04-15T21:10:12.000Z","modified":"2024-08-03T22:02:51.924Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.85719,"percentile":0.99727,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.85719},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.85719,"percentile":0.99727}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.85719,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.85719,"percentile":0.99727}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_C7F0570A7F2BAD91","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/164198/WordPress-5.7-Media-Library-XML-Injection.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_4D94A0F728F118D3","name":"Exploit Reference (blog.sonarsource.com)","source":"reference","url":"https://blog.sonarsource.com/wordpress-xxe-security-vulnerability/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"50304","name":"WordPress 5.7 - 'Media Library' XML External Entity Injection (XXE) (Authenticated)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50304","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/50304.sh","codes":["CVE-2021-29447"]},"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference","description":"The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/611.html"}],"affected":[{"vendor":"debian","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/wordpress","purlType":"deb","versions":[{"text":"< 5.7.1+dfsg1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.7.1+dfsg1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/wordpress","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"wordpress","product":"wordpress","name":"WordPress","label":"wordpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.7, < 4.7.20","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 4.8, < 4.8.16 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 4.9, < 4.9.17 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.0, < 5.0.12 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.1, < 5.1.9 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.2, < 5.2.10 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.3, < 5.3.7 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.4, < 5.4.5 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.5, < 5.5.4 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.6, < 5.6.3 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"},{"text":"≥ 5.7, < 5.7.1 (fixed in 4.7.20)","noFixRecorded":false,"fixedIn":"4.7.20"}],"versionsText":"≥ 4.7, < 4.7.20 | ≥ 4.8, < 4.8.16 (fixed in 4.7.20) | ≥ 4.9, < 4.9.17 (fixed in 4.7.20) | ≥ 5.0, < 5.0.12 (fixed in 4.7.20) | ≥ 5.1, < 5.1.9 (fixed in 4.7.20) | ≥ 5.2, < 5.2.10 (fixed in 4.7.20) | ≥ 5.3, < 5.3.7 (fixed in 4.7.20) | ≥ 5.4, < 5.4.5 (fixed in 4.7.20) | ≥ 5.5, < 5.5.4 (fixed in 4.7.20) | ≥ 5.6, < 5.6.3 (fixed in 4.7.20) | ≥ 5.7, < 5.7.1 (fixed in 4.7.20)","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"wordpress","label":"WordPress","category":"server-app"}},"hubHref":null},{"vendor":"wordpress","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.6.0, < 5.7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.6.0, < 5.7.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"wordpress","label":"WordPress","category":"server-app"}},"hubHref":"/vendor/wordpress/wordpress"},{"vendor":"wordpress","product":"wordpress-develop","name":"wordpress-develop","label":"wordpress-develop","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.6.0, < 5.7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.6.0, < 5.7.1","eol":null,"hubHref":"/vendor/wordpress/wordpress-develop"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-rv47-pc52-qrhh","label":"github.com/WordPress/wordpress-develop/security/advisories/GHSA-rv47-pc52-qrhh","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://wordpress.org/news/category/security/","label":"wordpress.org/news/category/security/","hostname":"wordpress.org","tags":["X Refsource MISC","REPORT","Release Notes","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00017.html","label":"lists.debian.org/debian-lts-announce/2021/04/msg00017.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4896","label":"www.debian.org/security/2021/dsa-4896","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/163148/XML-External-Entity-Via-MP3-File-Upload-On-WordPress.html","label":"packetstormsecurity.com/files/163148/XML-External-Entity-Via-MP3-File-Upload-On-WordPress.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/164198/WordPress-5.7-Media-Library-XML-Injection.html","label":"packetstormsecurity.com/files/164198/WordPress-5.7-Media-Library-XML-Injection.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://blog.sonarsource.com/wordpress-xxe-security-vulnerability/","label":"blog.sonarsource.com/wordpress-xxe-security-vulnerability/","hostname":"blog.sonarsource.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-29447","label":"ubuntu.com/security/CVE-2021-29447","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29447","label":"www.cve.org/CVERecord?id=CVE-2021-29447","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29447","label":"security-tracker.debian.org/tracker/CVE-2021-29447","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/9df45c8e-c040-4031-9c51-4c43d12f08b0","label":"www.wordfence.com/threat-intel/vulnerabilities/id/9df45c8e-c040-4031-9c51-4c43d12f08b0","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2630-1","DSA-4896-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-04-15T21:10:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T22:02:51.924Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":56,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T09:52:41.307Z","stale":false,"partial":false}}