Paper/Archive/CVE-2025-3277

CVE-2025-3277

SQLite sqlite — An integer overflow can be triggered in SQLite’s `concat_ws()` function.

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
sqlite< 3.49.1–CNA
RUGGEDCOM CROSSBOW Station Access Controller (SAC)< V5.7V5.7siemens-SADP
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Google (CNA)6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: partial

References

refsqlite.org/src/info/498e3f1cf57f164frefcert-portal.siemens.com/productcert/html/ssa-398330.htmlrefcert-portal.siemens.com/productcert/html/ssa-994087.html