Vulnerability · Published May 27, 2026 · Assigned by GitHub_M
CVE-2026-44318free5GC: BSF concurrent PUT /nbsf-management/v1/subscriptions/{subId} crashes the BSF process via concurrent map read/write on Subscriptions
Medium 6.5
In plain English
A medium-severity race condition in free5gc from free5gc. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's BSF PUT /nbsf-management/v1/subscriptions/{subId} handler has an unsynchronized write on the global Subscriptions map. The handler first reads the map under RLock() via BSFContext.GetSubscription(subId), but if the subscription does not exist, ReplaceIndividualSubcription() writes back to the same map directly without taking the mutex (bsfContext.BsfSelf.Subscriptions[subId] = subscription). Under concurrent authenticated PUT load, one goroutine can read while another writes the map, which causes the Go runtime to abort the process with fatal error: concurrent map read and map write (Go runtime panics that come from concurrent map access bypass recover() and terminate the process). The BSF container exits with code 2 -- the entire BSF SBI surface goes down until restart. This vulnerability is fixed in 4.2.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/free5gc/bsf | 1.0.2 | GHSA-27ph-8q4f-h7m7 |
| Go | github.com/free5gc/bsf | 1.0.2 | GO-2026-4994 |
Affected products (as reported)
Weakness: CWE-362, CWE-820 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/free5gc/free5gc/security/advisories/GHSA-27ph-8q4f-h7m7 x_refsource_CONFIRM
- https://github.com/free5gc/free5gc/issues/926 x_refsource_MISC
- https://github.com/free5gc/bsf/pull/7 x_refsource_MISC
- https://github.com/free5gc/bsf/commit/277908565fd628d974a13ef562b81a8b7b519ffa x_refsource_MISC