{"id":"CVE-2018-20505","aliases":["AZL-38170","DEBIAN-CVE-2018-20505","EUVD-2018-13059","GHSA-rx75-3g2g-6hp5","UBUNTU-CVE-2018-20505","USN-4019-1"],"status":"published","title":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote...","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.06895,"percentile":0.94121,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2019-04-03T00:00:00Z","modified":"2026-10-24T10:30:37Z","fixes":[{"ecosystem":"Azure Linux:3","package":"ceph","fixed_in":["18.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"sqlite3","fixed_in":["3.25.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sqlite3","fixed_in":["3.25.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sqlite3","fixed_in":["3.25.3-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","fixed_in":["3.22.0-1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"ceph","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.3-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.1"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.0-1ubuntu1.2"}]}],"versions":["3.8.11.1-1","3.9.1-2","3.9.2-1","3.10.0-1","3.10.1-1","3.10.2-1","3.11.0-1ubuntu1","3.11.0-1ubuntu1.1"],"bundled":12},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.1"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1"],"bundled":12}],"products":[{"vendor":"apple","product":"icloud"},{"vendor":"apple","product":"iphone_os"},{"vendor":"apple","product":"itunes"},{"vendor":"apple","product":"mac_os_x"},{"vendor":"apple","product":"watchos"},{"vendor":"sqlite","product":"sqlite"}],"references":[{"url":"http://seclists.org/fulldisclosure/2019/Jan/62","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://seclists.org/fulldisclosure/2019/Jan/64","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://seclists.org/fulldisclosure/2019/Jan/66","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://seclists.org/fulldisclosure/2019/Jan/67","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://seclists.org/fulldisclosure/2019/Jan/68","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://seclists.org/fulldisclosure/2019/Jan/69","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://www.securityfocus.com/bid/106698","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://seclists.org/bugtraq/2019/Jan/28","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/bugtraq/2019/Jan/29","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/bugtraq/2019/Jan/31","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/bugtraq/2019/Jan/32","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/bugtraq/2019/Jan/33","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/bugtraq/2019/Jan/39","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209443","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209446","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209447","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209448","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209450","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://support.apple.com/kb/HT209451","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://sqlite.org/src/info/1a84668dcfdebaf12415d","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","evidence","report"]},{"url":"https://security.netapp.com/advisory/ntap-20190502-0004/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://usn.ubuntu.com/4019-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20505","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rx75-3g2g-6hp5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20505","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20505","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4019-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20505","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6153","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-2518","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-2519","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-2520","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-10989","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13685","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-20346","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-20506","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-8457","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-9936","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-9937","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-20505","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T17:51:41Z","modified":"2024-08-05T12:05:17.435Z","updated_at":"2026-11-02T14:34:59.872731Z"}],"euvd":[{"id":"EUVD-2018-13059","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T17:51:41Z","modified":"2024-08-05T12:05:17Z","updated_at":"2026-11-03T02:39:30.323824Z"}],"ghsa":[{"id":"GHSA-rx75-3g2g-6hp5","title":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote...","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2022-05-14T00:57:51Z","modified":"2023-02-02T05:02:40Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:51:29.373702Z"}],"nvd":[{"id":"CVE-2018-20505","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T18:29:00.673Z","modified":"2026-06-17T01:52:59.36Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:04:55.136632Z"}],"osv":[{"id":"AZL-38170","title":"CVE-2018-20505 affecting package ceph for versions less than 18.2.1-1","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T18:29:00Z","modified":"2026-04-21T04:53:21.215829Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:04.608733Z"},{"id":"CVE-2018-20505","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T18:29:00.673Z","modified":"2026-10-24T10:30:37.445768535Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-CVE-2018-20505","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T18:29:00.673Z","modified":"2026-10-23T18:03:56.632391178Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.57382Z"},{"id":"UBUNTU-CVE-2018-20505","description":"SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).","status":"published","published":"2019-04-03T00:00:00Z","modified":"2026-04-22T11:52:49.051355Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"USN-4019-1","title":"sqlite3 vulnerabilities","description":"It was discovered that SQLite incorrectly handled certain SQL files.\nAn attacker could possibly use this issue to execute arbitrary code\nor cause a denial of service. This issue only affected Ubuntu 16.04\nLTS. (CVE-2017-2518, CVE-2017-2520)\n\nIt was discovered that SQLite incorrectly handled certain queries.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 18.04 LTS and Ubuntu 18.10. (CVE-2018-20505)\n\nIt was discovered that SQLite incorrectly handled certain queries.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and\nUbuntu 18.10. (CVE-2018-20346, CVE-2018-20506)\n\nIt was discovered that SQLite incorrectly handled certain inputs.\nAn attacker could possibly use this issue to access sensitive information.\n(CVE-2019-8457)\n\nIt was discovered that SQLite incorrectly handled certain queries.\nAn attacker could possibly use this issue to access sensitive information.\nThis issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 18.10.\n(CVE-2019-9936)\n\nIt was discovered that SQLite incorrectly handled certain inputs.\nAn attacker could possibly use this issue to cause a crash or execute\narbitrary code. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS\nand Ubuntu 18.10. (CVE-2019-9937)\n\nIt was discovered that SQLite incorrectly handled certain inputs.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 16.04 LTS. (CVE-2016-6153)\n\nIt was discovered that SQLite incorrectly handled certain databases.\nAn attacker could possibly use this issue to access sensitive information.\nThis issue only affected Ubuntu 16.04 LTS. (CVE-2017-10989)\n\nIt was discovered that SQLite incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 16.04 LTS. (CVE-2017-13685)\n\nIt was discovered that SQLite incorrectly handled certain queries.\nAn attacker could possibly use this issue to execute arbitrary code or\ncause a denial of service. This issue only affected Ubuntu 16.04 LTS.\n(CVE-2017-2519)\n","status":"published","published":"2019-06-19T15:32:19Z","modified":"2026-04-27T15:33:01.614694005Z","updated_at":"2026-11-02T16:58:14.019824Z"}]}}
