/

CVE-2026-30058

Severity:

HIGH RISK

(7.5)

Improper Input Validation (CWE-20) in free5gc HTTP Handler

CVE-2026-30058

Deferred

Vulnerability type

Category:

Improper Input Validation

CWE:

CWE-20

Impact:

Denial of Service

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A high-severity input validation vulnerability in free5gc's HTTPModifySubscription handler may allow an attacker to trigger a denial-of-service condition with specially crafted input.

The issue becomes risky when externally supplied request data reaches the handler without sufficient validation, normalization, or bounds checking.

Affected context

The vulnerability occurs in deployments using the free5gc v4.0.1 HTTPModifySubscription handler. Risk depends on whether an attacker can reach the relevant HTTP service and submit subscription-modification requests that are processed without adequate validation.

Exploit preconditions

  • Attack surface: The HTTP endpoint handled by HTTPModifySubscription
  • Required access: Network access sufficient to submit requests to the affected service; authentication requirements depend on deployment configuration
  • Trigger point: Processing of a crafted subscription-modification request
  • Why exploitation is possible: Input that violates expected format, type, range, or structural constraints may reach downstream processing and cause an unhandled failure or resource exhaustion

Why this happens

The underlying issue is insufficient validation of externally controlled request data before it is used by the HTTPModifySubscription handler or related processing logic.

This maps to CWE-20: Improper Input Validation, where an application accepts input without adequately checking whether it conforms to the expected syntax, semantics, type, or range. The insecure pattern can allow malformed values to reach code paths that do not safely handle them, potentially disrupting service availability.

Potential impact

  • The affected network service may become unavailable
  • Request processing could terminate unexpectedly
  • Legitimate subscription-management operations may be disrupted
  • Repeated requests could cause broader resource exhaustion
  • Dependent network functions may experience cascading service interruptions

General mitigation guidance

Mitigation generally focuses on validating request data at the trust boundary and ensuring malformed input cannot cause uncontrolled failures.

Common defensive patterns include:

  • Applying strict allowlist validation for fields accepted by HTTPModifySubscription
  • Enforcing type, length, range, format, and structural constraints before business logic
  • Handling validation failures with bounded, predictable error responses
  • Avoiding parser and conversion behavior that can trigger excessive resource use
  • Limiting request rates and applying resource quotas at service boundaries
  • Running network functions with only the privileges and resources they require
  • Using secure-by-default validation middleware and centralized error handling

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis rules that identify unchecked request parameters and unsafe conversions
  • Code review checks for missing validation before handler, parser, or database calls
  • Fuzz testing of HTTPModifySubscription with malformed, oversized, out-of-range, and structurally invalid inputs
  • Runtime monitoring for repeated handler failures, abnormal resource consumption, and service restarts
  • API gateway policies enforcing request schemas, size limits, authentication, and rate controls
  • Automated security review tools that flag input flows lacking validation or bounded error handling

Sources

SourceLink
github.comgithub.com/free5gc/free5gc/issues/754

Frequently asked

questions

It may be remotely exploitable when the affected HTTP endpoint is reachable by an attacker and deployment controls do not prevent access to it.

Authentication requirements depend on the free5gc deployment and API exposure. The relevant prerequisite is the ability to submit input that reaches HTTPModifySubscription.

Validate all request fields against strict schemas before processing, reject malformed input safely, and ensure error paths cannot terminate the service or consume unbounded resources.

Combine schema-based validation, fuzz testing, bounded resource controls, rate limiting, centralized error handling, and continuous monitoring of handler failures.

Find out what's already
exploitable in your codebase.