free5GC NRF Discovery EncodeGroupId Function Panics on Malformed group-id-list Parameter
free5GC is an open source 5G core network. free5GC NRF prior to version 1.4.2 has an Improper Input Validation vulnerability leading to Denial of Service. All deployments of free5GC using the NRF discovery service are affected. The `EncodeGroupId` function attempts to access array indices [0], [1], [2] without validating the length of the split data. When the parameter contains insufficient separator characters, the code panics with "index out of range". A remote attacker can cause the NRF service to panic and crash by sending a crafted HTTP GET request with a malformed `group-id-list` parameter. This results in complete denial of service for the NRF discovery service. free5GC NRF version 1.4.2 fixes the issue. There is no direct workaround at the application level. The recommendation is to apply the provided patch or restrict access to the NRF API to trusted sources only.
References
- https://github.com/free5gc/free5gc/security/advisories/GHSA-7c47-xr7q-p6hg x_refsource_CONFIRM
- https://github.com/free5gc/free5gc/issues/777 x_refsource_MISC
- https://github.com/free5gc/nrf/pull/80 x_refsource_MISC
- https://github.com/free5gc/nrf/commit/dac77d8f8f2e0f041c5634fb3c685dcb9734b872 x_refsource_MISC
Affected products
- ==< 1.4.2
Matching in nixpkgs
pkgs.nrf-udev
Udev rules for nRF (Nordic Semiconductor) development kits
pkgs.nrf5-sdk
Nordic Semiconductor nRF5 Software Development Kit
pkgs.adafruit-nrfutil
Modified version of Nordic's nrfutil 0.5.x for use with the Adafruit Feather nRF52
-
nixos-unstable 0.5.3.post17
- nixpkgs-unstable 0.5.3.post17
- nixos-unstable-small 0.5.3.post17
-
nixos-25.11 0.5.3.post17
- nixos-25.11-small 0.5.3.post17
- nixpkgs-25.11-darwin 0.5.3.post17
Package maintainers
-
@StarGate01 Christoph Honal <christoph.honal@web.de>
-
@h7x4 h7x4 <h7x4@nani.wtf>