Skip to content
pkgseek
Back to CVE search

CVE-2021-21707

medium · 5.3

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.

First indexed 11/18/2021View on NVD

Advisory Facts

Markdown

CVE-2021-21707 is rated MEDIUM (5.3), with 86 indexed affected package builds across 3 distributions.

Severity / Score
MEDIUM (5.3)
Affected builds
86
Affected distros
3
Distros with fixed_in
Alibaba Cloud Linux, Oracle Linux, Ubuntu
+ Embed this vulnerability status card

https://pkgseek.com/embed/security/CVE-2021-21707?locale=en

Distribution-aware status

3
Distributions
86
Package/release records
4
Vendor advisories
86
Fix versions available

Why the upstream version is not enough

Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.

Affected packages

Newest affected build per package, repository source and distribution release.

86 affected package/release combinations
php
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php
php-bcmath
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-bcmath
php-cli
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-cli
php-common
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-common
php-dba
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-dba
php-dbg
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-dbg
php-devel
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-devel
php-embedded
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-embedded
php-enchant
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-enchant
php-ffi
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-ffi
php-fpm
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-fpm
php-gd
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-gd
php-gmp
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-gmp
php-intl
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-intl
php-json
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-json
php-ldap
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-ldap
php-mbstring
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-mbstring
php-mysqlnd
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-mysqlnd
php-odbc
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-odbc
php-opcache
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-opcache
php-pdo
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pdo
php-pgsql
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pgsql
php-process
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-process
php-snmp
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-snmp
php-soap
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-soap
php-xml
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-xml
php-xmlrpc
3x86_64
7.4.19-4.0.1.al8Fixed in 7.4.30-1.0.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-xmlrpc
apcu-panel
8noarch
5.1.17-1.module+el8.2.0+5569+98c8b30dFixed in 5.1.18-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade apcu-panel
libzip
8x86_64
1.5.2-1.module+el8.2.0+5569+98c8b30dFixed in 1.6.1-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade libzip
libzip-devel
8x86_64
1.5.2-1.module+el8.2.0+5569+98c8b30dFixed in 1.6.1-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade libzip-devel
libzip-tools
8x86_64
1.5.2-1.module+el8.2.0+5569+98c8b30dFixed in 1.6.1-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade libzip-tools
php-embedded
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-embedded
php-enchant
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-enchant
php-mbstring
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-mbstring
php-mysqlnd
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-mysqlnd
php-opcache
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-opcache
php-pecl-apcu
8x86_64
5.1.17-1.module+el8.2.0+5569+98c8b30dFixed in 5.1.18-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pecl-apcu
php-pecl-apcu-devel
8x86_64
5.1.17-1.module+el8.2.0+5569+98c8b30dFixed in 5.1.18-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pecl-apcu-devel
php-pecl-rrd
8x86_64
2.0.1-1.module+el8.2.0+5569+98c8b30dFixed in 2.0.1-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pecl-rrd
php-pecl-xdebug
8x86_64
2.8.0-1.module+el8.2.0+5569+98c8b30dFixed in 2.9.5-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pecl-xdebug
php-pecl-zip
8x86_64
1.15.4-1.module+el8.2.0+5569+98c8b30dFixed in 1.18.2-1.module+el8.3.0+7685+72d70b58
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-pecl-zip
php-process
8x86_64
7.4.19-4.module+el8.6.0+20746+7a133c42Fixed in 7.4.30-1.module+el8.7.0+20800+8e29b882
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade php-process

CNNVD cross-reference

Cached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.