{"schemaVersion":3,"id":"CVE-2023-40481","aliases":["UBUNTU-CVE-2023-40481","DEBIAN-CVE-2023-40481"],"status":"published","duplicateOf":null,"title":null,"description":"7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of 7-Zip. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.\n\nThe specific flaw exists within the parsing of SQFS files. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-18589.","dates":{"published":"2024-05-03T02:11:15.923Z","modified":"2024-08-02T18:31:53.795Z","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.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.0","versionLabel":"v3.0","source":"OSV · Debian","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.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.13947,"percentile":0.96535,"severity":"medium","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.13947},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.13947,"percentile":0.96535}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.13947,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.13947,"percentile":0.96535}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"7-zip","product":"7-zip","name":"7-Zip","label":"7-zip","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"22.01","noFixRecorded":false,"fixedIn":null}],"versionsText":"22.01","eol":null,"hubHref":"/vendor/7-zip/7-zip"},{"vendor":"debian","product":"7zip","name":"7zip","label":"7zip","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/7zip","purlType":"deb","versions":[{"text":"< 22.01+really25.01+dfsg-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 23.01+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.01+really25.01+dfsg-0+deb12u1 | < 23.01+dfsg-1","eol":null,"hubHref":null},{"vendor":"debian","product":"p7zip","name":"p7zip","label":"p7zip","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/p7zip","purlType":"deb","versions":[{"text":"< 16.02+really25.01+dfsg-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 16.02+transitional.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.02+really25.01+dfsg-0+deb12u1 | < 16.02+transitional.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"7zip","name":"7zip","label":"7zip","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/7zip","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1164/","label":"www.zerodayinitiative.com/advisories/ZDI-23-1164/","hostname":"www.zerodayinitiative.com","tags":["X Research Advisory","REPORT","Third Party Advisory"]},{"url":"https://sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/","label":"sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/","hostname":"sourceforge.net","tags":["Vendor Advisory","REPORT","Product","Release Notes"]},{"url":"https://ubuntu.com/security/CVE-2023-40481","label":"ubuntu.com/security/CVE-2023-40481","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-40481","label":"www.cve.org/CVERecord?id=CVE-2023-40481","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-40481","label":"security-tracker.debian.org/tracker/CVE-2023-40481","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-05-03T02:11:15.923Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T18:31:53.795Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T06:09:26.535Z","stale":false,"partial":false}}