10.0critical
free5GC: NEF nnef-oam route group is unauthenticated; no-token requests reach the OAM handler
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-cmpj-2x3g-m7g3GO-2026-5326
Description
free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's NEF mounts the nnef-oam route group without inbound OAuth2/bearer-token authorization. A network attacker who can reach NEF on the SBI can hit the OAM route with no Authorization header at all and the handler returns 200 OK. The current OAM handler is a stub that returns null, but the structural defect is route-group-scoped: the entire OAM route group has no inbound auth middleware, so every future OAM operation added to this group inherits the missing auth boundary by default. This vulnerability is fixed in 4.2.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| free5gc free5gc | < 4.2.2, before 4.2.2 | CVE List, NVD |
| github.com/free5gc/nef (Go) | up to 1.2.3, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H |
Classification
What each source says
CVE List
free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's NEF mounts the nnef-oam route group without inbound OAuth2/bearer-token authorization. A network attacker who can reach NEF on the SBI can hit the OAM route with no Authorization header at all and the handler returns 200 OK. The current OAM handler is a stub that returns null, but the structural defect is route-group-scoped: the entire OAM route group has no inbound auth middleware, so every future OAM operation added to this group inherits the missing auth boundary by default. This vulnerability is fixed in 4.2.2.
GitHub Advisory Database
Summary
free5GC's NEF mounts the nnef-oam route group without inbound OAuth2/bearer-token authorization. A network attacker who can reach NEF on the SBI can hit the OAM route with no Authorization header at all and the handler returns 200 OK. The current OAM handler is a stub that returns null, but the structural defect is route-group-scoped: the entire OAM route group has no inbound auth middleware, so every future OAM operation added to this group inherits the missing auth boundary by default. Same root cause as the NEF traffic-influence and PFD-management findings.
Details
Validated against the NEF container in the official Docker compose lab.
- Source repo tag:
v4.2.1 - Running Docker image:
free5gc/nef:v4.2.0 - Runtime NEF commit:
5ce35eab - Docker validation date: 2026-03-11
NEF advertises OAuth2 setting receive from NRF: true, yet the OAM route group is mounted without any inbound auth middleware and answers unauthenticated GETs with 200 OK.
Code evidence (paths in free5gc/nef):
- OAM route group mounted without auth middleware:
NFs/nef/internal/sbi/server.go:60 - OAM route exposed at
/:NFs/nef/internal/sbi/api_oam.go:9 - OAM processor returns
200 OKdirectly:NFs/nef/internal/sbi/processor/oam.go:9 - NEF context only exposes outbound token acquisition (
GetTokenCtx); there is no inbound authorization path:NFs/nef/internal/context/nef_context.go:153
PoC
Reproduced against the running NEF at http://10.100.200.19:8000 with no Authorization header:
curl -i http://10.100.200.19:8000/nnef-oam/v1/
Observed output:
HTTP/1.1 200 OK
null
NEF container logs (docker logs nef) show the request being served while OAuth is enabled:
[INFO][NEF][GIN] | 200 | GET | /nnef-oam/v1/
Impact
Missing inbound authentication (CWE-306) and authorization (CWE-862) on the NEF OAM SBI route group. Severity is scored against the OAM route group's intended capability surface (Operations / Administration / Maintenance), NOT against the current stub handler. The current handler is a stub that returns null, but the defect is route-group-scoped: there is no auth middleware on the group at all, so every future OAM operation added behind this group inherits the missing inbound auth boundary by default.
Any party that can reach NEF on the SBI can:
- Probe and enumerate the OAM route surface anonymously today.
- Hit any future OAM-group endpoint (read, modify, restart-style operations) anonymously, because the auth boundary does not exist for this group.
Operators who assume OAuth2 setting receive from NRF: true enforces inbound auth on NEF are wrong for this route group.
Affected: free5gc v4.2.1.
Upstream issue: https://github.com/free5gc/free5gc/issues/861 Upstream fix: https://github.com/free5gc/nef/pull/23
Go Vulnerability Database
free5GC's NEF nnef-oam route group is unauthenticated; no-token requests reach the OAM handler in github.com/free5gc/nef
NVD (es)
free5GC es una implementación de código abierto de la red central 5G. Antes de la versión 4.2.2, el NEF de free5GC monta el grupo de rutas nnef-oam sin autorización de entrada OAuth2/token de portador. Un atacante de red que puede alcanzar el NEF en la SBI puede acceder a la ruta OAM sin ningún encabezado de autorización y el gestor devuelve 200 OK. El gestor OAM actual es un stub que devuelve nulo, pero el defecto estructural está limitado al grupo de rutas: todo el grupo de rutas OAM no tiene middleware de autenticación de entrada, por lo que cada futura operación OAM añadida a este grupo hereda el límite de autenticación faltante por defecto. Esta vulnerabilidad se corrige en la versión 4.2.2.
References
| https://github.com/free5gc/free5gc/security/advisories/GHSA-cmpj-2x3g-m7g3 | advisory, exploit, vendor-advisory, web | |
| https://github.com/free5gc/free5gc/issues/861 | exploit, issue-tracking, web | |
| https://github.com/free5gc/nef/pull/23 | fix, issue-tracking, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-44327 | advisory | |
| https://github.com/free5gc/free5gc | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44327 changed 2026-05-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cmpj-2x3g-m7g3 changed 2026-07-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5326 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-44327 changed 2026-10-14 | Public domain |