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-33064 Overview
CVE-2026-33064 is a high-severity null pointer dereference vulnerability in Free5GC, an open-source Linux Foundation project that implements 5th generation (5G) mobile core networks. The flaw affects the Unified Data Management (UDM) service in versions prior to 1.4.2. A remote, unauthenticated attacker can crash the UDM by sending a crafted POST request to the /sdm-subscriptions endpoint containing path traversal sequences and a large JSON payload. The DataChangeNotificationProcedure function in notifier.go accesses a nil pointer without validation, producing a runtime error: invalid memory address or nil pointer dereference panic. The issue is fixed in version 1.4.2.
Critical Impact
Remote, unauthenticated attackers can crash the UDM service and disrupt 5G core subscriber data management until manual restart.
Affected Products
- Free5GC UDM versions prior to 1.4.2
- Free5GC 5G core deployments exposing the /sdm-subscriptions Service-Based Interface (SBI)
- Go-based UDM components using vulnerable notifier.go logic
Discovery Timeline
- 2026-03-20 - CVE-2026-33064 published to NVD
- 2026-03-23 - Last updated in NVD database
Technical Details for CVE-2026-33064
Vulnerability Analysis
The vulnerability resides in the UDM Service-Based Interface handler for /sdm-subscriptions. When the UDM receives a POST request to this endpoint, it dispatches processing to DataChangeNotificationProcedure in internal/sbi/processor/notifier.go. The function dereferences a pointer derived from request parsing without first validating that the pointer or its underlying response object is non-nil.
A malformed URL path containing ../ traversal sequences combined with an oversized JSON body causes upstream parsing to return a nil response structure. The downstream code path then attempts to access fields on that nil structure, triggering a Go runtime panic. The panic crashes the entire UDM goroutine scheduler, taking the service offline until an operator restarts it.
The weakness is classified under [CWE-476] Null Pointer Dereference and [CWE-478] Missing Default Case in Multiple Condition Expression. Because UDM mediates subscriber authentication and policy lookups, its outage halts new session establishment across the 5G core.
Root Cause
The root cause is missing input validation and missing nil guards in the SDM (Subscriber Data Management) notification callback handler. The handler trusts that path parameters and the deserialized JSON payload always produce a valid object. No defensive check rejects malformed paths containing traversal sequences before they reach the processor, and no nil check guards the notification response pointer prior to dereference.
Attack Vector
The attack vector is network-based and requires no authentication or user interaction. An attacker with reachability to the UDM SBI port sends a single crafted HTTP POST request to /sdm-subscriptions containing ../ sequences in the URL path and a large JSON body. The request triggers the panic, producing a denial-of-service condition against the 5G core's subscriber management function.
// Security patch in internal/sbi/api_httpcallback.go
// Adds the validator import used to enforce request validation
"github.com/free5gc/openapi/models"
"github.com/free5gc/udm/internal/logger"
"github.com/free5gc/util/metrics/sbi"
+ "github.com/free5gc/util/validator"
)
func (s *Server) getHttpCallBackRoutes() []Route {
Source: GitHub Commit 65d7070
// Security patch in internal/sbi/processor/notifier.go
// Imports net/http to enable returning proper HTTP status codes instead of panicking
package processor
import (
+ "net/http"
+
"github.com/gin-gonic/gin"
"github.com/free5gc/openapi"
Source: GitHub Commit 65d7070
The patches introduce request validation via the validator package and return proper HTTP responses (including 204 No Content) instead of allowing a nil dereference panic.
Detection Methods for CVE-2026-33064
Indicators of Compromise
- UDM process logs containing the string runtime error: invalid memory address or nil pointer dereference followed by stack traces referencing DataChangeNotificationProcedure
- HTTP POST requests to /sdm-subscriptions containing ../ path traversal sequences in the URL
- Abnormally large JSON request bodies sent to UDM SBI endpoints from external or untrusted sources
- Unexpected UDM container restarts or crash loops within Kubernetes-orchestrated 5G core deployments
Detection Strategies
- Monitor UDM stderr and journal logs for Go panic stack traces referencing notifier.go and the SDM subscription handler
- Inspect SBI HTTP access logs for malformed paths to /sdm-subscriptions containing encoded or raw ../ sequences
- Alert on repeated 5xx responses or connection resets immediately preceding UDM service restarts
- Correlate UDM availability dips with inbound POST traffic patterns to the SDM endpoint
Monitoring Recommendations
- Track UDM service uptime, restart counts, and panic-induced exits as first-class SLO metrics
- Forward Free5GC component logs to a centralized log analytics platform for cross-component correlation
- Implement HTTP request body size limits at an ingress proxy fronting the UDM SBI
- Baseline normal /sdm-subscriptions traffic volume and alert on deviations
How to Mitigate CVE-2026-33064
Immediate Actions Required
- Upgrade Free5GC to version 1.4.2 or later, which contains the fix in commit 65d7070f4bfd016864cbbaefbd506bbc85d2fa92
- Restrict network reachability of the UDM SBI to trusted 5G core network functions only
- Deploy a reverse proxy or API gateway in front of UDM to validate request paths and enforce body size limits
- Enable automatic restart policies for UDM containers to reduce recovery time after a crash
Patch Information
The vulnerability is fixed in Free5GC UDM version 1.4.2. The patch is delivered via Pull Request #78 and commit 65d7070. The fix adds the github.com/free5gc/util/validator package to validate inbound requests and imports net/http in notifier.go to return proper HTTP status codes instead of allowing nil dereferences. Additional details are available in the GHSA-7g27-v5wj-jr75 advisory and Issue #781.
Workarounds
- Block external traffic to the UDM /sdm-subscriptions endpoint at the network perimeter or service mesh
- Use a Web Application Firewall (WAF) rule to drop requests whose path to /sdm-subscriptions contains ../ sequences
- Cap inbound JSON request body size at the ingress layer to reject oversized payloads before they reach UDM
- Run UDM under a process supervisor that immediately restarts the service if it panics
# Upgrade Free5GC UDM to the fixed version
cd $GOPATH/src/free5gc
git fetch --all --tags
git checkout v1.4.2
cd NFs/udm
go build -o bin/udm cmd/main.go
# Example NGINX ingress rule to block path traversal on /sdm-subscriptions
# location /sdm-subscriptions {
# if ($request_uri ~* "\.\./") { return 400; }
# client_max_body_size 64k;
# proxy_pass http://udm-upstream;
# }
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

