/

CVE-2026-51368

Severity:

CRITICAL RISK

(9.8)

Unsafe Deserialization (CWE-502) in TongWeb Console

CVE-2026-51368

Deferred

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(9.8)

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 critical unsafe deserialization vulnerability in Beijing Tongtech TongWeb may allow a remote attacker to execute arbitrary code through the Spring HttpInvokerServiceExporter component.

The issue becomes risky when the console endpoint processes attacker-controlled serialized request data without sufficiently restricting object types or deserialization behavior.

Affected context

The vulnerability affects TongWeb deployments using version 7.0.24 where the Spring HttpInvokerServiceExporter component is available through the console/heimdall endpoint. Risk depends on network exposure of that endpoint and whether crafted request data reaches an unsafe deserialization path before authentication, authorization, or object validation controls are applied.

Exploit preconditions

  • Attack surface: The HTTP-accessible console/heimdall endpoint
  • Required access: Network reachability to the affected endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing of a crafted request by the Spring HttpInvokerServiceExporter component
  • Why exploitation is possible: Serialized input may be interpreted as object data without adequate restrictions on the classes or behaviors that can be instantiated

Why this happens

The underlying bug is an unsafe deserialization pattern in which externally supplied serialized data is treated as trusted object state. If the deserialization process permits attacker-influenced types or object construction behaviors, processing the request can invoke unintended application logic. This behavior maps to CWE-502: Deserialization of Untrusted Data.

Potential impact

  • An attacker could execute arbitrary code with the privileges of the TongWeb process
  • The application server may be compromised or disrupted
  • Confidential data accessible to the service could be exposed
  • The compromised host could be used for lateral movement or further attacks
  • Application integrity and availability may be affected

General mitigation guidance

Mitigation generally focuses on removing unsafe deserialization paths and reducing trust in serialized request data.

Common defensive patterns include:

  • Prefer non-executable, data-only request formats with strict schemas
  • Use allowlisted types and restricted deserialization mechanisms where serialization is required
  • Require authentication and authorization before processing sensitive endpoint requests
  • Limit exposure of administrative and console endpoints to trusted network segments
  • Run the application with least privilege and isolate sensitive service capabilities
  • Apply request-size, content-type, and protocol validation before object processing

How teams detect issues like this

Detection approaches may include:

  • Static analysis for Java deserialization APIs and Spring HttpInvoker usage on externally reachable endpoints
  • Code review checks for unrestricted type resolution, dynamic class loading, or deserialization before authorization
  • Application and network monitoring for unusual requests to console or administrative endpoints
  • Policy enforcement requiring authentication and network restrictions for management interfaces
  • Automated security scanning and code review tools that flag CWE-502 patterns

Sources

SourceLink
gist.github.comgist.github.com/loseyourself1/726a3c9dfe53dd90f71cacb63d988766
gist.github.comgist.github.com/loseyourself1/b3de4edf11994bb0a791e5f73bab421b

Frequently asked

questions

It may be remotely exploitable when the affected console endpoint is network-reachable and accepts attacker-controlled requests. Actual exploitability depends on authentication, authorization, and deployment exposure.

Not necessarily. The required access depends on the application's security configuration and whether the endpoint enforces authentication before deserialization occurs.

The safest pattern is to avoid deserializing untrusted data and use a restricted, schema-validated data format. If serialization is unavoidable, enforce strict type allowlists and authorization before processing requests.

Limit administrative endpoint exposure, apply least privilege, review deserialization paths during development, and enforce static-analysis and security policies for unsafe object handling.

Find out what's already
exploitable in your codebase.