Skip to main content

Free5GC AMF EUVDEUVD-2026-32557

| CVE-2026-42081 HIGH
Improperly Implemented Security Check for Standard (CWE-358)
2026-05-07 https://github.com/free5gc/free5gc GHSA-77x9-rf64-92gv
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Compromise or gain access to gNB
  2. Delivery
    Craft NGAP PathSwitchRequest with zero'd algorithm IEs
  3. Exploit
    Send message to AMF during UE handover
  4. Install
    AMF overwrites stored UE security capabilities
  5. C2
    AMF propagates corrupted values in PathSwitchRequestAcknowledge and HandoverRequest
  6. Execute
    Target gNB rejects handover due to algorithm mismatch
  7. Impact
    UE handover fails and persists until re-registration

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V12 - Secure Communication Improperly implemented security check
Exploitation Conditions

Exploitation requires that the attacker control or have NGAP message injection capability on a gNB connected to the Free5GC AMF. The AMF must be running Free5GC v4.2.1 or earlier (up to v1.4.3). The attack is triggered during any inter-gNB handover scenario (Xn-handover) when the AMF processes the incoming PathSwitchRequest message containing the malicious UESecurityCapabilities IE. No special UE configuration or state is required - any UE undergoing a normal handover is vulnerable. The vulnerability is not conditional on default vs. hardened configurations; it affects all AMF deployments without code patches. NGAP is the standard protocol for gNB-to-AMF communication over the N2 interface, and PathSwitchRequest is a mandatory message in 3GPP mobility procedures, making exploitation inevitable once a gNB is compromised. No user interaction is required. The attack is strictly network-to-network (gNB to AMF), but the gNB itself must be adjacent to or network-accessible to the AMF, limiting exploitation scope to gNBs that can establish NGAP connections.

Impact

