3.7 LOW
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): Low (L)
- Integrity (I): None (N)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
free5GC AUSF uses non-constant-time authentication comparisons and logs XRES* in 5G-AKA
free5GC is an open-source implementation of the 5G core network. Prior to 1.4.5, the AUSF component performs cryptographic authentication comparisons in internal/sbi/processor/ue_authentication.go with ordinary equality helpers. Auth5gAkaComfirmRequestProcedure compares RES* and XRES* with strings.EqualFold and logs the expected XRES* value at INFO level before comparison. EapAuthComfirmRequestProcedure compares AT_MAC and XMAC with bytes.Equal and evaluates XRES == RES with ordinary string equality. These comparisons can return at mismatch-dependent times, although testing did not demonstrate a practical remote timing oracle because of HTTP/SBI timing noise. The INFO log exposes authentication material to operators, log collectors, sidecars, or processes able to read AUSF logs. This issue is fixed in version 1.4.5.
References
-
https://github.com/free5gc/free5gc/security/advisories/GHSA-fp46-6vfw-gc9c x_refsource_CONFIRM
-
https://github.com/free5gc/ausf/pull/63 x_refsource_MISC
-
https://github.com/free5gc/ausf/releases/tag/v1.4.5 x_refsource_MISC
Affected products
- ==< 1.4.5
Matching in nixpkgs
pkgs.free5gc-amf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-bsf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.0.4
pkgs.free5gc-chf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.2.5
pkgs.free5gc-nef
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.2.5
pkgs.free5gc-nrf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-pcf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-smf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-udm
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-udr
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.4
pkgs.free5gc-upf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.2.12
pkgs.free5gc-ausf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-nssf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.4.5
pkgs.free5gc-tngf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.1.5
pkgs.free5gc-n3iwf
Open source 5G core network based on 3GPP R15
-
nixos-unstable -
- nixos-unstable-small 1.3.5
Package maintainers
-
@felbinger Nico Felbinger <nico@felbinger.eu>