{"id":"CVE-2026-44320","aliases":["CVE-2026-44320","GHSA-wqfh-gq79-j8mf","GO-2026-5717"],"related":[],"kind":"vulnerability","state":"published","title":"free5GC: NEF nnef-callback route group is unauthenticated; forged callback requests are accepted into the processing path","summary":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's NEF mounts the nnef-callback route group without inbound OAuth2/bearer-token authorization. A forged or arbitrary bearer token (e.g. Authorization: Bearer not-a-real-token) is enough to reach the SMF-callback handler -- the callback body is parsed and dispatched into NEF business logic instead of being rejected at the auth boundary. Same root cause as the other NEF SBI findings: the route group is mounted without any inbound auth middleware. NEF does not authenticate the producer NF identity before processing callback content; if an attacker can guess or obtain a valid NotifId, this missing auth boundary lets forged callbacks act on real subscription state. The route group is also reachable even when the runtime ServiceList does not declare it (it lists only nnef-pfdmanagement and nnef-oam). This vulnerability is fixed in 4.2.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's NEF mounts the nnef-callback route group without inbound OAuth2/bearer-token authorization. A forged or arbitrary bearer token (e.g. Authorization: Bearer not-a-real-token) is enough to reach the SMF-callback handler -- the callback body is parsed and dispatched into NEF business logic instead of being rejected at the auth boundary. Same root cause as the other NEF SBI findings: the route group is mounted without any inbound auth middleware. NEF does not authenticate the producer NF identity before processing callback content; if an attacker can guess or obtain a valid NotifId, this missing auth boundary lets forged callbacks act on real subscription state. The route group is also reachable even when the runtime ServiceList does not declare it (it lists only nnef-pfdmanagement and nnef-oam). This vulnerability is fixed in 4.2.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nfree5GC's NEF mounts the `nnef-callback` route group without inbound OAuth2/bearer-token authorization. A forged or arbitrary bearer token (e.g. `Authorization: Bearer not-a-real-token`) is enough to reach the SMF-callback handler -- the callback body is parsed and dispatched into NEF business logic instead of being rejected at the auth boundary. Same root cause as the other NEF SBI findings: the route group is mounted without any inbound auth middleware. NEF does not authenticate the producer NF identity before processing callback content; if an attacker can guess or obtain a valid `NotifId`, this missing auth boundary lets forged callbacks act on real subscription state. The route group is also reachable even when the runtime `ServiceList` does not declare it (it lists only `nnef-pfdmanagement` and `nnef-oam`).\n\n### Details\nValidated against the NEF container in the official Docker compose lab.\n- Running Docker image: `free5gc/nef:v4.2.1`\n- Docker validation date: 2026-03-11\n\nNEF advertises `OAuth2 setting receive from NRF: true`, yet the `nnef-callback` route group is mounted with no inbound auth middleware. The API layer reads the raw request body and deserializes it before any auth check, then the processor looks up subscription state by `NotifId`.\n\nCode evidence (paths in `free5gc/nef`):\n- Callback route group mounted without auth middleware: `NFs/nef/internal/sbi/server.go:64`\n- Callback route exposed at `/notification/smf`: `NFs/nef/internal/sbi/api_callback.go:13`\n- API layer reads raw request bytes and deserializes them before any auth check: `NFs/nef/internal/sbi/api_callback.go:23`\n- Processor looks up the subscription by `NotifId`: `NFs/nef/internal/sbi/processor/callback.go:13`\n- NEF context only exposes outbound token acquisition (`GetTokenCtx`); there is no inbound authorization path: `NFs/nef/internal/context/nef_context.go:153`\n- Config validation only allows `nnef-pfdmanagement` and `nnef-oam`: `NFs/nef/pkg/factory/config.go:126`\n\n### PoC\nReproduced against the running NEF at `http://10.100.200.19:8000` using a fabricated bearer token.\n\nSend a forged callback request:\n```\ncurl -i \\\n  -H 'Authorization: Bearer not-a-real-token' \\\n  -H 'Content-Type: application/json' \\\n  --data '{\"notifId\":\"forged-notif\",\"eventNotifs\":[]}' \\\n  http://10.100.200.19:8000/nnef-callback/v1/notification/smf\n```\n\nObserved output:\n```\nHTTP/1.1 404 Not Found\n{\"title\":\"Data not found\",\"status\":404,\"detail\":\"Subscription is not found\"}\n```\n\nThe `404` is positive auth-bypass evidence: the request was parsed and dispatched into the callback business handler instead of being rejected at the auth boundary. NEF container logs (`docker logs nef`) confirm the callback handler was reached:\n```\n[INFO][NEF][TraffInfl] SmfNotification - NotifId[forged-notif]\n[INFO][NEF][GIN] | 404 | POST | /nnef-callback/v1/notification/smf\n```\n\n### Impact\nMissing inbound authentication (CWE-306) and authorization (CWE-862) on the NEF `nnef-callback` SBI route group. This is the trusted ingestion point for SMF -> NEF notifications. The defect is route-group-scoped: there is no auth middleware on the group at all, so every callback endpoint inside this group inherits the missing inbound auth boundary. Severity is scored against the route group's intended capability surface (consume SMF notifications and mutate NEF / downstream subscription state), NOT against the specific PoC where the chosen `NotifId` happened to be invalid.\n\nAny party that can reach NEF on the SBI can:\n- Submit forged SMF callbacks to NEF anonymously, with body content fully controlled by the attacker.\n- Reach NEF callback business logic without proving producer NF identity, so any attacker who can guess or obtain a valid `NotifId` can deliver forged event notifications against real subscription state -- corrupting AF traffic-influence / PFD-management subscription views and the downstream SMF/UPF policy decisions that depend on them.\n- Hit any future callback added behind this same route group anonymously, because the auth boundary does not exist for this group.\n\nThe `nnef-callback` route group is also reachable even when the runtime `ServiceList` does not declare it, so operators relying on `ServiceList` to disable the service do not actually get that protection.\n\nAffected: free5gc v4.2.1.\n\nUpstream issue: https://github.com/free5gc/free5gc/issues/860\nUpstream fix: https://github.com/free5gc/nef/pull/24","format":"markdown","source":"ghsa"},{"lang":"en","text":"free5GC's NEF nnef-callback route group is unauthenticated; forged callback requests are accepted into the processing path in github.com/free5gc/nef","format":"markdown","source":"go"},{"lang":"es","text":"free5GC es una implementación de código abierto de la red central 5G. Anteriormente a la 4.2.2, el NEF de free5GC monta el grupo de rutas nnef-callback sin autorización de entrada OAuth2/token de portador. Un token de portador falsificado o arbitrario (por ejemplo, Authorization: Bearer not-a-real-token) es suficiente para alcanzar el gestor de SMF-callback; el cuerpo de la devolución de llamada se analiza y se envía a la lógica de negocio del NEF en lugar de ser rechazado en el límite de autenticación. La misma causa raíz que los otros hallazgos de SBI del NEF: el grupo de rutas se monta sin ningún middleware de autenticación de entrada. El NEF no autentica la identidad del NF productor antes de procesar el contenido de la devolución de llamada; si un atacante puede adivinar u obtener un NotifId válido, este límite de autenticación faltante permite que las devoluciones de llamada falsificadas actúen sobre el estado real de la suscripción. El grupo de rutas también es accesible incluso cuando la ServiceList en tiempo de ejecución no lo declara (solo enumera nnef-pfdmanagement y nnef-oam). Esta vulnerabilidad se corrige en la versión 4.2.2.","source":"nvd"}],"published":"2026-05-08T22:46:37.000Z","modified":"2026-10-14T20:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-306","CWE-862"],"affected":[{"ranges":[{"version":"< 4.2.2","status":"affected"}],"vendor":"free5gc","product":"free5gc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.2.3"}],"ecosystem":"Go","package":"github.com/free5gc/nef","purl":"pkg:golang/github.com/free5gc/nef","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/free5gc/nef","purl":"pkg:golang/github.com/free5gc/nef","source":"go"},{"ranges":[{"status":"affected","fixed":"4.2.2"}],"vendor":"free5gc","product":"free5gc","cpe":"cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/free5gc/free5gc/security/advisories/GHSA-wqfh-gq79-j8mf","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/free5gc/free5gc/issues/860","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/free5gc/nef/pull/24","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44320","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/free5gc/free5gc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-27T17:44:44.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44320","url":"https://www.cve.org/CVERecord?id=CVE-2026-44320","licence":"CVE Terms of Use","modified":"2026-05-27T17:44:48.702Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wqfh-gq79-j8mf","url":"https://github.com/advisories/GHSA-wqfh-gq79-j8mf","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:41.845Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5717","url":"https://pkg.go.dev/vuln/GO-2026-5717","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:28.028Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44320","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44320","licence":"Public domain","modified":"2026-10-14T20:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:22.615Z","epss":{"score":0.00382,"percentile":0.23992,"date":"2026-11-30T12:00:22.000Z"}}