CVSS 6.1 (AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L) indicates adjacent network access (compromised/untrusted gNB), low attack complexity, no privilege requirement, and cross-scope availability impact. The adjacent network vector is contextually correct for 5G deployments where gNBs are network-adjacent to the AMF; however, in multi-vendor O-RAN environments, gNBs may be geographically distributed and compromisable. The vulnerability is not a network-wide remote code execution but a highly targeted availability attack requiring gNB compromise or control. Exploitation is straightforward (single crafted PathSwitchRequest message with zero'd algorithm bytes), and the PoC demonstrates successful corruption captured in packet traces. Attack complexity is low because the NGAP message parsing is standard and no special conditions trigger exploitation beyond normal handover procedures. The scope change from AV:A to S:C reflects that one UE's corrupted state persists across multiple handovers, affecting network-wide mobility services. EPSS scoring would likely be moderate because exploitation requires gNB compromise as a prerequisite; this is not a remote, unauthenticated vulnerability. However, the presence of a working PoC and the clear mandatory 3GPP non-compliance increase practical risk. No CISA KEV listing is indicated in input, and no information on active exploitation in the wild is provided. The low CVSS availability score (L) appears to underestimate the persistence and scope of the DoS - a single malicious PathSwitchRequest disables all future handovers for a UE until re-registration, which is a denial-of-service lasting hours or days in typical operator networks. Defenders should weigh the adjacent network constraint (gNB must be compromised or untrusted) against the persistence and breadth of impact.

Exploit ScenarioDerived

An attacker with control of or access to a gNB in the Free5GC network (via compromise, insider threat, or untrusted vendor deployment) sends a crafted NGAP PathSwitchRequest message during a handover procedure with UESecurityCapabilities set to zero (nRencryptionAlgorithms = 0x0000, nRintegrityProtectionAlgorithms = 0x0000). The AMF's handlePathSwitchRequestMain function unconditionally overwrites the victim UE's stored capabilities with these zero values without verification. When the UE later attempts to handover to another gNB, the AMF propagates the corrupted (all-zero) capabilities in the HandoverRequest message. The target gNB rejects the handover per TS 38.413 because no common supported algorithms exist, causing persistent handover failure until the UE performs a new registration. A single attack message corrupts one UE's state permanently.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Free5GC Access and Mobility Management Function (AMF) v4.2.1 and earlier fails to verify UE Security Capabilities in NGAP PathSwitchRequest messages, allowing a malicious gNB to overwrite the AMF's stored security algorithm preferences with arbitrary values. These corrupted capabilities are then propagated in PathSwitchRequestAcknowledge and subsequent HandoverRequest messages, causing all inter-gNB handovers for affected UEs to fail due to algorithm mismatches. This results in persistent handover denial-of-service until UE re-registration. The vulnerability is directly contrary to 3GPP TS 33.501 §6.7.3.1 verification requirements and has been demonstrated with a public proof-of-concept using Free5GC v4.2.1 and UERANSIM.

RemediationAI

No vendor-released patch identified at time of analysis. Immediate remediation requires in-place code fixes: apply the verification logic from 3GPP TS 33.501 §6.7.3.1 by comparing received UESecurityCapabilities against amfUe.UESecurityCapability before overwriting, and if mismatched, return the locally stored values in PathSwitchRequestAcknowledge instead of the received ones. Until a patched Free5GC release is available, implement network-level compensating controls: (1) restrict NGAP access (port 38412/SCTP) to known, trusted gNBs via firewall rules on the AMF host or intermediate network segments, (2) deploy gNB authentication and authorization checks at the N2 interface using TLS mutual authentication with certificate pinning to prevent unauthorized gNB connections, (3) enable detailed logging and alerting on PathSwitchRequest messages and monitor for zero'd algorithm values in AMF logs (search for UESecurityCapability modifications with all-zero bytes), (4) segment the AMF into a dedicated security zone with monitoring for abnormal state changes. Workaround: force UEs to re-register every N hours via policy enforcement in the PCF or SMF to limit DoS duration, though this reduces user experience and does not prevent the underlying corruption. Operators should also audit their gNB deployment for compromise or untrusted vendors (especially in multi-vendor O-RAN setups) since this vulnerability requires gNB control. Monitor GitHub repository (https://github.com/free5gc/free5gc/security/advisories/GHSA-77x9-rf64-92gv) for patch release announcements.

Affected VersionsENISA

Free5GC < 4.2.2

Affected Packages

go github.com/free5gc/amf no fix
euvd free5gc fix: 4.2.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Free5GC is an open-source 5G core network implementation written in Go. The vulnerability resides in the AMF component's NGAP (NG Application Protocol) message handler, specifically the handlePathSwitchRequestMain function in amf/internal/ngap/handler.go. During Xn-handovers between gNodeBs, the AMF receives PathSwitchRequest messages containing UESecurityCapabilities Information Elements (IEs) that specify which encryption (EA) and integrity protection (IA) algorithms the UE supports (EA1/EA2/EA3 for 5G encryption; IA1/IA2/IA3 for integrity). The root cause is unconditional overwriting of stored capability bits using bitwise operations (e.g., SetEA1_128_5G with NRencryptionAlgorithms.Value.Bytes[0] & 0x80) without prior comparison to locally stored values. Per 3GPP TS 33.501 §6.7.3.1, the AMF is mandated to verify received capabilities match stored values and, if mismatched, send its locally stored capabilities back in the PathSwitchRequestAcknowledge. The missing verification allows a gNB (via NGAP over SCTP) to inject false algorithm support/rejection signals. Subsequent TS 38.413 §8.4.2.4 handover procedures enforce that target gNBs reject HandoverRequest messages if no common algorithms exist between UE and gNB configuration, guaranteeing handover failure when capabilities are zeroed. CWE-358 (Improperly Restricted Operations on Dynamically-Allocated Memory) applies to the unchecked state modification of the UE security context object.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.1 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
SUSE HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

4
Severity Changed
Oct 14, 2026 - 20:23 NVD
MEDIUM HIGH
CVSS changed
Oct 14, 2026 - 20:23 NVD
6.1 (MEDIUM) 7.1 (HIGH)
Patch available
May 27, 2026 - 19:46 EUVD
CVE Published
May 07, 2026 - 01:53 nvd
MEDIUM 6.1

DescriptionNVD

Summary

The AMF in Free5GC v4.2.1 does not verify the UE Security Capabilities received in NGAP PathSwitchRequest messages against its locally stored values, as mandated by 3GPP TS 33.501 §6.7.3.1. A malicious gNB can overwrite the AMF's stored UE security capabilities with arbitrary values, which are then propagated in PathSwitchRequest Acknowledge messages and subsequent Handover Request messages. This leads to persistent handover denial-of-service for affected UEs.

Details

Affected File: amf/internal/ngap/handler.go - handlePathSwitchRequestMain function

Root Cause:

When the AMF receives a PathSwitchRequest during an Xn-handover, it processes the UESecurityCapabilities IE by directly overwriting the stored values without comparing them to the previously stored capabilities:

go
if uESecurityCapabilities != nil {
    amfUe.UESecurityCapability.SetEA1_128_5G(uESecurityCapabilities.NRencryptionAlgorithms.Value.Bytes[0] & 0x80)
    amfUe.UESecurityCapability.SetEA2_128_5G(uESecurityCapabilities.NRencryptionAlgorithms.Value.Bytes[0] & 0x40)
    amfUe.UESecurityCapability.SetEA3_128_5G(uESecurityCapabilities.NRencryptionAlgorithms.Value.Bytes[0] & 0x20)
    amfUe.UESecurityCapability.SetIA1_128_5G(uESecurityCapabilities.NRintegrityProtectionAlgorithms.Value.Bytes[0] & 0x80)
    amfUe.UESecurityCapability.SetIA2_128_5G(uESecurityCapabilities.NRintegrityProtectionAlgorithms.Value.Bytes[0] & 0x40)
    amfUe.UESecurityCapability.SetIA3_128_5G(uESecurityCapabilities.NRintegrityProtectionAlgorithms.Value.Bytes[0] & 0x20)
}

3GPP TS 33.501 §6.7.3.1 requires three actions, none of which are implemented:

  1. Verification (SHALL): "The AMF shall verify that the UE's 5G security capabilities received from the target gNB/ng-eNB are the same as the UE's 5G security capabilities that the AMF has locally stored."

→ Not implemented. The AMF unconditionally overwrites stored values.

  1. Correction (SHALL): "If there is a mismatch, the AMF shall send its locally stored 5G security capabilities of the UE to the target gNB/ng-eNB in the Path-Switch Acknowledge message."

→ Not implemented. The PathSwitchRequestAcknowledge contains the corrupted values.

  1. Logging (SHALL): "The AMF shall support logging capabilities for this event and may take additional measures, such as raising an alarm."

→ Not implemented. No mismatch detection or logging exists.

Propagation:

The corrupted values are propagated in:

  • PathSwitchRequestAcknowledge: Contains corrupted UESecurityCapabilities (demonstrated in pcap)
  • Subsequent HandoverRequest messages: AMF sends corrupted capabilities to target gNBs

Per TS 38.413 §8.4.2.4, if the supported algorithms in the UE Security Capabilities do not match any allowed algorithms configured in the target gNB, the target gNB is required to reject the procedure using a HANDOVER FAILURE message.

PoC

Environment:

  • Free5GC v4.2.1 AMF (Docker container) with full NF stack (NRF, AUSF, UDM, UDR, NSSF, PCF, SMF, UPF)
  • UERANSIM v3.2.7 gNB with custom inspection-tool extension
  • tshark for packet capture

Reproduction Steps:

  1. Start Free5GC full stack and register a UE through a gNB (NG Setup → Registration → PDU Session Setup).
  2. Send a normal HandoverRequired from the gNB. Capture the resulting HandoverRequest from the AMF and confirm nRintegrityProtectionAlgorithms = 0xe000 (NIA1, NIA2, NIA3 all supported). This is the baseline.
  3. Send a PathSwitchRequest with nRintegrityProtectionAlgorithms = 0x0000 (all integrity algorithms set to not supported). The AMF responds with PathSwitchRequestAcknowledge.
  4. Observe that the PathSwitchRequestAcknowledge contains nRintegrityProtectionAlgorithms = 0x0000 - the corrupted values are propagated back.

Observed Result (from pcap capture):

PacketMessagenRintegrityProtectionAlgorithms
#20HandoverRequest (AMF→gNB)0xe000 (NIA1 ✓ NIA2 ✓ NIA3 ✓) - baseline
#30PathSwitchRequest (gNB→AMF)0x0000 - poison
#47PathSwitchRequestAcknowledge (AMF→gNB)0x0000 (NIA1 ✗ NIA2 ✗ NIA3 ✗) - corrupted

Impact

Availability (HIGH): A malicious gNB can send a single PathSwitchRequest message to corrupt the AMF's stored UE security capabilities for any UE. All subsequent inter-gNB handovers for the affected UE are expected to fail (per TS 38.413 §8.4.2.4), resulting in denial-of-service that persists until the UE performs a new registration.

Integrity (LOW): The AMF's internal UE security context is corrupted with attacker-controlled values. These corrupted values are propagated to other network elements via PathSwitchRequestAcknowledge and HandoverRequest messages.

Who is impacted: Any deployment using Free5GC as the AMF where a gNB could be compromised or where untrusted gNBs exist (e.g., O-RAN multi-vendor deployments).

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Related Vulnerabilities in Free5GC AMF Security Vulnerabilities

View all 2

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy