UBUNTU-CVE-2025-3277

Source
https://ubuntu.com/security/CVE-2025-3277
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-3277.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-3277
Related
Published
2025-04-14T17:15:00Z
Modified
2025-04-29T16:36:17Z
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:24.10 / sqlite3

Package

Name
sqlite3
Purl
pkg:deb/ubuntu/sqlite3@3.46.1-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.45.1-1ubuntu2
3.45.3-1
3.46.0-1
3.46.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / sqlite3

Package

Name
sqlite3
Purl
pkg:deb/ubuntu/sqlite3@3.45.1-1ubuntu2.1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.42.0-1
3.44.0-1
3.44.2-1
3.45.0-1
3.45.1-1
3.45.1-1ubuntu1
3.45.1-1ubuntu2
3.45.1-1ubuntu2.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / sqlite3

Package

Name
sqlite3
Purl
pkg:deb/ubuntu/sqlite3@3.46.1-3?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.46.1-3

Affected versions

3.*

3.46.1-1
3.46.1-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.46.1-3",
            "binary_name": "lemon"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "lemon-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-0"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-0-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-dev"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-ext-csv"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-ext-csv-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-ext-icu"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-ext-icu-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-tcl"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "libsqlite3-tcl-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "sqlite3"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "sqlite3-dbgsym"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "sqlite3-doc"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "sqlite3-tools"
        },
        {
            "binary_version": "3.46.1-3",
            "binary_name": "sqlite3-tools-dbgsym"
        }
    ]
}