Intel

AIKIDO-2026-636203

torch is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)GHSA-2rj9-7h5r-q4h8 Published Jul 31, 2026

54

Medium Risk

This Affects:

PYTHONtorch
0.0.1 - 2.8.0
Fixed in 2.9.0
Are you affected? Scan for Free

TL;DR

PyTorch bundles the third-party tensorpipe library, which statically links an outdated copy of libuv into distributed C++ binaries such as libtorch_cpu.so. That libuv copy truncates hostnames longer than 256 characters before passing them to getaddrinfo, so a crafted long hostname can be made to resolve to an unintended address. Code paths that resolve externally influenced hostnames can therefore be steered toward internal destinations, enabling server-side request forgery. The fix updates the bundled libuv dependency to a version that no longer truncates hostnames unsafely.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application resolves externally influenced hostnames through the affected libuv code path (for example via distributed/RPC features).

Background info

torch is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 2.8.0.

How to fix this

Upgrade the torch library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform