{"schemaVersion":3,"id":"CVE-2021-31239","aliases":["UBUNTU-CVE-2021-31239","DEBIAN-CVE-2021-31239"],"status":"published","duplicateOf":null,"title":null,"description":"An issue found in SQLite SQLite3 v.3.35.4 that allows a remote attacker to cause a denial of service via the appendvfs.c function.","dates":{"published":"2023-05-09T00:00:00.000Z","modified":"2026-10-14T11:39:34.725Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02447,"percentile":0.84136,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.28699999999999976,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0216},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02447,"percentile":0.84136}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0216,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02447,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02447,"percentile":0.84136}]},"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":"GITHUB_TSIMING_VULNERABILITIES","name":"Vulnerabilities","source":"github","url":"https://github.com/Tsiming/Vulnerabilities/blob/main/SQLite/CVE-2021-31239","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"sqlite3","name":"sqlite3","label":"sqlite3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/sqlite3","purlType":"deb","versions":[{"text":"< 3.36.0-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.36.0-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"sqlite3","name":"sqlite3","label":"sqlite3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/sqlite3","purlType":"deb","versions":[{"text":"< 3.37.2-2ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.37.2-2ubuntu0.1","eol":null,"hubHref":null},{"vendor":"sqlite","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.35.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.35.4","eol":{"isEol":false,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"3","label":"3","eolFrom":null,"isLts":false,"isMaintained":true,"latestVersion":"3.54.1"},"product":{"name":"sqlite","label":"SQLite","category":"database"}},"hubHref":"/vendor/sqlite/sqlite"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.sqlite.org/cves.html","label":"www.sqlite.org/cves.html","hostname":"www.sqlite.org","tags":["REPORT","Vendor Advisory"]},{"url":"https://www.sqlite.org/forum/forumpost/d9fce1a89b","label":"www.sqlite.org/forum/forumpost/d9fce1a89b","hostname":"www.sqlite.org","tags":["REPORT","Mitigation"]},{"url":"https://github.com/Tsiming/Vulnerabilities/blob/main/SQLite/CVE-2021-31239","label":"github.com/Tsiming/Vulnerabilities/blob/main/SQLite/CVE-2021-31239","hostname":"github.com","tags":["REPORT","Exploit","Patch"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/73XUIHJ6UT75VFPDPLJOXJON7MVIKVZI/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FXFL4TDAH72PRCPD5UPZMJMKIMVOPLTI/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230609-0010/","label":"security.netapp.com/advisory/ntap-20230609-0010/","hostname":"security.netapp.com","tags":[]},{"url":"https://security.gentoo.org/glsa/202311-03","label":"security.gentoo.org/glsa/202311-03","hostname":"security.gentoo.org","tags":["Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-31239","label":"ubuntu.com/security/CVE-2021-31239","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31239","label":"www.cve.org/CVERecord?id=CVE-2021-31239","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31239","label":"security-tracker.debian.org/tracker/CVE-2021-31239","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-472630.html","label":"cert-portal.siemens.com/productcert/html/ssa-472630.html","hostname":"cert-portal.siemens.com","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-05-09T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T11:39:34.725Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:16:35.942Z","stale":false,"partial":false}}