Skip to content
Heist/ feed
Back to feed
HighFix available

7zip, p7zip — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-40481

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. The 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.

Products
7zip, p7zip
Affected versions
16.02+dfsg-8, 22.01+dfsg-10~exp1, 22.01+dfsg-8, 22.01+dfsg-8+deb12u1, 22.01+dfsg-9
Fixed versions
16.02+really25.01+dfsg-0+deb12u1, 16.02+transitional.1, 22.01+really25.01+dfsg-0+deb12u1, 23.01+dfsg-1
CVEs
CVE-2023-40481
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:57 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-40481

core-osv · Original source

Published 3 May 2024, 03:15 UTC

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. The 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.

osv:DEBIAN-CVE-2023-40481

7zip

Fixed versions: 22.01+really25.01+dfsg-0+deb12u1

7zip

Fixed versions: 23.01+dfsg-1

7zip

Fixed versions: 23.01+dfsg-1

p7zip

Fixed versions: 16.02+really25.01+dfsg-0+deb12u1

p7zip

Fixed versions: 16.02+transitional.1

Complete source record
{
  "id": "7cfce9c679409e91517db43ed501e018465ed0af9756d62307c671392f24b181",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-40481",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-40481",
    "summary": "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. The 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.",
    "evidence": "osv:DEBIAN-CVE-2023-40481",
    "products": [
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "22.01+really25.01+dfsg-0+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "22.01+dfsg-10~exp1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "22.01+dfsg-8",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "22.01+dfsg-8+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "22.01+dfsg-9",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "23.01+dfsg-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "23.01+dfsg-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "p7zip",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "16.02+really25.01+dfsg-0+deb12u1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "16.02+dfsg-8",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "p7zip",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "16.02+transitional.1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2023-40481",
      "aliases": [
        "DEBIAN-CVE-2023-40481"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "22.01+really25.01+dfsg-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "7zip",
            "purl": "pkg:deb/debian/7zip?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "22.01+dfsg-10~exp1",
            "22.01+dfsg-8",
            "22.01+dfsg-8+deb12u1",
            "22.01+dfsg-9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40481.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "23.01+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "7zip",
            "purl": "pkg:deb/debian/7zip?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40481.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "23.01+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "7zip",
            "purl": "pkg:deb/debian/7zip?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40481.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "16.02+really25.01+dfsg-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "p7zip",
            "purl": "pkg:deb/debian/p7zip?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "16.02+dfsg-8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40481.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "16.02+transitional.1"
                }
              ]
            }
          ],
          "package": {
            "name": "p7zip",
            "purl": "pkg:deb/debian/p7zip?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40481.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:02:31.692253805Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-40481"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-40481"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-40481",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 456178,
  "published_at": "2024-05-03T03:15:21.153+00:00"
}