free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's NRF root SBI endpoint POST /oauth2/token contains a parser-level type-confusion bug family. The handler in NFs/nrf/internal/sbi/api_accesstoken.go reflects over models.NrfAccessTokenAccessTokenReq, special-cases only plain string and NrfNfManagementNfType fields, and treats every other field as if it were a single models.PlmnId. The parsed *models.PlmnId is then assigned with reflect.Value.Set() to whichever field name the attacker put in the form body, which panics whenever the destination field's real type is incompatible (slice, different struct, primitive). Gin recovery converts each panic into HTTP 500, but the endpoint remains remotely panicable from a single unauthenticated form-encoded request and is repeatedly triggerable. This vulnerability is fixed in 4.2.2.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://github.com/free5gc/free5gc/security/advisories/GHSA-f8qv-7x5w-qr48 Exploit, Vendor Advisory
- https://github.com/free5gc/nrf/commit/f7bc77daa7425506af7569f2e61c2a210f5a0423 Patch
- https://github.com/free5gc/nrf/pull/83 Issue Tracking, Patch
- https://github.com/free5gc/free5gc/security/advisories/GHSA-f8qv-7x5w-qr48 Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.5 · free5gcNVD modified 2026-10-14 20:10
Affected (CPE criteria) 1
cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:*
References 5
- https://github.com/free5gc/free5gc/issues/918 Exploit, Issue Tracking
- https://github.com/free5gc/free5gc/security/advisories/GHSA-f8qv-7x5w-qr48 Exploit, Vendor Advisory
- https://github.com/free5gc/nrf/commit/f7bc77daa7425506af7569f2e61c2a210f5a0423 Patch
- https://github.com/free5gc/nrf/pull/83 Issue Tracking, Patch
- https://github.com/free5gc/free5gc/security/advisories/GHSA-f8qv-7x5w-qr48 Exploit, Vendor Advisory