Koffei

CVE-2021-21707

🟡 Low

PHP · 7.3.x < 7.3.33 ; 7.4.x < 7.4.26 ; 8.0.x < 8.0.13

CVSS (Koffei note)
5.3
CVSS (v3.1, CVE List)
5.3
EPSS (2026-11-18)
25.315%
97.98th percentile

Exploitation

Not confirmed (not in KEV; no SSVC)

Timeline

  1. 29/11/2021CVE record published (CVE List)

Risk

5.3 Medium (v3.1) — AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, EPSS 25.951% (CWE-159 : In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filenam)

Fix

Yes — 7.3.33, 7.4.26, 8.0.13 (advisory)

Official description

In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CWE-159