CVE-2025-9405

5.3 MEDIUM

📋 TL;DR

A reachable assertion vulnerability in Open5GS AMF component allows remote attackers to cause denial of service by triggering an assertion failure in the gmm_state_exception function. This affects Open5GS deployments up to version 2.7.5 that expose the AMF service to untrusted networks.

💻 Affected Systems

Products:
  • Open5GS
Versions: Up to and including 2.7.5
Operating Systems: Linux, BSD systems where Open5GS is deployed
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects deployments with AMF component enabled and accessible to attackers.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete denial of service for the AMF component, disrupting 5G core network functionality and preventing new device registrations.

🟠

Likely Case

Service disruption and potential crash of the AMF process, requiring manual restart.

🟢

If Mitigated

Limited impact with proper network segmentation and monitoring to detect and respond to exploitation attempts.

🌐 Internet-Facing: HIGH - Attack can be launched remotely without authentication, making internet-facing deployments particularly vulnerable.
🏢 Internal Only: MEDIUM - Internal attackers or compromised devices could exploit this to disrupt 5G core services.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public exploit code exists in the referenced GitHub repository. Attack requires network access to AMF service.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in commit 8e5fed16114f2f5e40bee1b161914b592b2b7b8f and later versions

Vendor Advisory: https://github.com/open5gs/open5gs/issues/3947

Restart Required: Yes

Instructions:

1. Update Open5GS to version after 2.7.5 or apply commit 8e5fed16114f2f5e40bee1b161914b592b2b7b8f. 2. Rebuild from source. 3. Restart AMF service.

🔧 Temporary Workarounds

Network Segmentation

Linux

Restrict access to AMF service to trusted networks only

iptables -A INPUT -p tcp --dport 38412 -s trusted_network -j ACCEPT
iptables -A INPUT -p tcp --dport 38412 -j DROP

🧯 If You Can't Patch

  • Implement strict network access controls to limit AMF service exposure
  • Deploy monitoring and alerting for AMF process crashes or abnormal behavior

🔍 How to Verify

Check if Vulnerable:

Check Open5GS version: open5gs-amfd --version. If version is 2.7.5 or earlier, system is vulnerable.

Check Version:

open5gs-amfd --version

Verify Fix Applied:

Verify commit hash includes 8e5fed16114f2f5e40bee1b161914b592b2b7b8f or version is later than 2.7.5

📡 Detection & Monitoring

Log Indicators:

  • AMF process crashes
  • Assertion failures in gmm_state_exception
  • Abnormal termination of amfd service

Network Indicators:

  • Unusual traffic patterns to AMF port 38412
  • Multiple connection attempts from single sources

SIEM Query:

process:amfd AND (event:crash OR event:assertion_failure)

🔗 References

📤 Share & Export