CVE-2025-47736: Libsql sqlite3 parser Libsql-sqlite3-parser Crash Due To Invalid Vulnerability

LOW
Advisory Identifier: GHSA-8m95-fffc-h4c5
CVSS 2.9
CWE-228
Published
Advisory Summary

CVE-2025-47736 is a LOW (CVSS 2.9) libsql-sqlite3-parser crash due to invalid vulnerability (CWE-228: Improper Handling of Syntactically Invalid Structure) affecting Libsql sqlite3 parser libraries in the crates.io ecosystem. The issue involves libsql-sqlite3-parser crash due to invalid utf-8 input. Remediation is available in the latest vendor maintenance releases.

CVE-2025-47736 at a Glance

CVE Identifier CVE-2025-47736
GHSA Identifier GHSA-8m95-fffc-h4c5
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-228: Improper Handling of Syntactically Invalid Structure
Affected Product Libsql sqlite3 parser
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-47736

To remediate this vulnerability, upgrade all affected Libsql sqlite3 parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

libsql-sqlite3-parser fixed: Latest secure release
Upgrade libsql-sqlite3-parser to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for libsql-sqlite3-parser

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-47736, inspect your project dependencies for Libsql sqlite3 parser:

inspect dependencies for libsql-sqlite3-parser

Analyze the terminal output to locate any version of Libsql sqlite3 parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-228: Improper Handling of Syntactically Invalid Structure, where the product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification. In Libsql sqlite3 parser, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

dialect/mod.rs in the libsql-sqlite3-parser crate through 0.13.0 before 14f422a for Rust can crash if the input is not valid UTF-8.

CVE-2025-47736 Affected Libsql sqlite3 parser Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
libsql-sqlite3-parser
crates.io
≤ 0.13.0

References

Frequently Asked Questions

What is CVE-2025-47736?
CVE-2025-47736 is a security vulnerability in Libsql sqlite3 parser involving libsql-sqlite3-parser crash due to invalid UTF-8 input under CWE-228: Improper Handling of Syntactically Invalid Structure.
Which Libsql sqlite3 parser versions are affected?
Affected versions include releases prior to current release patches across affected packages: libsql-sqlite3-parser.
What version fixes CVE-2025-47736?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is libsql-sqlite3-parser affected?
Yes, libsql-sqlite3-parser is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-47736?
CVE-2025-47736 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-47736?
CVE-2025-47736 is classified under CWE-228: Improper Handling of Syntactically Invalid Structure (The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.).
How can I check crates.io dependencies for CVE-2025-47736?
Run the dependency tree command: 'inspect dependencies for libsql-sqlite3-parser'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8m95-fffc-h4c5",
  "modified" : "2025-05-09T15:53:43Z",
  "published" : "2025-05-09T06:32:36Z",
  "aliases" : [ "CVE-2025-47736" ],
  "summary" : "libsql-sqlite3-parser crash due to invalid UTF-8 input",
  "details" : "dialect/mod.rs in the libsql-sqlite3-parser crate through 0.13.0 before 14f422a for Rust can crash if the input is not valid UTF-8.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libsql-sqlite3-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47736"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gwenn/lemon-rs/issues/86"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tursodatabase/libsql/issues/2052"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gwenn/lemon-rs/pull/8"
  }, {
    "type" : "WEB",
    "url" : "https://crates.io/crates/libsql-sqlite3-parser"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-228" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-09T15:53:43Z",
    "nvd_published_at" : "2025-05-09T05:15:51Z"
  }
}