Skip to main content

free5GC UDM CVE-2026-42459

| EUVDEUVD-2026-32554 HIGH
Improper Input Validation (CWE-20)
2026-05-07 https://github.com/free5gc/free5gc GHSA-585v-hcgf-jhfr
7.7
CVSS 4.0 · Vendor: https://github.com/free5gc/free5gc
View

Attack ChainAIDerived

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

  1. Access
    Gain reachability to internal 5G core UDM SBI
  2. Delivery
    Send GET with SUPI containing %00 control char
  3. Exploit
    Malformed SUPI forwarded into UDM-to-UDR URL build
  4. Execution
    net/url parse error returns 500 leaking internal UDR URL
  5. Impact
    Harvest UDR host/port/path to target core components

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires only network access to one of the six unvalidated nudm-sdm endpoints on a free5GC UDM <= v1.4.2 instance (GET /:supi, /:supi/smf-select-data, /:supi/trace-data, /:supi/ue-context-in-smf-data, /:supi/nssai, or /:supi/sm-data) and a SUPI path segment containing a control character such as a percent-encoded NULL byte (%00). Per the CVSS vector (AV:N/AC:L/AT:N/PR:N/UI:N) there are no authentication, user-interaction, or special-configuration prerequisites - it works against default deployments. The principal limiting factors are: the attacker must be able to reach the UDM SBI, which in a correctly segmented 5G core is internal-only and not internet-facing; the /:supi/am-data endpoint is NOT affected because HandleGetAmData already validates the SUPI; and instances running a build that backports the validator.IsValidSupi() guard to these handlers are not exploitable.

Impact

The CVSS 4.0 base score is 7.7 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N: network-reachable, low attack complexity, no authentication, and no user interaction make the flaw trivially triggerable, while impact is confined to confidentiality (VC:H) with no integrity or availability effect. Exploit maturity is E:P, consistent with the working PoC in the advisory, so publicly available exploit code exists; the issue is not in CISA KEV and no EPSS probability was supplied, so there is no signal of active or widespread exploitation. The practical risk is lower than the 7.7 headline suggests: the vulnerability discloses internal topology (UDR hostname, port, path structure, API version) rather than subscriber data, secrets, or a code-execution primitive, so it is best treated as a reconnaissance enabler that strengthens follow-on attacks against the 5G core. The VC:H rating is arguably generous for what amounts to infrastructure-metadata leakage. A key mitigating reality not captured by AV:N is deployment: UDM SBIs are normally confined to the operator's internal 5G core service mesh, so 'network' exploitation in practice presupposes the attacker already has a foothold on or reachability into the core network. Prioritize as a defense-in-depth/hardening fix unless the SBI is improperly exposed.

Exploit ScenarioDerived

An attacker with reachability to the UDM service-based interface sends a single crafted GET such as curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/smf-select-data"; UDM forwards the malformed SUPI toward UDR, net/url rejects it, and UDM returns HTTP 500 whose detail field reveals the internal UDR host, port, and /nudr-dr/v2/subscription-data/... path. A published PoC exists, and because the CVSS vector is AV:N/AC:L/PR:N/UI:N the request needs no authentication, no user interaction, and only a trivially crafted URL.

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

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

Alert me

AnalysisAIv3 – May 27, 2026

Internal infrastructure disclosure in the free5GC UDM network function (Go package github.com/free5gc/udm, versions <= v1.4.2) lets unauthenticated remote attackers leak the internal address and API layout of the UDR. Six GET handlers in the nudm-sdm Subscriber Data Management service skip the validator.IsValidSupi() check, so a SUPI path parameter containing control characters (e.g. a NULL byte) propagates into the UDM-to-UDR URL, breaks Go's net/url parser, and is echoed back inside a 500 SYSTEM_FAILURE error detail. Publicly available exploit code exists (a curl-based PoC is published in the advisory and CVSS marks exploit maturity as Proof-of-Concept), but it is not listed in CISA KEV and no EPSS score was provided; impact is limited to confidentiality of infrastructure metadata that aids further intrusion rather than direct data theft or code execution.

Earlier versions of this analysis (2)
v2 May 27, 2026 - 19:46 cvss changed CVSS 7.7

Information disclosure in the free5GC UDM (Unified Data Management) network function, versions ≤ v1.4.2, lets an unauthenticated remote attacker inject control characters (e.g. a null byte) into the supi path parameter of six nudm-sdm GET handlers, forcing UDM to leak internal 5G core infrastructure details. Six handlers in api_subscriberdatamanagement.go skip the validator.IsValidSupi() check that the sibling HandleGetAmData correctly applies, so a malformed SUPI is forwarded toward UDR and triggers a 500 SYSTEM_FAILURE whose detail field discloses the internal UDR hostname, port, and API path. Publicly available exploit code exists (a curl PoC ships in the advisory; CVSS exploit maturity is Proof-of-Concept), but it is not listed in CISA KEV and no EPSS score was supplied.

v1 May 07, 2026 - 02:31

Improper input validation in free5GC UDM component versions ≤1.4.2 allows unauthenticated remote attackers to inject control characters into the SUPI path parameter across six Subscriber Data Management (nudm-sdm) service endpoints. Exploitation triggers a 500 Internal Server Error that exposes sensitive internal infrastructure details including UDR hostnames, ports, and internal API path structures. This represents an incomplete fix of CVE-2026-27642, which patched only the ueauthentication.go handlers while leaving six SDM handlers vulnerable. No vendor patch is available at time of analysis. EPSS score not yet available. No public exploit identified at time of analysis beyond the proof-of-concept provided in the advisory.

RemediationAI

No vendor-released patch identified at time of analysis - the advisory states patched versions are 'none yet,' so resolution currently requires applying the upstream-recommended source change: add the validator.IsValidSupi() guard (returning HTTP 400 MANDATORY_IE_INCORRECT) to all six unprotected handlers in internal/sbi/api_subscriberdatamanagement.go, mirroring HandleGetAmData, and rebuild/redeploy UDM from a patched fork until an official tagged release ships. Track https://github.com/free5gc/free5gc/security/advisories/GHSA-585v-hcgf-jhfr for a fixed version. Until then, apply compensating controls: enforce SBI authorization so only NRF-authorized, OAuth2-token-bearing peers can reach the nudm-sdm endpoints (trade-off: requires NRF token validation to be enabled and correctly configured across the core); place an API gateway or reverse proxy in front of UDM that rejects requests whose SUPI segment contains control or non-printable characters before they reach UDM (trade-off: adds a hop and must be kept in sync with valid SUPI grammar to avoid blocking legitimate identifiers); and restrict network reachability to the UDM SBI to the internal 5G core service mesh via mTLS and network policy, ensuring it is never exposed to untrusted networks (trade-off: none functionally, this is standard 5G core segmentation). As a stop-gap, suppress or sanitize the error detail field so 500 responses do not echo the resolved internal UDR URL (trade-off: reduces operational debugging visibility).

Affected VersionsENISA

Free5GC < 4.2.2

Affected Packages

go github.com/free5gc/udm 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 implementation of a 3GPP 5G core network written in Go. The affected component is the UDM (Unified Data Management) network function, specifically its nudm-sdm (Subscriber Data Management) service-based interface defined in internal/sbi/api_subscriberdatamanagement.go (CPE pkg:go/github.com_free5gc_udm). In 5G, the SUPI (Subscription Permanent Identifier, e.g. an IMSI-form value) is the subscriber key used to retrieve subscription data, and UDM proxies these lookups to the UDR (Unified Data Repository) over an HTTP service-based interface. The root cause is CWE-20 (Improper Input Validation): HandleGetSmfSelectData, HandleGetSupi, HandleGetTraceData, HandleGetUeContextInSmfData, HandleGetNssai, and HandleGetSmData pass the raw supi parameter straight to their processors without calling validator.IsValidSupi(), unlike the sibling HandleGetAmData handler which validates and returns HTTP 400. The processor builds a UDR URL from the attacker-controlled SUPI; control characters cause net/url to reject the string, and UDM's error handling embeds the fully-resolved internal UDR URL (host, port, /nudr-dr/v2/subscription-data/... path, and API version) in the returned error detail field. This is explicitly described as a missed fix of CVE-2026-27642, which added the same validation only to the ueauthentication handlers and overlooked the SDM handlers.

Know when the next one hits your stack

  • 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

