OESA-2021-1389

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1389
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1389.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1389
Upstream
Published
2021-10-15T11:03:16Z
Modified
2025-08-12T05:07:15.773215Z
Summary
php security update
Details

PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.

Security Fix(es):

In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filtervar() function with FILTERVALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.(CVE-2021-21705)

In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using Firebird PDO driver extension, a malicious database server could cause crashes in various database functions, such as getAttribute(), execute(), fetch() and others by returning invalid response data that is not parsed correctly by the driver. This can result in crashes, denial of service or potentially memory corruption.(CVE-2021-21704)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / php

Package

Name
php
Purl
pkg:rpm/openEuler/php&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.2.10-15.oe1

Ecosystem specific

{
    "src": [
        "php-7.2.10-15.oe1.src.rpm"
    ],
    "x86_64": [
        "php-xml-7.2.10-15.oe1.x86_64.rpm",
        "php-fpm-7.2.10-15.oe1.x86_64.rpm",
        "php-embedded-7.2.10-15.oe1.x86_64.rpm",
        "php-devel-7.2.10-15.oe1.x86_64.rpm",
        "php-pdo-7.2.10-15.oe1.x86_64.rpm",
        "php-dba-7.2.10-15.oe1.x86_64.rpm",
        "php-bcmath-7.2.10-15.oe1.x86_64.rpm",
        "php-enchant-7.2.10-15.oe1.x86_64.rpm",
        "php-mbstring-7.2.10-15.oe1.x86_64.rpm",
        "php-pgsql-7.2.10-15.oe1.x86_64.rpm",
        "php-tidy-7.2.10-15.oe1.x86_64.rpm",
        "php-gmp-7.2.10-15.oe1.x86_64.rpm",
        "php-recode-7.2.10-15.oe1.x86_64.rpm",
        "php-odbc-7.2.10-15.oe1.x86_64.rpm",
        "php-help-7.2.10-15.oe1.x86_64.rpm",
        "php-gd-7.2.10-15.oe1.x86_64.rpm",
        "php-cli-7.2.10-15.oe1.x86_64.rpm",
        "php-mysqlnd-7.2.10-15.oe1.x86_64.rpm",
        "php-xmlrpc-7.2.10-15.oe1.x86_64.rpm",
        "php-snmp-7.2.10-15.oe1.x86_64.rpm",
        "php-soap-7.2.10-15.oe1.x86_64.rpm",
        "php-debugsource-7.2.10-15.oe1.x86_64.rpm",
        "php-ldap-7.2.10-15.oe1.x86_64.rpm",
        "php-dbg-7.2.10-15.oe1.x86_64.rpm",
        "php-intl-7.2.10-15.oe1.x86_64.rpm",
        "php-7.2.10-15.oe1.x86_64.rpm",
        "php-opcache-7.2.10-15.oe1.x86_64.rpm",
        "php-json-7.2.10-15.oe1.x86_64.rpm",
        "php-common-7.2.10-15.oe1.x86_64.rpm",
        "php-debuginfo-7.2.10-15.oe1.x86_64.rpm",
        "php-process-7.2.10-15.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "php-intl-7.2.10-15.oe1.aarch64.rpm",
        "php-dbg-7.2.10-15.oe1.aarch64.rpm",
        "php-gd-7.2.10-15.oe1.aarch64.rpm",
        "php-cli-7.2.10-15.oe1.aarch64.rpm",
        "php-gmp-7.2.10-15.oe1.aarch64.rpm",
        "php-enchant-7.2.10-15.oe1.aarch64.rpm",
        "php-process-7.2.10-15.oe1.aarch64.rpm",
        "php-mbstring-7.2.10-15.oe1.aarch64.rpm",
        "php-ldap-7.2.10-15.oe1.aarch64.rpm",
        "php-mysqlnd-7.2.10-15.oe1.aarch64.rpm",
        "php-xml-7.2.10-15.oe1.aarch64.rpm",
        "php-pgsql-7.2.10-15.oe1.aarch64.rpm",
        "php-tidy-7.2.10-15.oe1.aarch64.rpm",
        "php-snmp-7.2.10-15.oe1.aarch64.rpm",
        "php-odbc-7.2.10-15.oe1.aarch64.rpm",
        "php-devel-7.2.10-15.oe1.aarch64.rpm",
        "php-soap-7.2.10-15.oe1.aarch64.rpm",
        "php-recode-7.2.10-15.oe1.aarch64.rpm",
        "php-7.2.10-15.oe1.aarch64.rpm",
        "php-debugsource-7.2.10-15.oe1.aarch64.rpm",
        "php-fpm-7.2.10-15.oe1.aarch64.rpm",
        "php-embedded-7.2.10-15.oe1.aarch64.rpm",
        "php-json-7.2.10-15.oe1.aarch64.rpm",
        "php-dba-7.2.10-15.oe1.aarch64.rpm",
        "php-debuginfo-7.2.10-15.oe1.aarch64.rpm",
        "php-opcache-7.2.10-15.oe1.aarch64.rpm",
        "php-common-7.2.10-15.oe1.aarch64.rpm",
        "php-xmlrpc-7.2.10-15.oe1.aarch64.rpm",
        "php-help-7.2.10-15.oe1.aarch64.rpm",
        "php-pdo-7.2.10-15.oe1.aarch64.rpm",
        "php-bcmath-7.2.10-15.oe1.aarch64.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / php

Package

Name
php
Purl
pkg:rpm/openEuler/php&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0.0-4.oe1

Ecosystem specific

{
    "src": [
        "php-8.0.0-4.oe1.src.rpm"
    ],
    "x86_64": [
        "php-dba-8.0.0-4.oe1.x86_64.rpm",
        "php-bcmath-8.0.0-4.oe1.x86_64.rpm",
        "php-enchant-8.0.0-4.oe1.x86_64.rpm",
        "php-embedded-8.0.0-4.oe1.x86_64.rpm",
        "php-gd-8.0.0-4.oe1.x86_64.rpm",
        "php-odbc-8.0.0-4.oe1.x86_64.rpm",
        "php-gmp-8.0.0-4.oe1.x86_64.rpm",
        "php-mbstring-8.0.0-4.oe1.x86_64.rpm",
        "php-mysqlnd-8.0.0-4.oe1.x86_64.rpm",
        "php-common-8.0.0-4.oe1.x86_64.rpm",
        "php-debugsource-8.0.0-4.oe1.x86_64.rpm",
        "php-help-8.0.0-4.oe1.x86_64.rpm",
        "php-cli-8.0.0-4.oe1.x86_64.rpm",
        "php-fpm-8.0.0-4.oe1.x86_64.rpm",
        "php-tidy-8.0.0-4.oe1.x86_64.rpm",
        "php-opcache-8.0.0-4.oe1.x86_64.rpm",
        "php-xml-8.0.0-4.oe1.x86_64.rpm",
        "php-snmp-8.0.0-4.oe1.x86_64.rpm",
        "php-8.0.0-4.oe1.x86_64.rpm",
        "php-pgsql-8.0.0-4.oe1.x86_64.rpm",
        "php-devel-8.0.0-4.oe1.x86_64.rpm",
        "php-ldap-8.0.0-4.oe1.x86_64.rpm",
        "php-debuginfo-8.0.0-4.oe1.x86_64.rpm",
        "php-intl-8.0.0-4.oe1.x86_64.rpm",
        "php-ffi-8.0.0-4.oe1.x86_64.rpm",
        "php-process-8.0.0-4.oe1.x86_64.rpm",
        "php-soap-8.0.0-4.oe1.x86_64.rpm",
        "php-pdo-8.0.0-4.oe1.x86_64.rpm",
        "php-dbg-8.0.0-4.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "php-tidy-8.0.0-4.oe1.aarch64.rpm",
        "php-process-8.0.0-4.oe1.aarch64.rpm",
        "php-intl-8.0.0-4.oe1.aarch64.rpm",
        "php-mysqlnd-8.0.0-4.oe1.aarch64.rpm",
        "php-opcache-8.0.0-4.oe1.aarch64.rpm",
        "php-bcmath-8.0.0-4.oe1.aarch64.rpm",
        "php-enchant-8.0.0-4.oe1.aarch64.rpm",
        "php-embedded-8.0.0-4.oe1.aarch64.rpm",
        "php-gmp-8.0.0-4.oe1.aarch64.rpm",
        "php-ldap-8.0.0-4.oe1.aarch64.rpm",
        "php-dba-8.0.0-4.oe1.aarch64.rpm",
        "php-common-8.0.0-4.oe1.aarch64.rpm",
        "php-ffi-8.0.0-4.oe1.aarch64.rpm",
        "php-dbg-8.0.0-4.oe1.aarch64.rpm",
        "php-odbc-8.0.0-4.oe1.aarch64.rpm",
        "php-soap-8.0.0-4.oe1.aarch64.rpm",
        "php-devel-8.0.0-4.oe1.aarch64.rpm",
        "php-debugsource-8.0.0-4.oe1.aarch64.rpm",
        "php-pdo-8.0.0-4.oe1.aarch64.rpm",
        "php-xml-8.0.0-4.oe1.aarch64.rpm",
        "php-snmp-8.0.0-4.oe1.aarch64.rpm",
        "php-help-8.0.0-4.oe1.aarch64.rpm",
        "php-mbstring-8.0.0-4.oe1.aarch64.rpm",
        "php-cli-8.0.0-4.oe1.aarch64.rpm",
        "php-gd-8.0.0-4.oe1.aarch64.rpm",
        "php-8.0.0-4.oe1.aarch64.rpm",
        "php-fpm-8.0.0-4.oe1.aarch64.rpm",
        "php-debuginfo-8.0.0-4.oe1.aarch64.rpm",
        "php-pgsql-8.0.0-4.oe1.aarch64.rpm"
    ]
}