CVE-2026-42083
JSON

8.2high

free5GC: PCF Npcf_SMPolicyControl missing authentication middleware allows unauthenticated access to SM policy handlers and disclosure of subscriber SUPI

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6rgm-gr97-x3j5GO-2026-5189

Description

free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, PCF Npcf_SMPolicyControl missing authentication middleware allows unauthenticated access to SM policy handlers and disclosure of subscriber SUPI. In NewServer(), the smPolicyGroup route group is created and routes are applied without attaching the router authorization middleware. In contrast, other PCF service groups such as Npcf_PolicyAuthorization do attach RouterAuthorizationCheck before route registration. Because the middleware is missing, requests to the /npcf-smpolicycontrol/v1/sm-policies, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/update, and /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/delete endpoints can reach business logic even when no valid OAuth token is provided. This vulnerability is fixed in 4.2.2.

Affected

Product or packageVersionsReported by
free5gc free5gc< 4.2.2, before 4.2.2CVE List, NVD
github.com/free5gc/pcf (Go)before 1.4.3GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-862

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, PCF Npcf_SMPolicyControl missing authentication middleware allows unauthenticated access to SM policy handlers and disclosure of subscriber SUPI. In NewServer(), the smPolicyGroup route group is created and routes are applied without attaching the router authorization middleware. In contrast, other PCF service groups such as Npcf_PolicyAuthorization do attach RouterAuthorizationCheck before route registration. Because the middleware is missing, requests to the /npcf-smpolicycontrol/v1/sm-policies, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/update, and /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/delete endpoints can reach business logic even when no valid OAuth token is provided. This vulnerability is fixed in 4.2.2.

GitHub Advisory Database
Summary

PCF Npcf_SMPolicyControl missing authentication middleware allows unauthenticated access to SM policy handlers and disclosure of subscriber SUPI

Details

In NewServer(), the smPolicyGroup route group is created and routes are applied without attaching the router authorization middleware. In contrast, other PCF service groups such as Npcf_PolicyAuthorization do attach RouterAuthorizationCheck before route registration.

Because the middleware is missing, requests to the following endpoints can reach business logic even when no valid OAuth token is provided:

  • POST /npcf-smpolicycontrol/v1/sm-policies
  • GET /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}
  • POST /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/update
  • POST /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/delete

This is visible at runtime because unauthenticated requests return business-level responses such as 400 or 404 instead of being rejected with 401 before handler execution. Under valid lab preconditions (existing UE/session context and related policy data), unauthenticated POST /sm-policies can succeed with 201, and unauthenticated GET /sm-policies/{id} can succeed with 200 and return policy context containing subscriber identifiers including supi.

The root cause is missing router auth enforcement for Npcf_SMPolicyControl. Upstream also fixed this by adding RouterAuthorizationCheck to smPolicyGroup (and uePolicyGroup) in free5gc/pcf PR #63.

PoC
  1. Deploy free5GC with PCF reachable on the SBI network.
  2. Use the PoC against the PCF service without an Authorization header:
    go run /home/ubuntu/free5gc/tools/npcf-smpolicy-noauth-poc/main.go \
      --pcf-root /home/ubuntu/free5gc/NFs/pcf \
      --pcf-url http://10.100.200.9:8000 \
      --timeout 4s
    

Observe that unauthenticated requests to Npcf_SMPolicyControl return business responses instead of 401.

Impact

This is an authentication/authorization bypass on a network-accessible SBI service. Any unauthenticated actor able to reach the PCF SBI interface can invoke Npcf_SMPolicyControl handlers directly.

Go Vulnerability Database

Free5GC PCF: Missing authentication middleware in Npcf_SMPolicyControl allows access to SM policy handlers and disclosure of subscriber SUPI in github.com/free5gc/pcf

NVD (es)

free5GC es una implementación de código abierto de la red central 5G. Antes de la versión 4.2.2, la falta de middleware de autenticación en PCF Npcf_SMPolicyControl permite el acceso no autenticado a los manejadores de políticas SM y la divulgación del SUPI del suscriptor. En NewServer(), el grupo de rutas smPolicyGroup se crea y las rutas se aplican sin adjuntar el middleware de autorización del router. En contraste, otros grupos de servicios PCF como Npcf_PolicyAuthorization sí adjuntan RouterAuthorizationCheck antes del registro de rutas. Debido a que el middleware falta, las solicitudes a los endpoints /npcf-smpolicycontrol/v1/sm-policies, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}, /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/update y /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/delete pueden alcanzar la lógica de negocio incluso cuando no se proporciona un token OAuth válido. Esta vulnerabilidad está corregida en la versión 4.2.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42083 changed 2026-05-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-6rgm-gr97-x3j5 changed 2026-06-25CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5189 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-42083 changed 2026-10-14Public domain