← Back to CVE Explorer

CVE-2026-23879

Full vulnerability record from the local CVENow database.

Description

py7zr is a Python-based library and utility to support 7zip archive compression, decompression, encryption and decryption. Versions 1.1.2 and below contain an an arbitrary file write vulnerability, which allows symbolic links to be recreated outside the destination directory via crafted malicious symbolic link chains. When using extractall to extract an archive, the library restores these symbolic links, linking them to arbitrary directories on the host file system. During extraction, the program only checks the link arcname within the destination directory, but ignores the combined symlink path resolution. Attackers can exploit this vulnerability by constructing malicious archives, thereby bypassing the directory boundary restrictions implemented by the extractor. Subsequent extraction of regular files through these symbolic links can result in arbitrary file writes. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service. This issue has been fixed in version 1.1.3.

Severity
HIGH
CVSS score
8.0 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-06-24 20:16:31.817000
Last modified
2026-10-25 22:10:00.150000
View original CVE JSON
{
  "id": "CVE-2026-23879",
  "sourceIdentifier": "[email protected]",
  "published": "2026-06-24T20:16:31.817",
  "lastModified": "2026-10-25T22:10:00.150",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "py7zr is a Python-based library and utility to support 7zip archive compression, decompression, encryption and decryption. Versions 1.1.2 and below contain an an arbitrary file write vulnerability, which allows symbolic links to be recreated outside the destination directory via crafted malicious symbolic link chains. When using extractall to extract an archive, the library restores these symbolic links, linking them to arbitrary directories on the host file system. During extraction, the program only checks the link arcname within the destination directory, but ignores the combined symlink path resolution. Attackers can exploit this vulnerability by constructing malicious archives, thereby bypassing the directory boundary restrictions implemented by the extractor. Subsequent extraction of regular files through these symbolic links can result in arbitrary file writes. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service. This issue has been fixed in version 1.1.3."
    },
    {
      "lang": "es",
      "value": "py7zr es una biblioteca y utilidad basada en Python para soportar la compresión, descompresión, cifrado y descifrado de archivos 7zip. Las versiones 1.1.2 e inferiores contienen una vulnerabilidad de escritura de archivo arbitraria, que permite que los enlaces simbólicos sean recreados fuera del directorio de destino a través de cadenas de enlaces simbólicos maliciosos manipulados. Al usar extractall para extraer un archivo, la biblioteca restaura estos enlaces simbólicos, enlazándolos a directorios arbitrarios en el sistema de archivos del host. Durante la extracción, el programa solo verifica el arcname del enlace dentro del directorio de destino, pero ignora la resolución de ruta combinada del enlace simbólico. Los atacantes pueden explotar esta vulnerabilidad construyendo archivos maliciosos, eludiendo así las restricciones de límite de directorio implementadas por el extractor. La extracción posterior de archivos regulares a través de estos enlaces simbólicos puede resultar en escrituras de archivos arbitrarias. Esta vulnerabilidad puede conducir a la ejecución remota de código, escalada de privilegios, corrupción de datos o denegación de servicio. Este problema ha sido solucionado en la versión 1.1.3."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "miurahr",
          "product": "py7zr",
          "versions": [
            {
              "version": "< 1.1.3",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
          "baseScore": 8.0,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.1,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-06-25T15:57:29.992293Z",
          "id": "CVE-2026-23879",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-59"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/miurahr/py7zr/releases/tag/v1.1.3",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/miurahr/py7zr/security/advisories/GHSA-q6rc-2cgv-63h7",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}