CVE-2020-7068

Use of freed hash key in the phar_parse_zipfile function

At a glance

Severity
MEDIUM 4.8
EPSS
EPSS 1.66 % · percentile 77 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
php
NVD status
Modified

Description

In PHP versions 7.2.x below 7.2.33, 7.3.x below 7.3.21 and 7.4.x below 7.4.9, while processing PHAR files using phar extension, phar_parse_zipfile could be tricked into accessing freed memory, which could lead to a crash or information disclosure.

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:Lphp
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:LNVD · security@php.net (Secondary)
CVSS 3.1LOW 3.6CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:LNVD · nvd@nist.gov (Primary)
CVSS 2.0LOW 3.3AV:L/AC:M/Au:N/C:P/I:N/A:PNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
PHP Group · PHPaffected 7.3.x < 7.3.21 ; affected 7.4.x < 7.4.9 ; affected 7.2.x < 7.2.33

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD