Intel

AIKIDO-2026-220941

torch is vulnerable to Out-of-bounds Write

GHSA-g6v3-crfc-cggjPublished Jul 31, 2026
July 31, 2026

55

CVE Score

Medium

Out-of-bounds Write

Are you affected? Scan for Free

TL;DR

The mobile FlatBuffer loader reached through torch::load parses serialized module data without validating the offsets embedded in the buffer. Because untrusted offsets are dereferenced and combined with buffer pointers, a crafted FlatBuffer-format model can make the loader compute and access arbitrary memory addresses. Loading such a file can corrupt pointers and cause out-of-bounds reads and writes, at minimum crashing the process. The fix adds buffer verification and bounds checks so malformed modules are rejected before parsing.

How do I fix this?

Upgrade the pytorch library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application loads FlatBuffer-format model data from untrusted sources via torch::load.

Package

Versions

0.0.1 - 2.0.1

Fixed in 2.1.0

Background info

torch is vulnerable to Out-of-bounds Write in versions 0.0.1 - 2.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea