CVE-2024-31583
Python packages · CVE-2024-31583
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.266% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:38.218Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:22.826Z | OSV |
| affected | verified | 2026-11-19T12:57:10.687Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:10.687Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.8,
"attackVector": "LOCAL",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "REQUIRED",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-31583",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-04-22T17:44:25.074415Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:pytorchlightning:pytorch_lightning:*:*:*:*:*:python:*:*"
],
"vendor": "pytorchlightning",
"product": "pytorch_lightning",
"versions": [
{
"status": "affected",
"version": "2.2.0"
}
],
"defaultStatus": "unknown"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-416",
"description": "CWE-416 Use After Free"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-06-04T17:36:53.757Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132",
"tags": [
"x_transferred"
]
},
{
"url": "https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T01:52:57.315Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-pg7h-5qx3-wjr3",
"aliases": [
"BIT-pytorch-2024-31583",
"CVE-2024-31583",
"PYSEC-2024-251"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0"
}
]
}
],
"package": {
"name": "torch",
"purl": "pkg:pypi/torch",
"ecosystem": "PyPI"
},
"versions": [
"1.0.0",
"1.0.1",
"1.1.0",
"1.10.0",
"1.10.1",
"1.10.2",
"1.11.0",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.1",
"1.2.0",
"1.3.0",
"1.3.1",
"1.4.0",
"1.5.0",
"1.5.1",
"1.6.0",
"1.7.0",
"1.7.1",
"1.8.0",
"1.8.1",
"1.9.0",
"1.9.1",
"2.0.0",
"2.0.1",
"2.1.0",
"2.1.1",
"2.1.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-pg7h-5qx3-wjr3/GHSA-pg7h-5qx3-wjr3.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-31583",
"type": "ADVISORY"
},
{
"url": "https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2",
"type": "WEB"
},
{
"url": "https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pytorch/pytorch",
"type": "PACKAGE"
},
{
"url": "https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132",
"type": "WEB"
},
{
"url": "https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-416"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2024-04-17T19:15:07Z",
"github_reviewed_at": "2024-07-25T10:11:09Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2024-251",
"aliases": [
"BIT-pytorch-2024-31583",
"CVE-2024-31583",
"GHSA-pg7h-5qx3-wjr3"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pytorch/pytorch",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"
},
{
"fixed": "9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0"
}
]
}
],
"package": {
"name": "torch",
"purl": "pkg:pypi/torch",
"ecosystem": "PyPI"
},
"versions": [
"1.0.0",
"1.0.1",
"1.1.0",
"1.10.0",
"1.10.1",
"1.10.2",
"1.11.0",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.1",
"1.2.0",
"1.3.0",
"1.3.1",
"1.4.0",
"1.5.0",
"1.5.1",
"1.6.0",
"1.7.0",
"1.7.1",
"1.8.0",
"1.8.1",
"1.9.0",
"1.9.1",
"2.0.0",
"2.0.1",
"2.1.0",
"2.1.1",
"2.1.2",
"ciflow/unstable/123",
"bc2caa7fdf006894eff7af936babde69ab5a40f8-huydhn-debug",
"ciflow/periodic/3e98831",
"ciflow/slow/da3aba1e46157c4df504b067477cdf2b3c96b194-sdym",
"ciflow/slow/0d5b74da0cab798fbfdb9caa53fad816999c8386-sdym",
"ciflow/slow/8751002215790a3a88750faa8f4366933e296693-sdym",
"ciflow/slow/a837609",
"ciflow/slow/788ff06",
"ciflow/slow/1faef89",
"ciflow/slow/187eb7c",
"ciflow/slow/01c7106",
"ciflow/slow/3920ec1",
"ciflow/slow/0577043",
"ciflow/slow/a206e8b",
"ciflow/slow/59a3759",
"ciflow/slow/1732077",
"ciflow/slow/9d85864",
"ciflow/slow/0e81104",
"ciflow/slow/3b7c6b2",
"ciflow/slow/70ef0bb",
"ciflow/slow/af841f3",
"ciflow/slow/9ffad5b",
"ciflow/periodic/94512-point",
"ciflow/inductor/3d4b92b",
"ciflow/inductor/3b9a386",
"ciflow/inductor/d224ac7",
"ciflow/periodic/csl/test87519",
"ciflow/periodic/csltest88761",
"ciflow/periodic/csltest88275",
"ciflow/periodic/317eeb8",
"ciflow/periodic/2a6d37d",
"ciflow/periodic/3c32",
"ciflow/periodic/054a2fd",
"ciflow/periodic/sha-ec5b83",
"malfet/tag-2ef5611",
"malfet/tag-317b1a0",
"malfet/tag-ec6f767",
"nightly-binary",
"v1.8.0-rc1",
"v1.4.0a0",
"v1.3.0a0",
"v1.2.0a0",
"v1.1.0a0",
"v1.0rc1",
"v1.0rc0",
"v1.0.0a0",
"v0.1.11",
"v0.1.10",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/torch/PYSEC-2024-251.yaml"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2",
"type": "FIX"
},
{
"url": "https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176",
"type": "WEB"
},
{
"url": "https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-pg7h-5qx3-wjr3",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | torch | Not a distribution channel | 2.2.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:22.826ZArchived source JSON
Source publication: 2024-04-17T21:30:48.000Z
Source modification: 2025-06-11T06:29:21.475ZDocument fingerprint
243300a06693c5fdacf54ea902c0850a6bf9245d7ec7a35904810c5eb34314d8 - OSVConsulted: 2026-11-19T12:52:22.826ZArchived source JSON
Source publication: 2024-04-17T19:15:07.000Z
Source modification: 2026-06-10T17:51:26.526ZDocument fingerprint
243300a06693c5fdacf54ea902c0850a6bf9245d7ec7a35904810c5eb34314d8 - CVE ProgramConsulted: 2026-11-19T12:57:10.687ZArchived source JSON
Source publication: 2024-04-17T00:00:00.000Z
Source modification: 2024-08-02T01:52:57.315ZDocument fingerprint
876e1e968a1c2123ca1b53abf8ecd171ab89f5b782a41c231eb82cf2e045b5ad - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:38.218ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
55a64ee9ca0f1d908a48c56be557bd1ef72d684d2b38b659335bfacedc0274cc
Official status history
- UNKNOWN → PUBLISHED · · evidence