Jul 31, 2026·5 min read·16 visits
A null-byte input validation bug in free5GC AUSF crashes the authentication flow, causing Denial of Service for connecting subscribers.
Improper input validation of the supiOrSuci field in free5GC Authentication Server Function (AUSF) allows unauthenticated remote attackers to trigger an unhandled parsing exception, resulting in a Denial of Service (DoS) and internal stack trace exposure.
The Authentication Server Function (AUSF) of free5GC, an open-source 5G core network implementation, is vulnerable to improper input validation in its Service Based Interface (SBI) endpoint. Prior to version 1.4.5 of the AUSF component, the service accepts user-supplied string fields without verification or sanitization.
This lack of validation exposes a critical attack surface on the HTTP/2 API endpoint /nausf-auth/v1/ue-authentications. An unauthenticated remote attacker can supply malformed requests targeting the subscription identifiers, which propagates downstream to internal network functions.
The vulnerability manifests when the AUSF processes the supiOrSuci key in the request payload. By sending control characters inside this field, the attacker forces an unhandled exception inside the Go standard library, culminating in service unavailability.
The root cause of this vulnerability lies in the improper handling of string variables inside the UeAuthPostRequestProcedure function in internal/sbi/processor/ue_authentication.go. The Go programming language standard library encoding/json decodes incoming JSON payloads without rejecting or escaping embedded control characters, including null bytes (\x00).
When a client submits an authentication request containing raw null bytes in the supiOrSuci parameter, the JSON unmarshaler deserializes the malformed string. The AUSF then uses this parameter to construct an outbound HTTP request aimed at the Unified Data Management (UDM) network function.
The dynamic URL string generation process appends the unvalidated supiOrSuci value directly into the URL path segment. When the constructed URL is passed to Go's net/url.Parse() function for validation prior to execution, the parsing routine detects RFC 3986 compliance violations.
Because the URL contains control characters, the Parse() function returns a syntax error. The AUSF fails to handle this specific error condition gracefully, resulting in an unhandled exception that propagates back as an HTTP 500 Internal Server Error and leaks stack trace data.
An inspection of the vulnerable codebase in internal/sbi/processor/ue_authentication.go reveals that the supiOrSuci variable was retrieved and directly formatted into the UDM destination URL string.
// Vulnerable Code Path
func (p *Processor) UeAuthPostRequestProcedure(c *gin.Context, updateAuthenticationInfo models.UpdateAuthenticationInfo) {
...
supiOrSuci := updateAuthenticationInfo.SupiOrSuci
// The value of supiOrSuci is immediately utilized without any format checks
snName := updateAuthenticationInfo.ServingNetworkName
...
udmURL := fmt.Sprintf("http://%s/nudm-ueau/v1/%s/security-information/...", udmAddr, supiOrSuci)
// Go's net/url.Parse evaluates udmURL here, resulting in an unhandled parsing error
}The patch introduced in commit bfc4a10094dbacbd862baa4686829f3fcc06ce1e inserts two validator functions to sanitize the incoming identifier.
// Patched Code Path
func (p *Processor) UeAuthPostRequestProcedure(c *gin.Context, updateAuthenticationInfo models.UpdateAuthenticationInfo) {
...
supiOrSuci := updateAuthenticationInfo.SupiOrSuci
// Added validation block to catch malformed inputs
if !validator.IsValidSupi(supiOrSuci) && !validator.IsValidSuci(supiOrSuci) {
logger.UeAuthLog.Warnf("invalid supiOrSuci in UE authentication request: %q", supiOrSuci)
problemDetails := models.ProblemDetails{
Title: "Malformed request syntax",
Status: http.StatusBadRequest,
Detail: "supiOrSuci must be a valid SUPI or SUCI",
Cause: "MALFORMED_SUPI_OR_SUCI",
}
c.Set(sbi.IN_PB_DETAILS_CTX_STR, problemDetails.Cause)
c.JSON(http.StatusBadRequest, problemDetails)
return
}
snName := updateAuthenticationInfo.ServingNetworkName
...
}This validator check ensures that the input conforms strictly to the structural rules of Subscriber Permanent Identifiers (SUPI) and Subscription Concealed Identifiers (SUCI). Any input containing non-conforming characters or control bytes is safely rejected before reaching the URL parser.
Exploitation of CVE-2026-53551 does not require prior authentication or specialized network permissions. The attacker needs only network-level access to the Service Based Interface (SBI) endpoint of the AUSF, typically hosted on TCP port 8000.
The attack vector involves sending a single HTTP POST request to /nausf-auth/v1/ue-authentications with a JSON payload where the supiOrSuci field contains null bytes. The structure of the exploit request is illustrated in the following sequence:
By repeatedly issuing this malformed request, an attacker can consume processing threads and memory resources as the service struggles with consecutive unhandled exceptions. This sequence effectively triggers a Denial of Service for all valid core network subscribers attempting to authenticate.
The impact of this vulnerability is categorized as a partial Denial of Service on a core network component. Since the AUSF is responsible for processing all user authentication requests, a disruption in this component prevents any new User Equipment (UE) from connecting to the 5G core.
In addition to service disruption, the vulnerability causes information disclosure. The Go runtime logs and returning payloads leak detailed system stack traces and error metadata that can aid attackers in mapping the internal network topology and component versions.
The CVSS v4.0 rating is calculated as 6.9, with a focus on low availability impact on the network service itself. Because free5GC is commonly used in private 5G deployments, enterprise networks, and testbed environments, the threat surface is localized to networks exposing the SBI endpoints.
The primary remediation path is upgrading the affected software components to versions containing the validation patch. Operators must transition to free5GC version 4.2.2 or higher, which includes AUSF version 1.4.5.
For environments where immediate system upgrades are not possible, operators should deploy an API Gateway or Web Application Firewall (WAF) in front of the AUSF SBI interface. The gateway must be configured to inspect HTTP/2 POST requests targeting /nausf-auth/v1/ue-authentications and discard payloads containing control characters.
Additionally, network segregation should be enforced. The Service Based Interface must be restricted to internal network segments (the 5G Core control plane) and isolated from the public internet or untrusted user-plane segments.
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| Product | Affected Versions | Fixed Version |
|---|---|---|
ausf free5gc | < 1.4.5 | 1.4.5 |
free5gc free5gc | < 4.2.2 | 4.2.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-20 |
| Attack Vector | Network (Unauthenticated) |
| CVSS v4.0 | 6.9 (Medium) |
| Impact | Denial of Service (DoS) |
| Exploit Status | PoC available |
| CISA KEV Status | Not Listed |
The product receives input or data, but does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.
CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.
A denial-of-service vulnerability exists in the Go library github.com/insomniacslk/dhcp within the dhcpv4/nclient4 subpackage. In affected versions, the raw packet parsing function BroadcastRawUDPConn.ReadFrom subtracts the fixed 8-byte UDP header length from the IPv4 payload length declared in the packet header without first verifying that the declared payload length is at least 8 bytes. An unauthenticated attacker on an adjacent local network segment can broadcast or unicast a malformed IPv4 packet with a declared payload length between 0 and 7 bytes, causing a signed integer underflow that passes a negative slice bound into buf.Consume and triggers an unhandled Go runtime panic.
CVE-2026-63305 (GHSA-g9x9-q7qj-6mv5) is an operating system command injection vulnerability affecting WWBN AVideo (formerly YouPHPTube) versions up to and including 29.0. The defect resides in the standalone FFmpeg execution handler at plugin/API/standAlone/ffmpeg.json.php. When assembling asynchronous post-processing commands, the script concatenates the notifyCode and callback properties from a decrypted payload directly into a shell command string without sanitization. An attacker capable of providing or forging a valid encrypted execution payload can inject shell metacharacters to achieve remote code execution under the privileges of the web server user.
The cakephp/twig-view plugin integrates the Twig templating engine into the CakePHP framework. Prior to versions 1.3.3 and 2.1.2, the UtilsExtension class exposes PHP's native unserialize() function as a Twig filter without restricting allowed classes. When untrusted data is passed into the unserialize filter within a template, an attacker can trigger PHP Object Injection and execute Property-Oriented Programming (POP) gadget chains, leading to arbitrary code execution or data manipulation.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.