free5GC CHF has Out-of-Bounds Slice Access that Leads to DoS
Description
free5GC is an open source 5G core network. free5GC CHF prior to version 1.2.2 has an out-of-bounds slice access vulnerability in the CHF nchf-convergedcharging service. A valid authenticated request to PUT /nchf-convergedcharging/v3/recharging/:ueId?ratingGroup=... can trigger a server-side panic in github.com/free5gc/chf/internal/sbi.(*Server).RechargePut(...) due to an out-of-range slice access. In the reported runtime, Gin recovery converts the panic into HTTP 500, but the recharge path remains remotely panic-triggerable and can be abused repeatedly to degrade recharge functionality and flood logs. In deployments without equivalent recovery handling, this panic may cause more severe service disruption. free5GC CHF patches the issue. Some workarounds are available: Restrict access to the nchf-convergedcharging recharge endpoint to strictly trusted NF callers only; apply rate limiting or network ACLs in front of the CHF SBI interface to reduce repeated panic-trigger attempts; if the recharge API is not required, temporarily disable or block external reachability to this route; and/or ensure panic recovery, monitoring, and alerting are enabled.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/free5gc/chfGo | < 1.2.2 | 1.2.2 |
Affected products
3- ghsa-coords2 versions
< 1.2.2+ 1 more
- (no CPE)range: < 1.2.2
- (no CPE)range: < 0.0.20260326T203309-150000.1.155.2
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-6g43-577r-wf4xghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-32937ghsaADVISORY
- github.com/free5gc/chf/commit/55af766f321a00afa978e806548c96f8a7d2433eghsax_refsource_MISCWEB
- github.com/free5gc/chf/pull/61ghsax_refsource_MISCWEB
- github.com/free5gc/free5gc/issues/864ghsax_refsource_MISCWEB
- github.com/free5gc/free5gc/security/advisories/GHSA-6g43-577r-wf4xghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.