Security mailing lists by PureSourceCode

CVE-2021-21706

MEDIUM 6.5CVSS 3.1

In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.

Published
4 Oct 2021
Last modified
17 Jun 2026
Assigned by
security@php.net
NVD status
Modified
Weakness
CWE-22CWE-24
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD security@php.net (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.3.0, < 7.3.31 7.3.31
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.4.0, < 7.4.24 7.4.24
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.0.0, < 8.0.11 8.0.11

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Oct 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.