CVE-2026-13574

llvm llvm-project Bitcode File IntrinsicInst.cpp getBasePtr heap-based overflow

Published Jun 29, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was determined in llvm llvm-project up to 22.1.6. This impacts the function GCRelocateInst::getBasePtr in the library llvm/lib/IR/IntrinsicInst.cpp of the component Bitcode File Handler. This manipulation causes heap-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. There are still doubts about whether this vulnerability truly exists. The LLVM project explains, that the reported behavior is outside its documented security scope and therefore not considered a security vulnerability.

Analysis

AI-generated

Technical impact

The flaw resides in the GCRelocateInst::getBasePtr routine within LLVM’s Bitcode File Handler and may trigger a heap-based buffer overflow when processing a specially crafted .bc file. The vulnerability is tied to classic memory corruption weaknesses, such as CWE-119, CWE-122, and CWE-805. The description notes doubts about the existence of a true security flaw and that the LLVM project considers the behavior outside its documented security scope; this is treated as uncertain. Based on the description, it is inferred that a reliable overflow leading to code execution is not confirmed, and the risk remains limited to potential crashes or memory corruption if the overflow occurs.

Affected Systems

LLVM Project components up to release 22.1.6 are affected, specifically the Bitcode File Handler module of the compiler toolchain. Any installation that loads or processes .bc files using these versions is at risk.

Risk and Exploitability

The CVSS score of 4.8 is classified as low severity, and the EPSS score of less than 1% indicates a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. The attack vector is local, requiring the ability to cause an LLVM instance to parse a malicious bitcode file. The uncertain nature of the flaw’s existence reduces confidence in the risk assessment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Avoid processing untrusted bitcode files; disable the bitcode loader when it is not required.
  • If bitcode processing is necessary, run the LLVM component in a sandboxed or isolated environment to contain any potential overflow.
  • Keep an eye on LLVM’s official announcements for confirmation of the issue and for any future fixes or workarounds.

Generated by OpenCVE AI on August 5, 2026 at 02:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A vulnerability was determined in llvm llvm-project up to 22.1.6. This impacts the function GCRelocateInst::getBasePtr in the library llvm/lib/IR/IntrinsicInst.cpp of the component Bitcode File Handler. This manipulation causes heap-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet. A vulnerability was determined in llvm llvm-project up to 22.1.6. This impacts the function GCRelocateInst::getBasePtr in the library llvm/lib/IR/IntrinsicInst.cpp of the component Bitcode File Handler. This manipulation causes heap-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. There are still doubts about whether this vulnerability truly exists. The LLVM project explains, that the reported behavior is outside its documented security scope and therefore not considered a security vulnerability.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability was determined in llvm llvm-project up to 22.1.6. This impacts the function GCRelocateInst::getBasePtr in the library llvm/lib/IR/IntrinsicInst.cpp of the component Bitcode File Handler. This manipulation causes heap-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
Title llvm llvm-project Bitcode File IntrinsicInst.cpp getBasePtr heap-based overflow
First Time appeared Llvm
Llvm llvm-project
Weaknesses CWE-119
CWE-122
CPEs cpe:2.3:a:llvm:llvm-project:*:*:*:*:*:*:*:*
Vendors & Products Llvm
Llvm llvm-project
References
Metrics cvssV2_0

{'score': 1.7, 'vector': 'AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow

  • CWE-805

    Buffer Access with Incorrect Length Value

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 7, 2026, 2:32 PM
Reserved
Jun 28, 2026, 6:47 PM
Status
Deferred
Published
Jun 29, 2026, 3:16 PM
Modified
Oct 25, 2026, 9:10 PM
Severity
Low
Public date
Jun 29, 2026, 2:15 PM