CVE-2025-66719
Free5gc NRF is vulnerable to scope validation bypass via maliciously crafted targetNF value
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
An issue was discovered in Free5gc NRF 1.4.0. In the access-token generation logic of free5GC, the AccessTokenScopeCheck() function in file internal/sbi/processor/access_token.go bypasses all scope validation when the attacker uses a crafted targetNF value. This allows attackers to obtain an access token with any arbitrary scope.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/free5gc/nrf | 1.4.1 |