{"schemaVersion":3,"id":"CVE-2022-21664","aliases":["UBUNTU-CVE-2022-21664","DEBIAN-CVE-2022-21664"],"status":"published","duplicateOf":null,"title":null,"description":"WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Due to lack of proper sanitization in one of the classes, there's potential for unintended SQL queries to be executed. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 4.1.34. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this issue.","dates":{"published":"2022-01-06T22:55:09.000Z","modified":"2025-04-23T19:14:29.628Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03752,"percentile":0.89756,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03752},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03752,"percentile":0.89756}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03752,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03752,"percentile":0.89756}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"debian","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/wordpress","purlType":"deb","versions":[{"text":"< 5.8.3+dfsg1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.8.3+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},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0 | 11.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":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"wordpress","product":"wordpress","name":"WordPress","label":"wordpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1, < 4.1.34","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.2, < 4.2.31 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.3, < 4.3.27 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.4, < 4.4.26 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.5, < 4.5.25 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.6, < 4.6.22 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.7, < 4.7.22 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.8, < 4.8.18 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 4.9, < 4.9.19 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.0, < 5.0.15 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.1, < 5.1.12 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.2, < 5.2.14 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.3, < 5.3.11 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.4, < 5.4.9 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.5, < 5.5.8 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.6, < 5.6.7 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.7, < 5.7.5 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"},{"text":"≥ 5.8, < 5.8.3 (fixed in 4.1.34)","noFixRecorded":false,"fixedIn":"4.1.34"}],"versionsText":"≥ 4.1, < 4.1.34 | ≥ 4.2, < 4.2.31 (fixed in 4.1.34) | ≥ 4.3, < 4.3.27 (fixed in 4.1.34) | ≥ 4.4, < 4.4.26 (fixed in 4.1.34) | ≥ 4.5, < 4.5.25 (fixed in 4.1.34) | ≥ 4.6, < 4.6.22 (fixed in 4.1.34) | ≥ 4.7, < 4.7.22 (fixed in 4.1.34) | ≥ 4.8, < 4.8.18 (fixed in 4.1.34) | ≥ 4.9, < 4.9.19 (fixed in 4.1.34) | ≥ 5.0, < 5.0.15 (fixed in 4.1.34) | ≥ 5.1, < 5.1.12 (fixed in 4.1.34) | ≥ 5.2, < 5.2.14 (fixed in 4.1.34) | ≥ 5.3, < 5.3.11 (fixed in 4.1.34) | ≥ 5.4, < 5.4.9 (fixed in 4.1.34) | ≥ 5.5, < 5.5.8 (fixed in 4.1.34) | ≥ 5.6, < 5.6.7 (fixed in 4.1.34) | ≥ 5.7, < 5.7.5 (fixed in 4.1.34) | ≥ 5.8, < 5.8.3 (fixed in 4.1.34)","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.8.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.8.3","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":"≥ 4.1.33, < 5.8.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.33, < 5.8.3","eol":null,"hubHref":"/vendor/wordpress/wordpress-develop"}],"affectedCount":7,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/","label":"wordpress.org/news/2022/01/wordpress-5-8-3-security-release/","hostname":"wordpress.org","tags":["X Refsource MISC","REPORT","Release Notes","Vendor Advisory"]},{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-jp3p-gw8h-6x86","label":"github.com/WordPress/wordpress-develop/security/advisories/GHSA-jp3p-gw8h-6x86","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://github.com/WordPress/wordpress-develop/commit/c09ccfbc547d75b392dbccc1ef0b4442ccd3c957","label":"github.com/WordPress/wordpress-develop/commit/c09ccfbc547d75b392dbccc1ef0b4442ccd3c957","hostname":"github.com","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5039","label":"www.debian.org/security/2022/dsa-5039","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","REPORT","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html","label":"lists.debian.org/debian-lts-announce/2022/01/msg00019.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-21664","label":"ubuntu.com/security/CVE-2022-21664","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21664","label":"www.cve.org/CVERecord?id=CVE-2022-21664","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-21664","label":"security-tracker.debian.org/tracker/CVE-2022-21664","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/0114f098-713d-4eef-8643-901f607375de","label":"www.wordfence.com/threat-intel/vulnerabilities/id/0114f098-713d-4eef-8643-901f607375de","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2884-1","DSA-5039-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-01-06T22:55:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T19:14:29.628Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:34:51.520Z","stale":false,"partial":false}}