/

CVE-2026-100308

Severity:

HIGH RISK

(7.8)

Unsafe Deserialization (CWE-502) in Amazon GluonTS Models

CVE-2026-100308

Awaiting Analysis

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-470, CWE-502

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.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

Amazon GluonTS contains an unsafe deserialization issue in its model-loading component. An attacker who can provide or influence a crafted serialized model directory may execute arbitrary operating system commands with the privileges of the process loading the model.

Affected context

The vulnerability occurs in GluonTS environments that load serialized models from directories that are not fully trusted. Risk is higher when model artifacts can be uploaded, replaced, downloaded from unverified sources, or selected through an external workflow, and when the loading process has broad operating system permissions.

Exploit preconditions

  • Attack surface: The model-loading component and serialized model directory
  • Required access: Ability to supply, replace, or influence a model artifact consumed by the application
  • Trigger point: Loading or deserializing the crafted model directory
  • Why exploitation is possible: Deserialization may reconstruct attacker-controlled data in a way that invokes executable behavior before the model is safely validated

Why this happens

The underlying bug is the use of a deserialization mechanism that treats serialized model data as trusted, executable object state. When a model-loading process reconstructs attacker-controlled objects without sufficiently restricting permitted types or validating the artifact first, object creation can trigger unintended operating system actions. This behavior maps primarily to CWE-502: Deserialization of Untrusted Data; CWE-470: Use of Potentially Dangerous Function is also relevant when dynamic object or function resolution contributes to execution.

Potential impact

  • An attacker may execute arbitrary operating system commands
  • The loading process could be fully compromised
  • Confidential model, data, or credential information may be exposed
  • Attackers could modify models or poison downstream predictions
  • The host or surrounding workload may be used for further unauthorized activity

General mitigation guidance

Mitigation generally focuses on removing executable behavior from model deserialization and reducing trust in model artifacts.

Common defensive patterns include:

  • Use formats and parsers that support restricted, non-executable data representation
  • Permit only explicitly approved object types during model loading
  • Validate model metadata, provenance, integrity, and schema before deserialization
  • Store model artifacts in controlled repositories with limited write access
  • Separate model ingestion from sensitive production workloads
  • Run model-loading processes with least-privilege operating system and network permissions
  • Treat externally supplied models as untrusted even when they originate from automated pipelines

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules identifying unsafe deserialization and dynamic object-resolution APIs
  • Code review checks for model loaders that reconstruct arbitrary classes or functions
  • Dependency and framework policy checks covering serialization formats and parser configuration
  • Repository controls that flag model artifacts from untrusted or unauthenticated sources
  • Runtime monitoring for unexpected child processes, shell activity, file changes, or outbound connections during model loading
  • Automated security review tools that identify deserialization paths and missing allowlists

Sources

SourceLink
aws.amazon.comaws.amazon.com/security/security-bulletins/2026-119-aws/
github.comgithub.com/awslabs/gluonts/releases/tag/v0.17.0
github.comgithub.com/awslabs/gluonts/security/advisories/GHSA-64q6-5qv7-cwj9

Frequently asked

questions

It can be exploitable through a remote workflow when an attacker can cause a service or pipeline to load a crafted model directory. Direct network reachability alone may not be sufficient.

The attacker generally needs a way to supply, replace, or influence a serialized model artifact that the GluonTS process will load. The exact access requirement depends on deployment and repository controls.

Replace executable or unrestricted deserialization with a restricted data format and an allowlist-based loader, then validate model artifacts before they reach the loading process.

Treat model files as untrusted input, enforce provenance and integrity checks, isolate model-loading workloads, and apply least privilege to the processes that handle them.

Find out what's already
exploitable in your codebase.