GHSA-6g43-577r-wf4x

Suggest an improvement
Source
https://github.com/advisories/GHSA-6g43-577r-wf4x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-6g43-577r-wf4x/GHSA-6g43-577r-wf4x.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-6g43-577r-wf4x
Aliases
Published
2026-03-18T17:26:27Z
Modified
2026-03-23T18:56:26Z
Severity
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Out-of-Bounds Slice Access in free5GC CHF Leading to DoS
Details

Impact

This is 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.

Patches

https://github.com/free5gc/chf/pull/61

Workarounds

  • 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.
  • Ensure panic recovery, monitoring, and alerting are enabled.
Database specific
{
    "cwe_ids":  [
        "CWE-129"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-18T17:26:27Z",
    "nvd_published_at":  "2026-03-20T03:16:00Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/free5gc/chf

Package

Name
github.com/free5gc/chf
View open source insights on deps.dev
Purl
pkg:golang/github.com/free5gc/chf

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-6g43-577r-wf4x/GHSA-6g43-577r-wf4x.json"