Skip to main content
Vulnerability Database/CVE-2026-101035

CVE-2026-101035: UERANSIM RCE Vulnerability

CVE-2026-101035 is a remote code execution vulnerability in aligungr UERANSIM affecting versions up to 3.3.0. The flaw allows attackers to trigger uncaught exceptions remotely. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101035 Overview

CVE-2026-101035 is an uncaught exception vulnerability in aligungr UERANSIM through version 3.3.0. The flaw resides in the DecodePlainMmMessage function within src/lib/nas/encode.cpp, part of the nr-gnb (5G next-generation NodeB) component. A remote attacker can trigger the uncaught exception by sending a crafted Non-Access Stratum (NAS) message, causing the gNB process to terminate. UERANSIM is a widely used open-source 5G UE and gNB simulator for research and lab environments. A proof-of-concept exploit has been published publicly, and an upstream patch is available in commit 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac.

Critical Impact

Remote, unauthenticated attackers can crash the UERANSIM gNB process by sending a malformed NAS message, disrupting 5G test and lab environments.

Affected Products

  • aligungr UERANSIM versions up to and including 3.3.0
  • nr-gnb component (NAS message decoding path)
  • Research, lab, and CI/CD environments relying on UERANSIM for 5G core testing

Discovery Timeline

  • 2026-09-28 - CVE-2026-101035 published to the National Vulnerability Database (NVD)
  • 2026-09-28 - Last updated in NVD database
  • Patch commit - 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac published to the UERANSIM GitHub repository

Technical Details for CVE-2026-101035

Vulnerability Analysis

The vulnerability is classified under [CWE-248] Uncaught Exception. The DecodePlainMmMessage routine in src/lib/nas/encode.cpp processes incoming 5G Mobility Management (5GMM) NAS messages received by the gNB. When the decoder encounters an unexpected or malformed field, it raises an exception that is not handled by the calling code path. The exception propagates upward and terminates the nr-gnb process. Because the gNB is the entry point for radio-side signalling, loss of the process disrupts all simulated UE sessions attached to it.

Root Cause

The underlying issue is that the NAS decoding logic assumed callers would only invoke DecodePlainMmMessage for messages that legitimately carry decodable payloads such as a Registration Request with a requested Network Slice Selection Assistance Information (NSSAI) field. The upstream fix narrows the decoder's scope so that only Initial NAS messages known to carry a requested NSSAI are parsed, and it changes the requestedSliceType parameter from a reference to a value type in NgapTask::createUeContext and NgapTask::selectAmf. This removes an unsafe decode path that could be driven by attacker input.

Attack Vector

The attack vector is network-based. An attacker who can send NAS traffic to the gNB-facing interface submits a crafted Initial NAS message that triggers the unhandled exception during decode. No authentication or user interaction is required. The impact is limited to availability of the nr-gnb process; the CVSS vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L indicates no confidentiality or integrity impact.

cpp
// Patch: src/gnb/ngap/management.cpp
// Only decode Initial NAS messages that can carry a requested NSSAI
     m_amfCtx[ctx->ctxId] = ctx;
 }
 
-void NgapTask::createUeContext(int ueId, int32_t &requestedSliceType,
-                               const std::optional<GutiMobileIdentity> &sTmsi)
+void NgapTask::createUeContext(int ueId, int32_t requestedSliceType, const std::optional<GutiMobileIdentity> &sTmsi)
 {
     auto *ctx = new NgapUeContext(ueId);
     ctx->amfUeNgapId = -1;

Source: GitHub Commit 1ae9bf2

cpp
// Patch: src/gnb/ngap/nnsf.cpp
// Only a Registration Request carries a requested NSSAI
     return false;
 }
 
-NgapAmfContext *NgapTask::selectAmf(int ueId, int32_t &requestedSliceType,
+NgapAmfContext *NgapTask::selectAmf(int ueId, int32_t requestedSliceType,
                                     const std::optional<GutiMobileIdentity> &sTmsi)
 {
     // Only a Registration Request carries a requested NSSAI, so requestedSliceType is

Source: GitHub Commit 1ae9bf2

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-101035

Indicators of Compromise

  • Unexpected termination of the nr-gnb binary with an unhandled C++ exception trace referencing DecodePlainMmMessage or src/lib/nas/encode.cpp.
  • Repeated gNB process restarts correlated with inbound NAS traffic from a single source IP.
  • Partial or complete loss of simulated UE registration in a UERANSIM test harness without a corresponding configuration change.

Detection Strategies

  • Monitor UERANSIM process health and capture stderr crash logs for exception strings tied to NAS decoding.
  • Inspect packet captures of NAS signalling for malformed Initial NAS messages that do not match a valid Registration Request structure.
  • Compare the deployed UERANSIM commit hash against 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac to confirm patch status.

Monitoring Recommendations

  • Enable process supervision (for example, systemd with Restart=on-failure) and alert when restart counts exceed a baseline threshold.
  • Log and review all NAS message decode failures emitted by the gNB component.
  • Restrict exposure of the UERANSIM gNB interface to trusted lab networks and audit any unexpected inbound connections.

How to Mitigate CVE-2026-101035

Immediate Actions Required

  • Update UERANSIM to a build that includes commit 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac from the UERANSIM repository.
  • Remove any exposure of the gNB signalling interface to untrusted networks until the patch is applied.
  • Review public proof-of-concept content referenced in the VulDB entry for CVE-2026-101035 to validate detections.

Patch Information

The upstream fix is delivered in commit 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac. It restricts DecodePlainMmMessage invocation to Initial NAS messages that legitimately carry a requested NSSAI and refactors createUeContext and selectAmf to take requestedSliceType by value. Rebuild UERANSIM from a source tree containing this commit and redeploy the nr-gnb binary across all test nodes.

Workarounds

  • Place the UERANSIM gNB behind a network ACL that only permits NAS traffic from authorized UE simulators.
  • Run nr-gnb under a process supervisor that automatically restarts on crash to reduce the window of disruption until patching completes.
  • Disable or isolate UERANSIM instances that cannot be rebuilt from source in the near term.
bash
# Rebuild UERANSIM with the fix applied
git clone https://github.com/aligungr/UERANSIM.git
cd UERANSIM
git checkout 1ae9bf2062b57595dbcbc4bc1d0a0ccf06815bac
make

# Verify the deployed commit hash
git rev-parse HEAD

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.