CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-26127

CVE-2026-26127: .NET Denial of Service via Base64Url Out-of-Bounds Read

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 12, 2026·6 min read·379 visits

Executive Summary (TL;DR)

An out-of-bounds read in the .NET Base64Url decoder allows remote, unauthenticated attackers to abruptly terminate the application process via malformed input, causing a Denial of Service.

CVE-2026-26127 is a Denial of Service (DoS) vulnerability in the .NET runtime and the Microsoft.Bcl.Memory library. An out-of-bounds read flaw in the Base64Url decoding logic allows unauthenticated remote attackers to trigger an application crash by supplying specifically crafted, malformed string input.

Vulnerability Overview

CVE-2026-26127 is a high-severity Denial of Service (DoS) vulnerability affecting .NET 9.0, .NET 10.0, and the standalone Microsoft.Bcl.Memory NuGet package. The flaw resides in the Base64Url decoding implementation, which was introduced to provide high-performance encoding and decoding compliant with RFC 4648. Applications that parse external Base64Url data are vulnerable to abrupt termination.

The attack surface for this vulnerability is broad, encompassing any network-facing service that processes user-controlled Base64Url strings. Common implementations include JSON Web Token (JWT) validation, OAuth token parsing, and web-safe data transport mechanisms. An attacker does not require authentication to reach these code paths in a standard web API architecture.

When a vulnerable endpoint receives a malformed payload, the underlying parsing logic fails to safely handle the input boundaries. This results in an out-of-bounds memory read. The operating system or the .NET runtime detects the invalid memory access, causing the host process to crash and completely denying service to legitimate users.

Root Cause Analysis

The vulnerability is classified primarily as CWE-125 (Out-of-bounds Read) and secondarily as CWE-129 (Improper Validation of Array Index). The core issue stems from insufficient bounds checking within the Base64Url.Decode method and its associated variants. The logic fails to account for specific malformed input lengths and unexpected character offsets.

During the decoding process, the algorithm relies on internal index calculations to map Base64Url characters back to their original byte representations. When the input string is improperly formatted, these mathematical operations yield offsets that exceed the allocated bounds of the source or destination buffers. The runtime then attempts to read data from unallocated or protected memory regions.

The high-performance nature of this decoding logic involves low-level intrinsics and unsafe code blocks to bypass standard managed memory safeguards. Because the managed boundary is intentionally bypassed for speed, the standard .NET array bounds checks do not intervene prior to the illegal memory access. This results in a raw memory violation rather than a gracefully caught exception.

Depending on the exact execution environment, the out-of-bounds read manifests as either a System.IndexOutOfRangeException that goes unhandled on a critical thread, or a hard access violation at the operating system level. Both conditions force the immediate shutdown of the .NET process, validating the Denial of Service condition.

Code Analysis

The introduction of the Microsoft.Bcl.Memory high-performance Base64Url decoder in .NET 9.0 relied heavily on unsafe pointer arithmetic and SIMD (Single Instruction, Multiple Data) instructions. The vulnerability exists where the pointer advances through the input buffer without strictly validating the remaining length against the required block size for decoding.

// Conceptual Vulnerable Code Snippet
public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int bytesConsumed, out int bytesWritten)
{
    fixed (byte* src = &MemoryMarshal.GetReference(utf8))
    fixed (byte* dst = &MemoryMarshal.GetReference(bytes))
    {
        // Missing rigorous length validation before vector processing
        int index = 0;
        while (index < utf8.Length)
        {
            // Out-of-bounds read occurs here if utf8.Length is malformed
            Vector256<byte> data = Vector256.Load(src + index);
            // ... processing logic ...
        }
    }
}

The patch addresses this by enforcing strict bounds validation before any pointer arithmetic or SIMD vector loading occurs. The logic now explicitly calculates the maximum safe read boundary and falls back to scalar processing for the remainder of the buffer, ensuring no reads occur beyond the utf8.Length.

// Conceptual Patched Code Snippet
public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int bytesConsumed, out int bytesWritten)
{
    fixed (byte* src = &MemoryMarshal.GetReference(utf8))
    fixed (byte* dst = &MemoryMarshal.GetReference(bytes))
    {
        int index = 0;
        // Added strict boundary calculation
        int maxSafeIndex = utf8.Length - Vector256<byte>.Count;
        
        while (index <= maxSafeIndex)
        {
            Vector256<byte> data = Vector256.Load(src + index);
            // ... processing logic ...
        }
        // Safe scalar fallback for remaining bytes
    }
}

