LiveActive security incident?Get immediate response
CVE Record

CVE-2022-46908: SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly i...

SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctions protection mechanism, and instead allows UDF functions such as WRITEFILE.

HighCVSS 7.3Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This issue affects organizations that trusted SQLite CLI --safe mode to run untrusted scripts. In affected versions through 3.40.0, that safety boundary could still allow prohibited functions such as WRITEFILE, creating confidentiality and integrity risk on the host running the script.

Executive priority

Treat as high priority where SQLite CLI script execution is part of automation, data import, or sandbox workflows. It is less urgent for environments that do not run untrusted scripts through sqlite3 --safe.

Technical view

SQLite through 3.40.0 improperly implemented azProhibitedFunctions in --safe CLI script execution. The source bundle says prohibited UDF functions such as WRITEFILE remained callable. CVSS 3.1 is 7.3 with local access, low complexity, low privileges, and high confidentiality and integrity impact.

Likely exposure

Exposure is most likely where sqlite3 CLI is used with --safe against untrusted or user-supplied SQL scripts. General SQLite library use is not established by the provided sources as affected in the same way.

Exploitation context

The bundle does not show CISA KEV listing or cited evidence of active exploitation. Public discussion and vendor advisories exist, but the available evidence supports potential local misuse, not confirmed in-the-wild exploitation.

Researcher notes

Focus validation on the CLI trust boundary, not broad SQLite presence. The key condition is reliance on --safe to block prohibited functions. Evidence in the bundle is incomplete on exact patched versions, so defer to vendor advisories.

Mitigation direction

  • Identify sqlite3 CLI versions at or below 3.40.0.
  • Stop relying on --safe for untrusted scripts until vendor guidance is applied.
  • Update SQLite packages through OS, application, or appliance vendor advisories.
  • Restrict who can submit SQL scripts to automation or import workflows.
  • Review NetApp and Gentoo advisories where those ecosystems are present.

Validation and detection

  • Inventory systems invoking sqlite3 with --safe.
  • Check installed SQLite CLI versions against 3.40.0 or earlier.
  • Review automation logs for untrusted SQL script execution paths.
  • Confirm vendor-patched SQLite packages are deployed.
  • Verify controls prevent user-supplied scripts from reaching sqlite3 CLI.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-46908 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.3CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L1.85.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.3High
CVSS 3.1 vector shape for CVE-2022-46908Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.