Impact
The vulnerability occurs in the NEF PATCH /3gpp-pfd-management/v1/{afId}/transactions/{transId}/applications/{appId} handler of free5GC prior to version 4.2.2. When an upstream UDR call fails and the consumer wrapper returns an error together with a nil ProblemDetails object, the handler dereferences a nil value. This triggers a panic that, through Gin recovery, results in an HTTP 500 response instead of a controlled error. The flaw does not allow code execution but causes a denial of service by crashing the application. The weakness is a null pointer dereference (CWE-476) and use of a nil member of a null reference (CWE-754).
Affected Systems
The affected product is free5GC, an open‑source 5G core network implementation, specifically its NEF component. Versions prior to 4.2.2 are vulnerable. Upgrades to 4.2.2 or later contain the fix.
Risk and Exploitability
This flaw carries a CVSS base score of 7.5, indicating a high risk with potential impact on availability. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it by sending crafted HTTP PATCH requests to the vulnerable endpoint from any host that can reach the NEF service, triggering a crash whenever the underlying UDR service is unavailable. The CVSS score reflects that the vulnerability is exploitable without needing privileged local access, but it does not provide additional privileges or confidentiality compromise.
OpenCVE Enrichment
Github GHSA