Skip to content
Heist/ feed
Back to feed
HighFix available

sqlite — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2018-20346

SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries that occur after crafted changes to FTS3 shadow tables, allowing remote attackers to execute arbitrary code by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases), aka Magellan.

Products
sqlite
Affected versions
Not specified
Fixed versions
3.25.3-r0
CVEs
CVE-2018-20346
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:15 UTC · Revision 1

Source evidence

ALPINE-CVE-2018-20346

core-osv · Original source

Published 21 Dec 2018, 21:29 UTC

SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries that occur after crafted changes to FTS3 shadow tables, allowing remote attackers to execute arbitrary code by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases), aka Magellan.

osv:ALPINE-CVE-2018-20346

sqlite

Fixed versions: 3.25.3-r0

sqlite

Fixed versions: 3.25.3-r0

sqlite

Fixed versions: 3.25.3-r0

Complete source record
{
  "id": "81662bd8e9289f66673b193bbf701a5348603cd5f8a76f699210fca28db66e91",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2018-20346",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2018-20346",
    "summary": "SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries that occur after crafted changes to FTS3 shadow tables, allowing remote attackers to execute arbitrary code by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases), aka Magellan.",
    "evidence": "osv:ALPINE-CVE-2018-20346",
    "products": [
      {
        "name": {
          "value": "sqlite",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.25.3-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sqlite",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.25.3-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sqlite",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.25.3-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2018-20346",
      "aliases": [
        "ALPINE-CVE-2018-20346"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.25.3-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "sqlite",
            "purl": "pkg:apk/alpine/sqlite?arch=source",
            "ecosystem": "Alpine:v3.6"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20346.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.25.3-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "sqlite",
            "purl": "pkg:apk/alpine/sqlite?arch=source",
            "ecosystem": "Alpine:v3.7"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20346.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.25.3-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "sqlite",
            "purl": "pkg:apk/alpine/sqlite?arch=source",
            "ecosystem": "Alpine:v3.8"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20346.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:24:38.199460657Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-20346"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2018-20346"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-20346",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 416095,
  "published_at": "2018-12-21T21:29:00.243+00:00"
}