Skip to content
Heist/ feed
Back to feed
HighFix available

7zip, p7zip — security advisory

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

The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains a heap-based buffer overflow that allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size: buffer+512*i-2, for i=9, i=10, i=11, etc.

Products
7zip, p7zip
Affected versions
16.02+dfsg-8, 22.01+dfsg-8
Fixed versions
16.02+really25.01+dfsg-0+deb12u1, 16.02+transitional.1, 22.01+dfsg-8+deb12u1, 24.05+dfsg-1
CVEs
CVE-2023-52168
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:20 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-52168

core-osv · Original source

Published 3 Jul 2024, 18:15 UTC

The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains a heap-based buffer overflow that allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size: buffer+512*i-2, for i=9, i=10, i=11, etc.

osv:DEBIAN-CVE-2023-52168

7zip

Fixed versions: 22.01+dfsg-8+deb12u1

7zip

Fixed versions: 24.05+dfsg-1

7zip

Fixed versions: 24.05+dfsg-1

p7zip

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

p7zip

Fixed versions: 16.02+transitional.1

Complete source record
{
  "id": "2089fce0ccef11fcba9be719ab5f00573889672b2877fe14e7ec7f61701a49dd",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-52168",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-52168",
    "summary": "The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains a heap-based buffer overflow that allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size: buffer+512*i-2, for i=9, i=10, i=11, etc.",
    "evidence": "osv:DEBIAN-CVE-2023-52168",
    "products": [
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "22.01+dfsg-8+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "22.01+dfsg-8",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "24.05+dfsg-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "7zip",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "24.05+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-52168",
      "aliases": [
        "DEBIAN-CVE-2023-52168"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "22.01+dfsg-8+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "7zip",
            "purl": "pkg:deb/debian/7zip?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "22.01+dfsg-8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "24.05+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-52168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "24.05+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-52168.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-52168.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-52168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:00:14.366711524Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-52168"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-52168"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-52168",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 454934,
  "published_at": "2024-07-03T18:15:04.597+00:00"
}