free5GC PCF: Memory Leak via CORS Middleware Registration in HTTP Handler Leads to Denial of Service
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| free5gc | pcf | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Free5gc | Pcf |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-98cp-84m9-q3qp | free5GC PCF: Memory Leak via CORS Middleware Registration in HTTP Handler Leads to Denial of Service |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.515% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Free5gc free5gc
|
|
| CPEs | cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:* cpe:2.3:a:free5gc:pcf:*:*:*:*:*:*:*:* |
|
| Vendors & Products |
Free5gc free5gc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Free5gc
Free5gc pcf |
|
| Vendors & Products |
Free5gc
Free5gc pcf |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | free5GC PCF: Memory Leak via CORS Middleware Registration in HTTP Handler Leads to Denial of Service | |
| Weaknesses | CWE-400 | |
| References |
| |
| Metrics |
cvssV3_1
|