CVE-2026-32937: Github.com/free5gc/chf Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-6g43-577r-wf4x
CWE-129
Published
Advisory Summary

CVE-2026-32937 is a HIGH denial of service vulnerability (CWE-129: Improper Validation of Array Index) affecting Github.com/free5gc/chf libraries in the Go ecosystem. The issue involves out-of-bounds slice access in free5gc chf leading to dos. Remediation is available by upgrading affected packages to version 1.2.2.

CVE-2026-32937 at a Glance

CVE Identifier CVE-2026-32937
GHSA Identifier GHSA-6g43-577r-wf4x
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-129: Improper Validation of Array Index
Affected Product Github.com/free5gc/chf
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-32937

To remediate this vulnerability, upgrade all affected Github.com/free5gc/chf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/free5gc/chf fixed: 1.2.2
Upgrade github.com/free5gc/chf to 1.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/free5gc/chf

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32937, inspect your project dependencies for Github.com/free5gc/chf:

inspect dependencies for github.com/free5gc/chf

Analyze the terminal output to locate any version of Github.com/free5gc/chf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-129: Improper Validation of Array Index, where the product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array. In Github.com/free5gc/chf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-32937 Affected Github.com/free5gc/chf Versions

1 component(s)
Fixed Versions:
1.2.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/free5gc/chf
Go
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is CVE-2026-32937?
CVE-2026-32937 is a security vulnerability in Github.com/free5gc/chf involving Out-of-Bounds Slice Access in free5GC CHF Leading to DoS under CWE-129: Improper Validation of Array Index.
Which Github.com/free5gc/chf versions are affected?
Affected versions include releases prior to 1.2.2 across affected packages: github.com/free5gc/chf.
What version fixes CVE-2026-32937?
Upgrading to 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/free5gc/chf affected?
Yes, github.com/free5gc/chf is affected in releases prior to 1.2.2. Upgrade your dependency to 1.2.2 or later.
What CWE is associated with CVE-2026-32937?
CVE-2026-32937 is classified under CWE-129: Improper Validation of Array Index (The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.).
How can I check Go dependencies for CVE-2026-32937?
Run the dependency tree command: 'inspect dependencies for github.com/free5gc/chf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6g43-577r-wf4x",
  "modified" : "2026-03-20T21:20:37Z",
  "published" : "2026-03-18T17:26:27Z",
  "aliases" : [ "CVE-2026-32937" ],
  "summary" : "Out-of-Bounds Slice Access in free5GC CHF Leading to DoS",
  "details" : "### Impact\nThis is an out-of-bounds slice access vulnerability in the CHF `nchf-convergedcharging` service.\nA 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.\n\n### Patches\nhttps://github.com/free5gc/chf/pull/61\n\n### Workarounds\n- Restrict access to the `nchf-convergedcharging` recharge endpoint to strictly trusted NF callers only.\n- Apply rate limiting or network ACLs in front of the CHF SBI interface to reduce repeated panic-trigger attempts.\n- If the recharge API is not required, temporarily disable or block external reachability to this route.\n- Ensure panic recovery, monitoring, and alerting are enabled.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/free5gc/chf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/free5gc/security/advisories/GHSA-6g43-577r-wf4x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32937"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/free5gc/issues/864"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/chf/pull/61"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/chf/commit/55af766f321a00afa978e806548c96f8a7d2433e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/free5gc/chf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-129" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-18T17:26:27Z",
    "nvd_published_at" : "2026-03-20T03:16:00Z"
  }
}