cve.bz

CVE-2025-3277 sqlite sqlite: Year 2038 problem, Y2K38, Y2038, Epochalypse

6.9 mediumEPSS 1.3%Fix available

Medium (6.9) in sqlite sqlite. EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then writes the resulting string to the buffer, it uses the original, untruncated size and thus a wild Heap Buffer overflow of size ~4GB can be triggered. This can result in arbitrary code execution.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-3277 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-3277?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-3277?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-3277 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sqlite:sqlitefrom 3.44.0 before 3.49.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14sqlite33.46.1-3DEBIAN-CVE-2025-3277
Ubuntu20.04:LTSsqlite33.31.1-4ubuntu0.7USN-7528-1
Ubuntu22.04:LTSsqlite33.37.2-2ubuntu0.4USN-7528-1
Ubuntu24.04:LTSsqlite33.45.1-1ubuntu2.3UBUNTU-CVE-2025-3277 USN-7528-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.15.0-1.module+el8.10.0+23068+28ff2340RHSA-2025:4459
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+23068+28ff2340RHSA-2025:4459
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.10.0+23068+28ff2340RHSA-2025:4459
Red Hatenterprise_linux:8::appstreamnpm1:10.9.2-1.22.15.0.1.module+el8.10.0+23068+28ff2340RHSA-2025:4459
Red Hatenterprise_linux:8::appstreamv8-12.4-devel3:12.4.254.21-1.22.15.0.1.module+el8.10.0+23068+28ff2340RHSA-2025:4459
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.15.0-1.module+el9.6.0+23062+9e7801b9RHSA-2025:7433
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.0.1-1.module+el9.6.0+23062+9e7801b9RHSA-2025:7433
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el9.6.0+23062+9e7801b9RHSA-2025:7433
Red Hatenterprise_linux:9::appstreamnpm1:10.9.2-1.22.15.0.1.module+el9.6.0+23062+9e7801b9RHSA-2025:7433
Red Hatenterprise_linux:9::appstreamv8-12.4-devel3:12.4.254.21-1.22.15.0.1.module+el9.6.0+23062+9e7801b9RHSA-2025:7433
Red Hatenterprise_linux:10.0sqlite, sqlite-libs, sqlite-devel and 7 more0:3.46.1-4.el10_0RHSA-2025:7517
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moresqlite33.49.1-150000.3.27.1SUSE-SU-2025:01456-2
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 3 moresqlite33.49.1-150000.3.27.1SUSE-SU-2025:1456-1
SUSELinux Enterprise Module for Basesystem 15 SP7sqlite33.49.1-150000.3.27.1SUSE-SU-2025:01456-1
SUSELinux Enterprise Server 12 SP5-LTSSsqlite33.49.1-9.33.1SUSE-SU-2025:01455-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5sqlite33.49.1-9.33.1SUSE-SU-2025:1455-1
openSUSELeap 15.6sqlite33.49.1-150000.3.27.1SUSE-SU-2025:1456-1
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:22.15.0-1.module_el8.10.0+3986+a908e756ALSA-2025:4459
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.10.0+3983+391a1a04ALSA-2025:4459
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.10.0+3961+6a788e57ALSA-2025:4459
AlmaLinux8npm1:10.9.2-1.22.15.0.1.module_el8.10.0+3986+a908e756ALSA-2025:4459
AlmaLinux8v8-12.4-devel3:12.4.254.21-1.22.15.0.1.module_el8.10.0+3986+a908e756ALSA-2025:4459
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:22.15.0-1.module_el9.6.0+164+2d89b8edALSA-2025:7433
AlmaLinux9nodejs-nodemon3.0.1-1.module_el9.5.0+139+09296491ALSA-2025:7433
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el9.5.0+139+09296491ALSA-2025:7433
AlmaLinux9npm1:10.9.2-1.22.15.0.1.module_el9.6.0+164+2d89b8edALSA-2025:7433
AlmaLinux9v8-12.4-devel3:12.4.254.21-1.22.15.0.1.module_el9.6.0+164+2d89b8edALSA-2025:7433
AlmaLinux10sqlite, sqlite-libs, sqlite-devel3.46.1-4.el10_0ALSA-2025:7517
Rocky Linux8nodejs1:22.15.0-1.module+el8.10.0+1971+0bb08eceRLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1667+4a788d89RLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1823+b5789597RLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1824+532140eeRLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1924+614dc87fRLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1935+d3cbe60fRLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1988+437f3d23RLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1989+e60144d9RLSA-2025:4459
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.9.0+1760+903d54b9RLSA-2025:4459
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2025:4459
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1823+b5789597RLSA-2025:4459
11 more for Rocky Linux in the JSON.
Alpinev3.21sqlite3.48.0-r1ALPINE-CVE-2025-3277
Alpinev3.22, v3.23, v3.24qt6-qtwebengine6.8.2-r4ALPINE-CVE-2025-3277
Alpaquitastreamsqlite3.46.1-r0BELL-CVE-2025-3277
BellSoft Hardened Containersstreamsqlite3.46.1-r0BELL-CVE-2025-3277

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

For Openshift, the bundled sqlite3.c does contain the affected concat_ws function, it is not included in the Rust bindings of the libsqlite3-sys crate, nor are there any indirect ways to call it. Therefore, this is dead code in this context, and Openshift is not affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10sqlite-0:3.46.1-4.el10_0Fixed 2025-05-13RHSA-2025:7517
Red Hat Enterprise Linux 8nodejs:22-8100020250429143334.6d880403Fixed 2025-05-05RHSA-2025:4459
Red Hat Enterprise Linux 9nodejs:22-9060020250428105352.rhel9Fixed 2025-05-13RHSA-2025:7433
Red Hat Enterprise Linux 6sqliteNot affected
Red Hat Enterprise Linux 7sqliteNot affected
Red Hat Enterprise Linux 8mingw-sqliteNot affected
Red Hat Enterprise Linux 8rust-toolset:rhel8/rustNot affected
Red Hat Enterprise Linux 8sqliteNot affected
Red Hat Enterprise Linux 9rustNot affected
Red Hat Enterprise Linux 9sqliteNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-3277.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-141-03ABB B&R Automation Studio2026-02-18EnergyABB B&R Automation Studio <6.5ABB B&R Automation Studio 6.5
ICSA-25-226-08Siemens RUGGEDCOM CROSSBOW Station Access Controller2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM CROSSBOW Station Access Controller (SAC)none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON