Your submission was sent successfully! Close

CVE-2021-21707

Published: 29 November 2021

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.

Notes

AuthorNote
sbeattie
PEAR issues should go against php-pear as of xenial
Priority

Low

CVSS 3 base score: 5.3

Status

Package Release Status
php5
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

hirsute Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Needed

upstream Needs triage

xenial Does not exist

php7.0
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

hirsute Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream Needed

xenial
Released (7.0.33-0ubuntu0.16.04.16+esm3)
Patches:
upstream: https://github.com/php/php-src/commit/f15f8fc573eb38c3c73e23e0930063a6f6409ed4

php7.2
Launchpad, Ubuntu, Debian
bionic
Released (7.2.24-0ubuntu0.18.04.11)
focal Does not exist

hirsute Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream Needs triage

xenial Does not exist

php7.4
Launchpad, Ubuntu, Debian
bionic Does not exist

focal
Released (7.4.3-4ubuntu2.10)
hirsute Ignored
(reached end-of-life)
impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream
Released (7.4.26)
xenial Does not exist

php8.0
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

hirsute Does not exist

impish
Released (8.0.8-1ubuntu0.3)
jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream
Released (8.0.13)
xenial Does not exist

Patches:

upstream: https://github.com/php/php-src/commit/f15f8fc573eb38c3c73e23e0930063a6f6409ed4
php8.1
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

groovy Does not exist

hirsute Does not exist

impish Does not exist

jammy Not vulnerable
(8.1.0-1)
kinetic Not vulnerable
(8.1.0-1)
precise Does not exist

trusty Does not exist

upstream Needs triage

xenial Does not exist