CVE-2026-65918: PyTorch torchvision GIF Decoder Out-of-bounds Heap Read

Published Jul 23, 2026
·
Updated

PyTorch torchvision through 0.28.0, fixed in commit 4e05dc2, contains an out-of-bounds heap read vulnerability in the GIF decoder's readfromtensor callback that passes unclamped length to memcpy. Attackers can supply malicious or truncated GIF files to cause denial of service via segmentation fault or disclose adjacent heap memory contents.

Affected Software

2 affected components
PyTorch torchvision<=0.28.0
linuxfoundation Torchvision Python<=0.28.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PyTorch torchvision to a version that resolves this vulnerability.

    Fixed in 0.28.0Patch 4e05dc2

Event History

Jul 23, 2026
CVE Published
via MITRE·05:36 PM
Data Sourced
via MITRE·05:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-65918?

CVE-2026-65918 has a high severity rating of 7.1.

2

How do I fix CVE-2026-65918?

To fix CVE-2026-65918, update PyTorch torchvision to the latest version after commit 4e05dc2.

3

What type of vulnerability is CVE-2026-65918?

CVE-2026-65918 is an out-of-bounds heap read vulnerability in the GIF decoder of PyTorch torchvision.

4

What are the potential impacts of CVE-2026-65918?

CVE-2026-65918 can lead to denial of service via segmentation faults when malicious or truncated GIF files are processed.

5

Which versions of PyTorch torchvision are affected by CVE-2026-65918?

CVE-2026-65918 affects PyTorch torchvision through version 0.28.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203