Suse
CVE-2026-40249
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend malformed JSON in PUT request body
-
DeliveryBody read or deserialization fails
-
ExploitHandler sends error response but does not return
-
ExecutionProcessor invoked with uninitialized subscription object
-
PersistDatabase accepts and persists invalid subscription
-
ImpactNotification policy disrupted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
|
| Impact | This vulnerability presents moderate real-world risk despite the absence of a CVSS vector. The exploit chain requires network access to the UDR API endpoint, which is typically internal to the 5G core network but may be exposed depending on deployment architecture. The attack vector is network-based and requires no authentication (standard REST API), classifying it as low complexity. The SSVC framework indicates: exploitation status is publicly documented and reproducible via code inspection (confirmed statically but not yet at runtime); impact is limited to write operations on subscription data rather than code execution; and the attack is automatable. The key mitigating factor is that actual unauthorized modification depends on downstream processor validation and storage backend enforcement-if the processor or database rejects empty/invalid subscription objects, the practical impact is denial of service rather than data corruption. However, in deployments where downstream validation is weak or absent, this creates a vector for unintended policy modifications affecting call routing or subscriber notifications. The robustness flaw is security-relevant because it violates fail-safe error handling principles in network infrastructure code. Real-world priority is elevated if targeted at production 5G networks but constrained by the need for internal network access and downstream validation bypass. |
| Exploit ScenarioDerived | An attacker with network access to the UDR service (typically requiring internal network position or exposed API) sends a malformed PUT request to /nudr-dr/v2/policy-data/subs-to-notify/{subsId} with an invalid or empty JSON body. The handler reads the body, encounters an error, sends a 400/500 HTTP response, but fails to return, continuing to invoke the processor with an uninitialized PolicyDataSubscription object. If the downstream processor or database does not validate the received object, the subscription may be overwritten with default or empty state, disrupting notification delivery or policy enforcement for that subscriber. No public proof-of-concept code has been identified; exploitation requires code-level analysis and targeted API access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 14, 2026
Free5GC UDR service fails to terminate request processing after HTTP body retrieval or JSON deserialization errors in the PUT /nudr-dr/v2/policy-data/subs-to-notify/{subsId} endpoint, allowing unintended modification of Policy Data notification subscriptions with invalid or partially processed input. The handler lacks return statements following error responses, causing execution to continue to the downstream processor with uninitialized or empty subscription objects. No public exploit code or active exploitation has been confirmed; this is a robustness and input validation flaw affecting write operations on a core 5G network function.
RemediationAI
Apply the security patch by adding explicit return statements immediately after error response invocations in the HandlePolicyDataSubsToNotifySubsIdPut handler. Specifically, add return after the c.JSON(http.StatusInternalServerError, pd) call when GetRawData() fails, and add return after the c.JSON(http.StatusBadRequest, pd) call when deserialization fails. Additionally, change the deserialization call from openapi.Deserialize(policyDataSubscription, reqBody, "application/json") to openapi.Deserialize(&policyDataSubscription, reqBody, "application/json") to pass the subscription object by pointer. The corrected code pattern is provided in the vendor advisory at https://github.com/free5gc/free5gc/security/advisories/GHSA-gx38-8h33-pmxr. Patch your free5GC deployment from the upstream repository after this fix is merged into the main branch, or apply the code changes manually if running on a locked version.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in free5GC's UDR (Unified Data Repository) service, a critical component of 5G core network infrastructure that manages subscription and policy data. The affected handler HandlePolicyDataSubsToNotifySubsIdPut in NFs/udr/internal/sbi/api_datarepository.go implements the HTTP PUT verb for updating notification subscription policies. The root cause is classified under CWE-636 (Not Returning Errors), which describes failure to properly handle and abort on error conditions. Specifically, the handler calls c.GetRawData() to read the HTTP request body, then invokes openapi.Deserialize(policyDataSubscription, reqBody, "application/json") to unmarshal JSON into a PolicyDataSubscription object. The critical flaw is that error responses are sent via c.JSON() but execution does not return, allowing the function to proceed to s.Processor().PolicyDataSubsToNotifySubsIdPutProcedure() with an empty, partially initialized, or corrupted subscription object. The deserialization call passes the object by value rather than by pointer, compounding the risk of unintended state.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
A fail-open request handling flaw in the UDR service causes the /nudr-dr/v2/policy-data/subs-to-notify/{subsId} PUT handler to continue processing requests even after request body retrieval or deserialization errors.
This may allow unintended modification of existing Policy Data notification subscriptions with invalid, empty, or partially processed input, depending on downstream processor behavior.
Details
The endpoint PUT /nudr-dr/v2/policy-data/subs-to-notify/{subsId} is intended to update an existing Policy Data notification subscription only after the HTTP request body has been successfully read and parsed into a valid PolicyDataSubscription object. [file:93]
In the free5GC UDR implementation, the function HandlePolicyDataSubsToNotifySubsIdPut inNFs/udr/internal/sbi/api_datarepository.go does not terminate execution after input-processing failures. [file:93]
The request flow is:
- The handler calls
c.GetRawData()to read the HTTP request body. [file:93] - If
GetRawData()fails, the handler sends an HTTP 500 error response, but does not return. [file:93] - The handler then calls
openapi.Deserialize(policyDataSubscription, reqBody, "application/json"). [file:93] - If deserialization fails, the handler sends an HTTP 400 error response, but again does not return. [file:93]
- Execution continues and the handler still invokes
s.Processor().PolicyDataSubsToNotifySubsIdPutProcedure(c, subsId, policyDataSubscription). [file:93]
As a result, the endpoint operates in a fail-open manner: request processing may continue after fatal input validation or body handling errors, instead of being safely aborted. [file:93]
The issue is compounded by the handler's deserialization call, which passes policyDataSubscription directly to openapi.Deserialize(...) instead of passing a pointer to the destination object. This inconsistent usage further increases the risk that request processing continues with an empty, partially initialized, or otherwise unintended subscription object. [file:93]
This differs from safer handlers in the same file, which use a helper pattern that explicitly returns on body read or deserialization failure before calling the corresponding processor routine. [file:93]
Security Impact
This issue affects a write-capable API that updates Policy Data notification subscriptions identified by subsId. [file:93] Because execution continues after body read or parsing failure, the processor may receive an uninitialized, partially initialized, or otherwise unintended PolicyDataSubscription object for persistence. [file:93]
The exact runtime impact depends on downstream processor behavior and storage validation. [file:93] At minimum, this is a security-relevant robustness flaw that can lead to inconsistent request handling or unintended modification attempts; under certain runtime conditions it may allow updates that should not be processed after an input error. [file:93]
Reproduction Status
The code path has been statically confirmed. [file:93] A complete runtime proof of unintended subscription modification after GetRawData() or deserialization failure has not yet been established. [file:93]
Patch
The handler should immediately terminate after sending an error response for body read or deserialization failure. [file:93]
A minimal fix is to add missing return statements in HandlePolicyDataSubsToNotifySubsIdPut and pass a pointer to the destination object during deserialization: [file:93]
reqBody, err := c.GetRawData()
if err != nil {
logger.DataRepoLog.Errorf("Get Request Body error: %+v", err)
pd := openapi.ProblemDetailsSystemFailure(err.Error())
c.Set(sbi.IN_PB_DETAILS_CTX_STR, pd.Cause)
c.JSON(http.StatusInternalServerError, pd)
return
}
err = openapi.Deserialize(&policyDataSubscription, reqBody, "application/json")
if err != nil {
logger.DataRepoLog.Errorf("Deserialize Request Body error: %+v", err)
pd := util.ProblemDetailsMalformedReqSyntax(err.Error())
c.Set(sbi.IN_PB_DETAILS_CTX_STR, pd.Cause)
c.JSON(http.StatusBadRequest, pd)
return
}Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Affected Products (CPE)GitHub Advisory
Same weakness CWE-636 – Not Failing Securely ('Failing Open')
View allSame technique Deserialization
View allVendor StatusVendor
SUSE
Severity: Moderate| 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 |
| openSUSE Leap 15.6 | Affected |
GHSA-gx38-8h33-pmxr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB