Impact
A nil‑pointer dereference in the PCF HandleCreateSmPolicyRequest function causes a panic when a downstream UDR lookup returns 404. The panic is converted by Gin recovery into an HTTP 500 response, allowing an attacker to trigger a server error with a single crafted POST request. The panic occurs after a failed lookup, not during authentication, so the error is not mitigated by standard auth controls. The vulnerability is based on unchecked return values and improper null handling (CWE-476 and CWE-754).
Affected Systems
free5GC PCF component, versions prior to 4.2.2. The unprotected endpoint existed in 4.2.1 and earlier, which could be accessed without an Authorization header.
Risk and Exploitability
The CVSS score of 7.5 indicates moderate‑to‑high. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote, unauthenticated POST requests to /npcf-smpolicycontrol/v1/sm-policies that trigger a downstream UDR lookup failure. Exploitation causes HTTP 500 responses and can degrade availability, but the PCF process remains operational. The lack of inbound authentication middleware in earlier versions increases the likelihood that malicious actors can reach the endpoint.
OpenCVE Enrichment
Github GHSA