6.5

CVE-2021-21706: ZipArchive::extractTo may extract outside of destination dir

Modified
AliasesUBUNTU-CVE-2021-21706ALPINE-CVE-2021-21706
Published 04-10-2021Last modified 16-09-2024

Vulnerability summary

CVE-2021-21706 is a medium (CVSS 6.5) Path Traversal: '../filedir' vulnerability in php group php. EPSS estimates a 1.52% chance of exploitation in the next 30 days, higher than 75.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
1.52%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 04-10-2021
    PublishedVulnerability first disclosed.
  2. 16-09-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

1.52%

Chance of exploitation in the next 30 days

Percentile

75%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.52% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine3 products
  • php7< 7.3.31-r0 | < 7.4.24-r0
  • php8< 8.0.11-r0
  • php81< 8.1.0_rc3-r0
Php1 product
  • php≥ 7.3.0, < 7.3.31 | ≥ 7.4.0, < 7.4.24 | ≥ 8.0.0, < 8.0.11
Php group1 product
  • php≥ 7.3.x, < 7.3.31 | ≥ 7.4.x, < 7.4.24 | ≥ 8.0.X, < 8.0.11
Ubuntu1 product
  • php8.1< 8.1.0-1

4 vendors · 6 products

References

5 links