# CVE-2026-41135: free5GC PCF: Memory Leak via CORS Middleware Registration in HTTP Handler Leads to Denial of Service

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.56% (percentile 40, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-98cp-84m9-q3qp, GO-2026-5278
- **Published:** 2026-04-21T23:49:19.659Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on Go package github.com/free5gc/pcf (\< 1.4.3)
- Anyone running free5gc pcf \< 1.4.3

## Description

free5GC UDR is the Policy Control Function (PCF) for free5GC, an an open-source project for 5th generation (5G) mobile core networks. A memory leak vulnerability in versions prior to 1.4.3 allows any unauthenticated attacker with network access to the PCF SBI interface to cause uncontrolled memory growth by sending repeated HTTP requests to the OAM endpoint. The root cause is a \`router.Use()\` call inside an HTTP handler that registers a new CORS middleware on every incoming request, permanently growing the Gin router's handler chain. This leads to progressive memory exhaustion and eventual Denial of Service of the PCF, preventing all UEs from obtaining AM and SM policies and blocking 5G session establishment. Version 1.4.3 contains a patch.

## Affected and fixed versions

- Go `github.com/free5gc/pcf`: affected \< 1.4.3; fixed 1.4.3 (osv)
- free5gc pcf: \< 1.4.3 (cvelist)

## Mitigation

- Upgrade github.com/free5gc/pcf to 1.4.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-41135. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-41135.md
Affected: github.com/free5gc/pcf < 1.4.3
Fixed in: 1.4.3

Steps:
1. Search this machine and project for github.com/free5gc/pcf (Go), free5gc pcf: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-41135 being exploited?

There is no confirmed exploitation: CVE-2026-41135 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-41135?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-41135?

github.com/free5gc/pcf \< 1.4.3.

### Is there a fix for CVE-2026-41135?

Yes. Fixed in 1.4.3. Upgrade github.com/free5gc/pcf to 1.4.3 or later.

### How do I check if I'm affected by CVE-2026-41135?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/free5gc/free5gc/security/advisories/GHSA-98cp-84m9-q3qp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-41135>
- patch: <https://github.com/free5gc/pcf/commit/599803b1b2eb4611e26d5216481ee142bce71a16>
- other: <https://github.com/free5gc/free5gc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-41135>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-98cp-84m9-q3qp> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5278> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-41135> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-41135>
