{"schemaVersion":3,"id":"CVE-2022-45907","aliases":["GHSA-47fc-vmwq-366v","BIT-pytorch-2022-45907","PYSEC-2022-43015","UBUNTU-CVE-2022-45907","DEBIAN-CVE-2022-45907"],"status":"published","duplicateOf":null,"title":null,"description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","dates":{"published":"2022-11-26T00:00:00.000Z","modified":"2025-04-25T19:16:18.057Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0129,"percentile":0.69836,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.04699999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01243},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0129,"percentile":0.69836}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01243,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0129,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0129,"percentile":0.69836}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PYTORCH_PYTORCH","name":"Pytorch","source":"github","url":"https://github.com/pytorch/pytorch/issues/147818#issue-2877301660","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"debian","product":"pytorch","name":"pytorch","label":"pytorch","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pytorch","purlType":"deb","versions":[{"text":"< 1.13.1+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.1+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pytorch","name":"pytorch","label":"pytorch","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pytorch","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"pytorch","name":"pytorch","label":"pytorch","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.1","eol":null,"hubHref":"/vendor/linuxfoundation/pytorch"},{"vendor":"PyPI","product":"torch","name":"torch","label":"torch","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/torch","purlType":"pypi","versions":[{"text":"< 767f6aa49fe20a2766b9843d01e3b7f7793df6a3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 767f6aa49fe20a2766b9843d01e3b7f7793df6a3 | < 1.13.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/pytorch/pytorch/issues/88868","label":"github.com/pytorch/pytorch/issues/88868","hostname":"github.com","tags":["WEB","EVIDENCE","REPORT","FIX","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3","label":"github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3","hostname":"github.com","tags":["WEB","FIX","REPORT","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907","label":"nvd.nist.gov/vuln/detail/CVE-2022-45907","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pytorch/pytorch/issues/89855","label":"github.com/pytorch/pytorch/issues/89855","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pytorch/pytorch/pull/89189","label":"github.com/pytorch/pytorch/pull/89189","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pytorch/pytorch","label":"github.com/pytorch/pytorch","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pytorch/pytorch/releases/tag/v1.13.1","label":"github.com/pytorch/pytorch/releases/tag/v1.13.1","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-47fc-vmwq-366v","label":"github.com/advisories/GHSA-47fc-vmwq-366v","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-45907","label":"ubuntu.com/security/CVE-2022-45907","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-45907","label":"www.cve.org/CVERecord?id=CVE-2022-45907","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-45907","label":"security-tracker.debian.org/tracker/CVE-2022-45907","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-11-26T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-25T19:16:18.057Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:53:57.533Z","stale":false,"partial":false}}