synced JUST NOW
01 Record

CVE-2021-21707

Special characters break path parsing in XML functions

MediumPUBLISHEDCNA: php
CNA base score5.3 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

02 Description

Special characters break path parsing in XML functions

03 Exploitation and scoring

Exploitation
Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
SSVC decision
Not assessed by CISA
EPSS probability
25.31% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 97.9% of scored records. A rank, not a probability.
NVD base score
5.3 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2021-11-29 06:25Z4 YR AGO
Last updated
2024-09-17 03:38Z2 YR AGO
Reserved
2021-01-04
Assigning CNA
php
Record state
PUBLISHED
Severity
Medium (CVSS 5.3)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
  • CWE-159Improper Handling of Invalid Use of Special ElementsClass
  • CWE-20Improper Input ValidationClass
Data version
5.1
Document digest
a4a46dfed5f74682522e66ffb9ee1186afe5cee55d60c88d3b77919991db1245

05 Affected products

VendorProductVersionsPlatforms
PHP GroupPHP7.3.x to < 7.3.33, 7.4.x to < 7.4.26, 8.0.X to < 8.0.13—

06 References

07 Fixed in

AlmaLinux 8

  • apcu-panel
    Fixed in 5.1.18-1.module_el8.6.0+2750+78feabcb
  • libzip
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • libzip-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • libzip-tools
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • php
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-bcmath
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-cli
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-common
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-dba
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-dbg
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-devel
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-embedded
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-enchant
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-ffi
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-fpm
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-gd
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-gmp
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-intl
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-json
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-ldap
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-mbstring
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-mysqlnd
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-odbc
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-opcache
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-pdo
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-pear
    Fixed in 1:1.10.13-1.module_el8.6.0+3268+b150a051
  • php-pecl-apcu
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.1.18-1.module_el8.6.0+2750+78feabcb
    • Affected before 5.1.18-1.module_el8.6.0+3239+bedf0508
  • php-pecl-apcu-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.1.18-1.module_el8.6.0+2750+78feabcb
    • Affected before 5.1.18-1.module_el8.6.0+3239+bedf0508
  • php-pecl-rrd
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 2.0.1-1.module_el8.6.0+3239+bedf0508
  • php-pecl-xdebug
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.9.5-1.module_el8.6.0+2750+78feabcb
    • Affected before 2.9.5-1.module_el8.6.0+3239+bedf0508
  • php-pecl-zip
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.18.2-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.18.2-1.module_el8.6.0+3239+bedf0508
  • php-pgsql
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-process
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-snmp
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-soap
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-xml
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-xmlrpc
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Arch Linux

  • php
    Fixed in 8.0.13-1

Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.

CloudLinux 8

  • apcu-panel
    Fixed in 5.1.18-1.module_el8.6.0+2750+78feabcb
  • libzip
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • libzip-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • libzip-tools
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.6.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.6.1-1.module_el8.6.0+3239+bedf0508
  • php
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-bcmath
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-cli
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-common
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-dba
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-dbg
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-devel
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-embedded
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-enchant
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-ffi
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-fpm
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-gd
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-gmp
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-intl
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-json
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-ldap
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-mbstring
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-mysqlnd
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-odbc
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-opcache
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-pdo
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-pear
    Fixed in 1:1.10.13-1.module_el8.6.0+3268+b150a051
  • php-pecl-apcu
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.1.18-1.module_el8.6.0+2750+78feabcb
    • Affected before 5.1.18-1.module_el8.6.0+3239+bedf0508
  • php-pecl-apcu-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.1.18-1.module_el8.6.0+2750+78feabcb
    • Affected before 5.1.18-1.module_el8.6.0+3239+bedf0508
  • php-pecl-rrd
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.1-1.module_el8.6.0+2750+78feabcb
    • Affected before 2.0.1-1.module_el8.6.0+3239+bedf0508
  • php-pecl-xdebug
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.9.5-1.module_el8.6.0+2750+78feabcb
    • Affected before 2.9.5-1.module_el8.6.0+3239+bedf0508
  • php-pecl-zip
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.18.2-1.module_el8.6.0+2750+78feabcb
    • Affected before 1.18.2-1.module_el8.6.0+3239+bedf0508
  • php-pgsql
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-process
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-snmp
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-soap
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-xml
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0
  • php-xmlrpc
    Fixed in 7.4.30-1.module_el8.7.0+3286+227f3cf0

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 11

  • php7.4
    Fixed in 7.4.28-1+deb11u1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • php7.2
    Fixed in 7.2.24-0ubuntu0.18.04.11

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • php7.4
    Fixed in 7.4.3-4ubuntu2.10

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • php5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • php7.0
    Fixed in 7.0.33-0ubuntu0.16.04.16+esm3
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.