Impact
The vulnerability in the free5GC NRF POST /oauth2/token endpoint is a parser‑level type‑confusion bug that causes a panic when the request body contains a field name that does not match the expected type. When this panic occurs, Gin’s recovery layer converts it into an HTTP 500 error. The flaw does not allow arbitrary code execution but disrupts service availability by causing the endpoint to crash on each bad request; the crash can be repeatedly triggered by an unauthenticated client sending a malformed form‑encoded payload.
Affected Systems
Affected vendors/products include free5gc:free5gc. The NRF component is vulnerable in all releases of free5GC before version 4.2.2. The issue is fixed in release 4.2.2 and later.
Risk and Exploitability
The CVSS score of 7.5 classifies this as high severity. EPSS is not available for this vulnerability and it is not listed in CISA’s KEV. Attackers can exploit the flaw remotely via the network by sending a simple form‑encoded POST request to /oauth2/token that contains a crafted field name. Since the request is unauthenticated and the endpoint remains panicable, the risk of disruption is real for compromised or hostile networks. However the attack surface is limited to anyone who can reach the NRF service from the network.
OpenCVE Enrichment
Github GHSA