Skip to main content

CVE-2025-47736: CWE-228 Improper Handling of Syntactically Invalid Structure in gwenn libsql-sqlite3-parser

Low
VulnerabilityCVE-2025-47736cvecve-2025-47736cwe-228
Published: Fri May 09 2025 (05/09/2025, 00:00:00 UTC)
Source: CVE
Vendor/Project: gwenn
Product: libsql-sqlite3-parser

Description

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.

AI-Powered Analysis

AILast updated: 07/05/2025, 02:55:47 UTC

Technical Analysis

CVE-2025-47736 is a vulnerability identified in the libsql-sqlite3-parser crate, a Rust library component used for parsing SQLite3 SQL dialects. The issue resides specifically in the dialect/mod.rs file and affects versions up to 0.13.0 before commit 14f422a. The vulnerability is classified under CWE-228, which pertains to improper handling of syntactically invalid structures. In this case, the parser does not correctly handle input that is not valid UTF-8, leading to a crash condition. This crash results from the parser's inability to process malformed or non-UTF-8 encoded input strings, which can cause denial of service (DoS) by terminating the process using the library. The CVSS 3.1 base score is 2.9, indicating a low severity level. The vector string (AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L) shows that the attack requires local access (AV:L), high attack complexity (AC:H), no privileges (PR:N), no user interaction (UI:N), unchanged scope (S:U), and impacts availability only (A:L) without affecting confidentiality or integrity. There are no known exploits in the wild, and no patches or updates have been linked yet. The vulnerability primarily affects applications that embed this Rust crate for SQL parsing and that might process untrusted or malformed input data encoded in non-UTF-8 formats.

Potential Impact

For European organizations, the impact of this vulnerability is relatively limited due to its low severity and the requirement for local access and high attack complexity. However, any application or service relying on the libsql-sqlite3-parser crate to process SQL queries or data inputs could be susceptible to denial of service if it encounters malformed or non-UTF-8 input. This could lead to service interruptions or crashes, potentially affecting availability of critical systems that depend on this parsing functionality. While confidentiality and integrity are not impacted, availability disruptions could affect business continuity, especially in environments where Rust-based applications are used for database management or embedded SQL parsing. The risk is higher in development or operational environments where input validation is insufficient or where local users or processes could supply crafted inputs. Given the low CVSS score and lack of known exploits, the immediate threat level is low, but organizations should remain vigilant, especially those with Rust-based infrastructure components.

Mitigation Recommendations

To mitigate this vulnerability, European organizations should: 1) Identify all applications and services using the libsql-sqlite3-parser crate, particularly versions up to 0.13.0 before commit 14f422a. 2) Apply any available patches or updates from the vendor or maintainers as soon as they are released. 3) Implement strict input validation and sanitization to ensure that all inputs to the SQL parser are valid UTF-8 encoded strings before processing. 4) Employ runtime monitoring and alerting for unexpected crashes or process terminations related to SQL parsing components. 5) Restrict local access to systems running vulnerable versions to trusted users only, minimizing the risk of local exploitation. 6) Consider using alternative parsing libraries or updated versions that handle invalid UTF-8 inputs gracefully. 7) Conduct code reviews and security testing focusing on input handling and error management in Rust applications using this crate. These steps go beyond generic advice by focusing on Rust-specific and local access considerations, as well as proactive input validation and monitoring.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2025-05-09T00:00:00.000Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d9818c4522896dcbd7af9

Added to database: 5/21/2025, 9:08:40 AM

Last enriched: 7/5/2025, 2:55:47 AM

Last updated: 7/28/2025, 9:27:22 AM

Views: 14

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats