{"schemaVersion":4,"id":"CVE-2022-3297","aliases":["UBUNTU-CVE-2022-3297","DEBIAN-CVE-2022-3297"],"status":"published","duplicateOf":null,"title":"Use After Free in vim/vim","description":"Use After Free in GitHub repository vim/vim prior to 9.0.0579.","dates":{"published":"2022-09-25T00:00:00.000Z","modified":"2025-05-21T19:40:02.377Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00526,"percentile":0.4605,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.006000000000000016,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0052},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00527,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00527,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00527,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00526,"percentile":0.4605}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00526,"percentile":0.4605}]},"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":"REF_3BCFF133648D2EC6","name":"Exploit Reference (huntr.dev)","source":"reference","url":"https://huntr.dev/bounties/1aa9ec92-0355-4710-bf85-5bce9effa01c","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"< 2:9.0.0626-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2:9.0.0626-1","endInclusive":false}}],"versionsText":"< 2:9.0.0626-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vim","name":"vim","label":"vim","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vim","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 2:8.2.3995-1ubuntu2.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2:8.2.3995-1ubuntu2.12","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 2:8.2.3995-1ubuntu2.12","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"35"}},{"text":"36","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"36"}},{"text":"37","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"37"}}],"versionsText":"35 | 36 | 37","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"neovim","product":"neovim","name":"neovim","label":"neovim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.5.0, < 0.10.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.5.0","startInclusive":true,"end":"0.10.0","endInclusive":false}}],"versionsText":"≥ 0.5.0, < 0.10.0","eol":null,"hubHref":"/vendor/neovim/neovim"},{"vendor":"vim","product":"vim","name":"Vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.0.0579","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.0.0579","endInclusive":false}}],"versionsText":"< 9.0.0579","eol":null,"hubHref":"/vendor/vim/vim"},{"vendor":"vim","product":"vim/vim","name":"vim/vim","label":"vim/vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 9.0.0579","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"unspecified","startInclusive":true,"end":"9.0.0579","endInclusive":false}}],"versionsText":"≥ unspecified, < 9.0.0579","eol":null,"hubHref":"/vendor/vim/vimvim"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://huntr.dev/bounties/1aa9ec92-0355-4710-bf85-5bce9effa01c","label":"huntr.dev/bounties/1aa9ec92-0355-4710-bf85-5bce9effa01c","hostname":"huntr.dev","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c","label":"github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSSEWQLK55MCNT4Z2IIJEJYEI5HLCODI/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QI7AETXBHPC7SGA77Q7O5IEGULWYET7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GTBVD4J2SKVSWK4VBN5JP5OEVK6GDS3N/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Mailing List","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202305-16","label":"security.gentoo.org/glsa/202305-16","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-3297","label":"ubuntu.com/security/CVE-2022-3297","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6420-1","label":"ubuntu.com/security/notices/USN-6420-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-3297","label":"www.cve.org/CVERecord?id=CVE-2022-3297","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-3297","label":"security-tracker.debian.org/tracker/CVE-2022-3297","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3297","label":"nvd.nist.gov/vuln/detail/CVE-2022-3297","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2022-0430","SUSE-SU-2022:4282-1","SUSE-SU-2022:4619-1","USN-6420-1"],"duplicates":[],"related":["SUSE-SU-2022:4282-1","SUSE-SU-2022:4619-1","USN-6420-1"]},"timeline":[{"kind":"published","date":"2022-09-25T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-21T19:40:02.377Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"public-exploit","reason":"Public exploit (reference, Date unknown)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,1,1,78],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00526,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"cvss","source":"osv_debian","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-05-21T19:40:02.377Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"adp","source":"cisa-adp","date":"2025-05-21T19:39:55.905Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"exploit","source":"reference","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"unknown","verified":false}],"epss":{"value":0.00526,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:11:48.805Z","stale":false,"partial":false}}