Integer Overflow or Wraparound Affecting sqlite package, versions [,3.25.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.83% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-SQLITE-2333677
  • published12 Jan 2022
  • disclosed3 Apr 2019
  • creditUnknown

Introduced: 3 Apr 2019

CVE-2018-20506  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade sqlite to version 3.25.3 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries in a "merge" operation that occurs 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). This is a different vulnerability than CVE-2018-20346.

References

CVSS Scores

version 3.1