Critical
Security advisory
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-45907
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 00:47 UTC · Revision 1
Source evidence
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
osv:CVE-2022-45907
Complete source record
{
"id": "bc67bc6bb7700fd1f5590be6282bfd8ef93c4b766d462ed1ea3e9742baa1f549",
"url": "https://osv.dev/vulnerability/CVE-2022-45907",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-45907",
"summary": "In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.",
"evidence": "osv:CVE-2022-45907",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2022-45907",
"aliases": [
"BIT-pytorch-2022-45907",
"CVE-2022-45907",
"GHSA-47fc-vmwq-366v",
"PYSEC-2022-43015"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pytorch/pytorch",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "49444c3e546bf240bed24a101e747422d1f8a0ee"
},
{
"fixed": "767f6aa49fe20a2766b9843d01e3b7f7793df6a3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.13.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "767f6aa49fe20a2766b9843d01e3b7f7793df6a3"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.13.0-rc6",
"v1.13.0",
"ciflow/periodic/csl/test87519",
"ciflow/periodic/csltest88761",
"ciflow/periodic/csltest88275",
"v1.13.0-rc5",
"v1.13.0-rc4",
"ciflow/periodic/317eeb8",
"ciflow/periodic/2a6d37d",
"ciflow/periodic/3c32",
"ciflow/periodic/054a2fd",
"v1.13.0-rc3",
"v1.13.0-rc2",
"v1.13.0-rc1",
"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://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-45907.json"
}
}
],
"modified": "2026-10-28T02:30:45.701528378Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45907.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-45907",
"https://github.com/pytorch/pytorch/issues/88868",
"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45907.json"
}
},
"related_cves": [
{
"value": "CVE-2022-45907",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513610,
"published_at": "2022-11-26T00:00:00+00:00"
}