[GH-ISSUE #333] Pytorch 1.7 contains vulnerability that is fixed in upgraded version #287

Open
opened 2026-10-31 21:13:28 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @cprocak3 on GitHub (Mar 6, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/333

Hello,

Pytorch 1.7 has a vulnerability that can cause an arbitrary code execution when used. It is fixed in version 1.13.1. When can it be expected for Pytorch to be upgraded to a more recent version?

See the following for the details on the CVE:
https://avd.aquasec.com/nvd/2022/cve-2022-45907/

Originally created by @cprocak3 on GitHub (Mar 6, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/333 Hello, Pytorch 1.7 has a vulnerability that can cause an arbitrary code execution when used. It is fixed in version 1.13.1. When can it be expected for Pytorch to be upgraded to a more recent version? See the following for the details on the CVE: https://avd.aquasec.com/nvd/2022/cve-2022-45907/
Author
Owner

@jongwook commented on GitHub (Mar 6, 2023):

Hi, I see the relevant issue is this one, and the vulnerability happens when JIT-compiling a module that contains function calls using the Python type hint syntax. While the released CLIP models are using the JIT-compiled format, I don't think any code paths used in this repo is vulnerable to this CVE. (happy to stand corrected though)

In any case, this package does not enforce a specific pytorch version, but I haven't tested if it's source-compatible with 1.13.1 (I'm guessing it is). We can consider adding a warning message if the pytorch version used is too old, but any security implications will ultimately be the responsibility of the entity using this library to deploy their services which may cause arbitrary code execution. See also the LICENSE.

<!-- gh-comment-id:1456986382 --> @jongwook commented on GitHub (Mar 6, 2023): Hi, I see the relevant issue is [this one](https://github.com/pytorch/pytorch/issues/88868), and the vulnerability happens when JIT-compiling a module that contains function calls using the Python type hint syntax. While the released CLIP models are using the JIT-compiled format, I don't think any code paths used in this repo is vulnerable to this CVE. (happy to stand corrected though) In any case, this package does not enforce a specific pytorch version, but I haven't tested if it's source-compatible with 1.13.1 (I'm guessing it is). We can consider adding a warning message if the pytorch version used is too old, but any security implications will ultimately be the responsibility of the entity using this library to deploy their services which may cause arbitrary code execution. See also the [LICENSE](https://github.com/openai/CLIP/blob/main/LICENSE).
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#287
No description provided.