This fix is assessed to be complete. By constraining the SIMD vector loads to a mathematically proven safe index and processing the remainder safely, the code path eliminates the possibility of reading past the buffer. Variant attacks leveraging different malformed structures will fail because the maximum read index is strictly enforced.

Exploitation and Impact Assessment

Exploitation of CVE-2026-26127 requires minimal effort and no specialized network position. An attacker identifies a target endpoint that processes Base64Url data, such as a login route accepting a JWT, or an API accepting file uploads encoded in Base64Url. The attacker then constructs a crafted HTTP request containing a payload designed to trigger the out-of-bounds calculation.

Upon processing the request, the application passes the payload to the vulnerable Microsoft.Bcl.Memory decoding function. The out-of-bounds read is triggered immediately. Because the vulnerability exists at the runtime level and involves unsafe memory access, the entire process terminates. This results in the loss of all active user sessions and a complete cessation of application functionality.

The vulnerability carries a CVSS v3.1 base score of 7.5 (High), accurately reflecting its unauthenticated, remote nature and its severe impact on availability (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Although the CWE-125 class maps to MITRE ATT&CK T1005 (Data from Local System) due to the theoretical risk of data leakage via out-of-bounds reads, the practical and documented impact for this specific flaw is strictly Denial of Service.

There is currently no evidence of wild exploitation, and the EPSS score is extremely low (0.00041). However, the public disclosure of the vulnerability mechanics means threat actors possess the necessary technical context to develop functional Denial of Service tools against unpatched systems.

Remediation and Mitigation Strategies

Immediate patching is the only definitive remediation for CVE-2026-26127. Organizations running .NET 10.0 must update their runtimes and SDKs to version 10.0.4. Organizations running .NET 9.0 must update to version 9.0.14. These updates contain the modified CoreCLR and framework libraries that enforce proper bounds checking during Base64Url decoding.

Applications relying on the standalone Microsoft.Bcl.Memory NuGet package must explicitly update their package references. Developers should execute dotnet add package Microsoft.Bcl.Memory --version 9.0.14 (or 10.0.4 as appropriate) to pull the patched dependency. Crucially, applications must be fully recompiled and redeployed after this package update to ensure the vulnerable binaries are replaced in production environments.

In scenarios where immediate patching is not possible, organizations can implement active monitoring to detect exploitation attempts. Security teams should configure application telemetry and APM tools to alert on unexpected System.IndexOutOfRangeException or AccessViolationException events. A sudden spike in these exceptions strongly indicates a Denial of Service attack leveraging this vulnerability.

Additionally, security engineers should audit application codebases to identify all endpoints that process Base64Url data. Understanding the exposure of JWT handlers, OAuth endpoints, and custom deserialization logic will assist in prioritizing the deployment of the patched runtimes to the most critical infrastructure first.

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Probability
0.04%
Top 88% most exploited

Affected Systems

.NET 10.0.NET 9.0Microsoft.Bcl.Memory

Affected Versions Detail

Product
Affected Versions
Fixed Version
.NET 10.0
Microsoft
>= 10.0.0, < 10.0.410.0.4
.NET 9.0
Microsoft
>= 9.0.0, < 9.0.149.0.14
Microsoft.Bcl.Memory
Microsoft
>= 9.0.0, < 9.0.149.0.14
Microsoft.Bcl.Memory
Microsoft
>= 10.0.0, < 10.0.410.0.4
AttributeDetail
CWE IDCWE-125 (Out-of-bounds Read)
CVSS Score7.5 (High)
Attack VectorNetwork
ImpactDenial of Service (Availability: High)
Authentication RequiredNone
EPSS Score0.00041 (12.26%)
Exploit StatusPublicly Disclosed (PoC)
CISA KEVNot Listed

MITRE ATT&CK Mapping

T1005Data from Local System
Collection
CWE-125
Out-of-bounds Read

The software reads data past the end, or before the beginning, of the intended buffer.

Vulnerability Timeline

Vulnerability disclosed and MSRC advisory published by Microsoft.
2026-03-10
Patched versions (.NET 10.0.4 / 9.0.14) released.
2026-03-10
Secondary security advisories published by Tenable, Qualys, and SANS ISC.
2026-03-11

References & Sources

  • [1]MSRC Advisory
  • [2]GitHub Security Advisory
  • [3]Technical Discussion (GitHub)
  • [4]CVE.org Record
  • [5]NVD Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-120792
7.3

CVE-2026-120792: Local Information Disclosure via Temporary File Logging in Microsoft .NET Aspire CLI

CVE-2026-120792 is a high-severity local information disclosure vulnerability in the Microsoft .NET Aspire CLI (Aspire.Cli) affecting versions 13.5.4 prior to 13.6.5. The flaw stems from the insertion of sensitive information into a shared temporary log file (CWE-532) combined with insecure temporary file creation (CWE-377) within the DeprecatedMcpCommandScanner component. During agent configuration scanning, the CLI unconditionally appends internal workspace paths and the first 200 characters of Model Context Protocol (MCP) agent configuration files to a statically named file in the system temporary directory. On multi-user systems, unprivileged local users can read this file to harvest API keys, authentication tokens, and internal service endpoints.

Alon Barad
Alon Barad
2 views•9 min read
•about 2 hours ago•CVE-2026-114159
8.8

CVE-2026-114159: Heap-Based Buffer Overflow in Microsoft Visual Studio and .NET Native Symbol Reader

CVE-2026-114159 is a heap-based buffer overflow vulnerability (CWE-122) in Microsoft.DiaSymReader.Native affecting Microsoft Visual Studio and the .NET Runtime on Windows. An integer truncation error during the parsing of oversized document names in Portable PDB symbol files causes an undersized heap allocation, leading to an out-of-bounds memory write and remote code execution.

Alon Barad
Alon Barad
6 views•10 min read
•about 3 hours ago•CVE-2026-114158
8.8

CVE-2026-114158: Heap-Based Buffer Overflow in Microsoft.DiaSymReader.Native Portable PDB Parser

CVE-2026-114158 is a high-severity remote code execution vulnerability affecting Microsoft Visual Studio 2026 and multiple supported servicing branches of Microsoft .NET (.NET 8.0, 9.0, 10.0, and 11.0) on Windows. The flaw resides in the native symbol reader library, Microsoft.DiaSymReader.Native, and is triggered when parsing Portable Program Database (PDB) metadata containing malformed EmbeddedSource custom debug information records. By supplying a parent Record Identifier (RID) of zero or an out-of-bounds value, an attacker causes an integer underflow during 1-based to 0-based index conversion, leading to a heap-based buffer overflow and arbitrary code execution within the context of the host developer tool or runtime.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 4 hours ago•CVE-2026-114151
8.8

CVE-2026-114151: Remote Code Execution via Stack-Based Buffer Overflow in Microsoft Visual Studio and .NET Symbol Reader

CVE-2026-114151 is a high-severity remote code execution vulnerability affecting Microsoft Visual Studio 2026 and multiple supported versions of the Microsoft .NET runtime on Windows. The flaw resides in the native Debug Information Access (DIA) symbol reader component, Microsoft.DiaSymReader.Native. When parsing Program Database (.pdb) files, the component fails to validate the length of serialized numeric records (specifically LF_DECIMAL structures) before unpacking them into a fixed-size stack buffer. An attacker who convinces a user or automated diagnostic process to load a crafted .pdb file can trigger a stack-based buffer overflow, resulting in arbitrary code execution within the context of the host process.

Alon Barad
Alon Barad
3 views•9 min read
•about 5 hours ago•GHSA-6856-87HX-P5X7
7.5

CVE-2026-105544: Local Elevation of Privilege in .NET Test Platform CLI

CVE-2026-105544 is a high-severity local elevation of privilege vulnerability in Microsoft .NET and Microsoft.TestPlatform.CLI. Improper access control on local inter-process communication mechanisms and execution brokers allows an authorized local attacker to cross security boundaries and execute arbitrary code in the context of a higher-privileged user running a test execution cycle.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 7 hours ago•CVE-2026-114152
8.8

CVE-2026-114152: Stack-Based Buffer Overflow and Untrusted Pointer Dereference in Microsoft DiaSymReader.Native

CVE-2026-114152 is a high-severity remote code execution vulnerability affecting Microsoft Visual Studio 2026 and multiple servicing branches of the Microsoft .NET runtime (.NET 8.0, 9.0, 10.0, and 11.0) on Windows platforms. The vulnerability exists within the native symbol reader library, Microsoft.DiaSymReader.Native, specifically inside the DiaObjectFile::ApplyFixup method during the processing of Common Object File Format (COFF) relocation records. By supplying a malformed object file or Program Database (PDB) symbol file containing out-of-bounds relocation offsets or invalid symbol table indices, an unauthenticated attacker can trigger an untrusted pointer dereference (CWE-822) and a stack-based buffer overflow (CWE-121). Successful exploitation occurs when a victim opens, compiles, or debugs a malicious project or symbol artifact, leading to arbitrary code execution within the security context of the active developer environment or build process.

Amit Schendel
Amit Schendel
5 views•11 min read