UBUNTU-CVE-2024-58400

Source
https://ubuntu.com/security/CVE-2024-58400
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58400.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-58400
Upstream
Published
2026-10-27T01:19:00Z
Modified
2026-10-28T20:15:31Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H CVSS Calculator
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H CVSS Calculator
  • 8.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • 8.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.

References

Affected packages

Ubuntu:26.10 / llama.cpp

Package

Name
llama.cpp
Purl
pkg:deb/ubuntu/llama.cpp?arch=source&distro=stonking

Affected ranges

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

Affected versions

Other
8681+dfsg-1
9721+dfsg-1ubuntu1
10438+dfsg-1
10438+dfsg-1ubuntu1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libllama0",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp-examples",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp-services",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp-tests",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp-tools",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "llama.cpp-tools-extra",
            "binary_version":  "10438+dfsg-1ubuntu1"
        },
        {
            "binary_name":  "python3-gguf",
            "binary_version":  "10438+dfsg-1ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58400.json"

Ubuntu:26.04:LTS / llama.cpp

Package

Name
llama.cpp
Purl
pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute

Affected ranges

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

Affected versions

Other
5882+dfsg-2
8064+dfsg-1ubuntu1
8681+dfsg-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libllama0",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "llama.cpp",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "llama.cpp-examples",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "llama.cpp-tests",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "llama.cpp-tools",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "llama.cpp-tools-extra",
            "binary_version":  "8681+dfsg-1"
        },
        {
            "binary_name":  "python3-gguf",
            "binary_version":  "8681+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58400.json"