Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3119

Zetetic SQLCipher 4.x before 4.4.3 has a NULL pointer dereferencing issue related to sqlcipher_export in crypto.c and sqlite3StrICmp in sqlite3.c. This may allow an attacker to perform a remote denial of service attack. For example, an SQL injection can be used to execute the crafted SQL command sequence, which causes a segmentation fault.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3119
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:43 UTC · Revision 1

Source evidence

CVE-2021-3119

core-osv · Original source

Published 25 Mar 2021, 23:15 UTC

Zetetic SQLCipher 4.x before 4.4.3 has a NULL pointer dereferencing issue related to sqlcipher_export in crypto.c and sqlite3StrICmp in sqlite3.c. This may allow an attacker to perform a remote denial of service attack. For example, an SQL injection can be used to execute the crafted SQL command sequence, which causes a segmentation fault.

osv:CVE-2021-3119
Complete source record
{
  "id": "2eb36f3ceaf9c67527a4f8a9aa3514a7119a9a8648ea00024e5367d78c351089",
  "url": "https://osv.dev/vulnerability/CVE-2021-3119",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3119",
    "summary": "Zetetic SQLCipher 4.x before 4.4.3 has a NULL pointer dereferencing issue related to sqlcipher_export in crypto.c and sqlite3StrICmp in sqlite3.c. This may allow an attacker to perform a remote denial of service attack. For example, an SQL injection can be used to execute the crafted SQL command sequence, which causes a segmentation fault.",
    "evidence": "osv:CVE-2021-3119",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-3119",
      "aliases": [
        "CVE-2021-3119"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sqlcipher/sqlcipher",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5e991ea68690b8842c47d27bfc7b31e5641b11c4"
                },
                {
                  "fixed": "0663d8500204e14bd2bb0ca25162d91e4555528d"
                },
                {
                  "fixed": "cb71f53e8cea4802509f182fa5bead0ac6ab0e7f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:zetetic:sqlcipher:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0"
                      },
                      {
                        "fixed": "4.4.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "cb71f53e8cea4802509f182fa5bead0ac6ab0e7f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.1",
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3119.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-3119-231b5478",
                "digest": {
                  "length": 3304,
                  "function_hash": "122904592483707979833599660455540341101"
                },
                "source": "https://github.com/sqlcipher/sqlcipher/commit/cb71f53e8cea4802509f182fa5bead0ac6ab0e7f",
                "target": {
                  "file": "src/crypto.c",
                  "function": "sqlcipher_exportFunc"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-3119-8e498fa8",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92679572688087267758292628190862583692",
                    "325443549466430923752903565462461062814",
                    "165346396258830426250077782483233570048",
                    "276657461895462835585498397849336397285",
                    "42902802685709965109510808350114232897",
                    "90727149990111638663453938265938693969",
                    "97578682456010119313916029732905392810"
                  ]
                },
                "source": "https://github.com/sqlcipher/sqlcipher/commit/cb71f53e8cea4802509f182fa5bead0ac6ab0e7f",
                "target": {
                  "file": "src/crypto.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:22:38Z"
          }
        }
      ],
      "modified": "2026-10-20T14:22:38.083044776Z",
      "provider": "osv",
      "references": [
        "https://github.com/sqlcipher/sqlcipher/commit/cb71f53e8cea4802509f182fa5bead0ac6ab0e7f#diff-9305215a9a0ea69300281fc4af90bc7f3437e34a0e1745d030213152993ddae4",
        "https://www.telekom.com/resource/blob/621186/3fb50ca7a4a97728be18717ed7b0062c/dl-210308-critical-dos-vulnerability-in-sqlcipher-sql-command-processing-data.pdf"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3119",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388849,
  "published_at": "2021-03-25T23:15:13.257+00:00"
}