
This repository contains the Proof-of-Concept (PoC) exploit scripts for two vulnerabilities, CVE-2025-41067 and CVE-2025-41068. These vulnerabilities affect the NRF (Network Repository Function) component of Open5GS in versions prior to 2.7.6 and can be triggered by an attacker to cause a Denial of Service (DoS).
This repository contains Proof-of-Concept (PoC) exploit scripts for two high-severity vulnerabilities discovered in NewPlane's Open5GS. These vulnerabilities can be triggered by an attacker to cause a Denial of Service (DoS) in the NRF (Network Repository Function) component.
CVE-2025-41067, CVE-2025-410682.7.6The coordinated disclosure and official advisory for these vulnerabilities can be found on INCIBE's website:
The vulnerabilities are reachable assertions within the Open5GS NRF. An attacker with network connectivity to the NRF's HTTP/2 interface can send specific sequences of API requests that cause the open5gs-nrfd process to crash. This renders the 5G network's discovery service inoperable.
This repository includes two distinct scripts to trigger the crash through different methods.
CVE-2025-41067.py
This script triggers the vulnerability by performing the following actions:
/nnrf-nfm/v1/nf-instances endpoint to get a list of all network functions.nfType is NRF.DELETE request for each identified NRF instance. This action on a self-referential instance causes the NRF process to crash.CVE-2025-41068.py
This script triggers a similar vulnerability through a different vector:
PUT request to register a new NF instance with a non-existent nfType ('EMF').httpx library with HTTP/2 support.You can install the necessary dependency with pip:
pip install -r requirements.txt
Both scripts are run from the command line, with the IP address of the target Open5GS NRF as the only argument.
To run the deletion-based exploit:
python CVE-2025-41067.py <NRF_TARGET_IP>
To run the registration-based exploit:
python CVE-2025-41068.py <NRF_TARGET_IP>
Example:
python CVE-2025-41067.py 192.168.50.10
These scripts are intended for educational purposes, authorized security testing, and research only. The author is not responsible for any misuse or damage caused by these tools. Always obtain explicit permission before testing on any system you do not own.
v2.7.6.