CVE-2026-44325 - free5GC NRF: type-confusion panic in POST /oauth2/token structured-form parser v
CVE-2026-44325 - free5GC NRF: type-confusion panic in POST /oauth2/token structured-form parser v
GHSA-f8qv-7x5w-qr48 HIGH go/github.com/free5gc/nrf
CVE: CVE-2026-44325
Summary
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 across at least 6 confirmed crashing fields.
Note: /oauth2/token is unauthenticated by design (it is the OAuth2 token-issuance endpoint). So this is NOT framed as an auth-bypass finding -- it is a parser bug on an intentionally unauthenticated SBI endpoint.
Details
Validated against the NRF container in the official Docker compose lab.
- Source repo tag:
v4.2.1 - Running Docker image:
free5gc/nrf:v4.2.1 - Docker validation date: 2026-03-22
- NRF endpoint:
http://10.100.200.3:8000
Root cause is in the access-token request parser:
NFs/nrf/internal/sbi/api_accesstoken.go:52NFs/nrf/internal/sbi/api_accesstoken.go:87NFs/nrf/internal/sbi/api_accesstoken.go:98NFs/nrf/internal/sbi/api_accesstoken.go:100NFs/nrf/internal/sbi/api_accesstoken.go:112
The model definition lives in free5gc/openapi:
models/model_nrf_access_token_access_token_req.go:27models/model_nrf_access_token_access_token_req.go:29models/model_nrf_access_token_access_token_req.go:30models/model_nrf_access_token_access_token_req.go:31
The parser's effective shape is: parse value as *models.PlmnId, then dstField.Set(reflect.ValueOf(parsedPlmnId)). Every destination field that is NOT
📌 来源: GitHub-Advisory | 🆔 CVE-2026-44325 | 📅 2026-05-08