Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5360

CVE-2026-5360: Free5GC Type Confusion RCE Vulnerability

CVE-2026-5360 is a type confusion remote code execution vulnerability in Free5GC 4.2.0 affecting the aper component. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published: April 2, 2026

CVE-2026-5360 Overview

A type confusion vulnerability has been identified in Free5GC version 4.2.0, specifically affecting the APER (Aligned Packed Encoding Rules) component. The vulnerability stems from improper validation of PrintableString data during parsing operations, which can lead to type confusion when processing malformed input. The attack can be launched remotely over the network, though the exploitation complexity is described as high, making successful attacks more difficult to achieve.

Critical Impact

Type confusion in the APER component of Free5GC 4.2.0 may allow remote attackers to cause denial of service conditions through specially crafted network requests targeting the core network infrastructure.

Affected Products

  • Free5GC version 4.2.0
  • Free5GC APER component (prior to patch 26205eb01705754b7b902ad6c4b613c96c881e29)

Discovery Timeline

  • April 2, 2026 - CVE-2026-5360 published to NVD
  • April 2, 2026 - Last updated in NVD database

Technical Details for CVE-2026-5360

Vulnerability Analysis

This vulnerability is classified as CWE-843 (Access of Resource Using Incompatible Type - Type Confusion). The APER component in Free5GC is responsible for encoding and decoding ASN.1 data structures used in 5G core network communications. The vulnerability exists in the string parsing functionality where PrintableString data was not properly validated against the allowed character set defined in X.680 specification (Table 8).

When processing incoming network data, the parser would accept bytes outside the valid PrintableString character set, potentially leading to type confusion when the data is subsequently used by other components expecting properly validated string data. This could result in unexpected behavior or denial of service conditions within the 5G core network functions.

Root Cause

The root cause lies in the missing validation logic for PrintableString parsing in the aper.go file. Prior to the patch, the parseOctetString function was used directly for PrintableString parsing without verifying that the byte values conform to the PrintableString character set as defined in ITU-T X.680 Section 37.4 Table 8. This allowed invalid byte sequences to be processed and returned as valid strings.

Attack Vector

The attack vector is network-based, requiring an attacker to send specially crafted ASN.1 encoded messages to the Free5GC core network. The attack complexity is high due to:

  1. Requiring knowledge of the ASN.1 structure and APER encoding rules
  2. The need to craft specific malformed PrintableString data that triggers the type confusion
  3. Network access to the Free5GC deployment

The following patch introduces proper PrintableString validation:

go
func (pd *perBitData) parsePrintableString(extensed bool, lowerBoundPtr *int64, upperBoundPtr *int64) (string, error) {
	octetString, err := pd.parseOctetString(extensed, lowerBoundPtr, upperBoundPtr)
	if err != nil {
		return "", err
	}
	// X.680 37.4 Table 8 – PrintableString
	for i, b := range octetString {
		ok := false
		switch b {
		case 0x20, 0x27, 0x28, 0x29, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x3A, 0x3D, 0x3F:
			ok = true
		default:
			if (b >= '0' && b <= '9') || (b >= 'A' && b <= 'Z') || (b >= 'a' && b <= 'z') {
				ok = true
			}
		}
		if !ok {
			logger.AperLog.Warnf("Invalid PrintableString: illegal byte 0x%02x at pos %d", b, i)
			perTrace(1, "Ignored PrintableString due to illegal byte 0x%02x at pos %d", b, i)
			return "", nil
		}
	}
	return string(octetString), nil
}

Source: GitHub Commit Change

Detection Methods for CVE-2026-5360

Indicators of Compromise

  • Unusual or malformed ASN.1 encoded messages targeting Free5GC network functions
  • Error logs containing references to PrintableString parsing failures or invalid byte sequences
  • Unexpected crashes or restarts of Free5GC APER-dependent services
  • Network traffic containing non-printable characters in fields expected to contain PrintableString data

Detection Strategies

  • Monitor Free5GC application logs for warnings related to "Invalid PrintableString" or "illegal byte" patterns
  • Implement deep packet inspection for ASN.1/APER encoded traffic to detect malformed PrintableString fields
  • Deploy network-based intrusion detection rules targeting anomalous 5G signaling messages
  • Enable debug logging in the APER component to capture detailed parsing information during incident investigation

Monitoring Recommendations

  • Configure alerting on Free5GC service crashes or unexpected restarts that may indicate exploitation attempts
  • Establish baseline metrics for APER parsing errors and alert on significant deviations
  • Monitor network interfaces for unusual volumes of malformed 5G protocol messages
  • Implement centralized log collection for all Free5GC components to enable correlation analysis

How to Mitigate CVE-2026-5360

Immediate Actions Required

  • Apply the security patch identified by commit 26205eb01705754b7b902ad6c4b613c96c881e29 to the APER component
  • Review and update Free5GC deployments to include the patched APER library
  • Audit network access controls to limit exposure of Free5GC core network functions to trusted sources only
  • Enable enhanced logging on affected systems to detect potential exploitation attempts

Patch Information

The vulnerability has been addressed through Pull Request #11 in the Free5GC APER repository. The patch introduces the parsePrintableString function that validates each byte against the allowed character set defined in X.680 Table 8 before accepting the string. The fix is available in commit 26205eb01705754b7b902ad6c4b613c96c881e29.

For additional context, refer to GitHub Issue #831 in the main Free5GC repository.

Workarounds

  • Implement network segmentation to restrict access to Free5GC interfaces from untrusted networks
  • Deploy a Web Application Firewall (WAF) or network filter capable of inspecting and blocking malformed ASN.1 traffic
  • Configure rate limiting on network interfaces handling 5G signaling to reduce the impact of potential attacks
  • Monitor and restart affected services automatically upon detecting anomalous behavior
bash
# Configuration example - Verify the APER component version contains the fix
cd /path/to/free5gc/aper
git log --oneline | grep 26205eb

# If patch is not present, update the APER component
git fetch origin
git checkout 26205eb01705754b7b902ad6c4b613c96c881e29

# Rebuild Free5GC with the patched APER library
cd /path/to/free5gc
make clean && make

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFree5gc

  • SeverityMEDIUM

  • CVSS Score6.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-843
  • Technical References
  • GitHub Commit Change

  • GitHub Pull Request #11

  • GitHub Free5GC Repository

  • GitHub Free5GC Issue #831

  • GitHub Free5GC Issue Details #831

  • VulDB Submission #781573

  • VulDB #354735

  • VulDB #354735 CTI
  • Related CVEs
  • CVE-2026-41136: Free5gc AMF RCE Vulnerability

  • CVE-2026-1975: Free5gc RCE Vulnerability

  • CVE-2026-40343: Free5gc UDR Fail-Open Handling Flaw

  • CVE-2026-41135: Free5gc Memory Leak DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English