Vendor (https://github.com/free5gc/free5gc) PRIMARY 7.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
SUSE HIGH

Primary rating from Vendor (https://github.com/free5gc/free5gc).

CVSS VectorVendor: https://github.com/free5gc/free5gc

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
Analysis Updated
May 27, 2026 - 19:46 vuln.today
v3 - CVSS changed
Analysis Updated
May 27, 2026 - 19:46 vuln.today
v2 - CVSS changed
Patch available
May 27, 2026 - 19:46 EUVD
CVSS changed
May 27, 2026 - 19:37 NVD
7.7 (HIGH)
CVE Published
May 07, 2026 - 02:09 nvd
HIGH

DescriptionCVE.org

Summary

The free5GC UDM component fails to validate the supi path parameter in six GET handlers of the nudm-sdm (Subscriber Data Management) service. An unauthenticated attacker can inject control characters into the SUPI parameter, causing UDM to forward a malformed request to UDR and return a 500 Internal Server Error response that exposes internal infrastructure details.

Affected Package

  • Ecosystem: Go
  • Package: github.com/free5gc/udm
  • Affected versions: <= v1.4.2
  • Patched versions: none yet

Details

The following handlers in internal/sbi/api_subscriberdatamanagement.go do not call validator.IsValidSupi() before passing the supi parameter to the processor:

  • HandleGetSmfSelectData - GET /:supi/smf-select-data
  • HandleGetSupi - GET /:supi
  • HandleGetTraceData - GET /:supi/trace-data
  • HandleGetUeContextInSmfData - GET /:supi/ue-context-in-smf-data
  • HandleGetNssai - GET /:supi/nssai
  • HandleGetSmData - GET /:supi/sm-data

By contrast, HandleGetAmData in the same file correctly validates the supi parameter:

go
// HandleGetAmData - correctly validates (not vulnerable)
supi := c.Params.ByName("supi")
if !validator.IsValidSupi(supi) {
    c.JSON(http.StatusBadRequest, problemDetail)
    return
}

// HandleGetSmfSelectData - missing validation (vulnerable)
supi := c.Params.ByName("supi")
// ← no validator.IsValidSupi(supi) call
s.Processor().GetSmfSelectDataProcedure(c, supi, plmnID, supportedFeatures)

The malformed supi is passed to the processor which constructs a URL to forward the request to UDR. Go's net/url parser rejects the URL containing control characters and returns an error. UDM catches this error and responds with a 500 SYSTEM_FAILURE that includes the full internal UDR URL in the detail field.

This is a missed fix of CVE-2026-27642, which applied the same validator.IsValidSupi() check only to internal/sbi/api_ueauthentication.go (HandleConfirmAuth and HandleGenerateAuthData), leaving the SDM service handlers unpatched.

Proof of Concept

bash
# Vulnerable - returns 500 with internal UDR URL exposed
curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/smf-select-data"
curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/nssai"
curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/trace-data"
curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/sm-data"
# Expected (vulnerable) response:
# HTTP 500
# {
#   "title": "System failure",
#   "status": 500,
#   "detail": "parse \"http://udr.internal:80/nudr-dr/v2/subscription-data/imsi-22277\x00INJECTED//provisioned-data/smf-selection-subscription-data\": net/url: invalid control character in URL",
#   "cause": "SYSTEM_FAILURE"
# }
# Protected endpoint (for comparison) - returns 400
curl "http://<UDM_HOST>/nudm-sdm/v2/imsi-22277%00INJECTED/am-data"
# HTTP 400
# {"title":"Malformed request syntax","status":400,"detail":"Supi is invalid","cause":"MANDATORY_IE_INCORRECT"}

Impact

An unauthenticated remote attacker can send a crafted GET request to any of the six affected endpoints to obtain:

  1. Internal UDR hostname and port
  2. Full internal API path structure (/nudr-dr/v2/subscription-data/...)
  3. UDR API version
  4. Internal service naming convention

This information can be used to facilitate further attacks against the UDR or other internal 5G core components.

Recommended Fix

Add validator.IsValidSupi() to all six affected handlers, following the pattern already used in HandleGetAmData:

go
supi := c.Params.ByName("supi")
if !validator.IsValidSupi(supi) {
    problemDetail := models.ProblemDetails{
        Title:  "Malformed request syntax",
        Status: http.StatusBadRequest,
        Detail: "Supi is invalid",
        Cause:  "MANDATORY_IE_INCORRECT",
    }
    c.Set(sbi.IN_PB_DETAILS_CTX_STR, http.StatusText(int(problemDetail.Status)))
    c.JSON(int(problemDetail.Status), problemDetail)
    return
}

Executive ViewAI

Why It Matters

free5GC UDM (User Data Management) versions 1.4.2 and earlier enable unauthenticated remote attackers to retrieve internal network topology and UDR API configuration through path parameter injection, exposing infrastructure details that facilitate reconnaissance for subsequent attacks on your 5G core network. Organizations running affected versions must immediately implement network-layer access controls and monitor for exploitation attempts while awaiting vendor patches.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict UDM network access to whitelisted 5G function consumers via firewall/network segmentation; (2) implement request filtering to reject HTTP requests with control characters in path parameters; (3) enable detailed API request logging with alerting on malformed requests; (4) implement egress filtering to detect UDM-to-UDR information leakage patterns. These controls reduce reconnaissance capability but do not eliminate vulnerability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% 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.1%
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
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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