Anolis OS update for php:7.4 module



| Updated: 2025-03-28
Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2021-21703
CVE-2021-21705
CWE-ID CWE-787
CWE-918
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Anolis OS
Operating systems & Components / Operating system

php-xmlrpc
Operating systems & Components / Operating system package or component

php-xml
Operating systems & Components / Operating system package or component

php-soap
Operating systems & Components / Operating system package or component

php-snmp
Operating systems & Components / Operating system package or component

php-process
Operating systems & Components / Operating system package or component

php-pgsql
Operating systems & Components / Operating system package or component

php-pecl-zip
Operating systems & Components / Operating system package or component

php-pecl-xdebug
Operating systems & Components / Operating system package or component

php-pecl-rrd
Operating systems & Components / Operating system package or component

php-pecl-apcu-devel
Operating systems & Components / Operating system package or component

php-pecl-apcu
Operating systems & Components / Operating system package or component

php-pdo
Operating systems & Components / Operating system package or component

php-opcache
Operating systems & Components / Operating system package or component

php-odbc
Operating systems & Components / Operating system package or component

php-mysqlnd
Operating systems & Components / Operating system package or component

php-mbstring
Operating systems & Components / Operating system package or component

php-ldap
Operating systems & Components / Operating system package or component

php-json
Operating systems & Components / Operating system package or component

php-intl
Operating systems & Components / Operating system package or component

php-gmp
Operating systems & Components / Operating system package or component

php-gd
Operating systems & Components / Operating system package or component

php-fpm
Operating systems & Components / Operating system package or component

php-ffi
Operating systems & Components / Operating system package or component

php-enchant
Operating systems & Components / Operating system package or component

php-embedded
Operating systems & Components / Operating system package or component

php-devel
Operating systems & Components / Operating system package or component

php-dbg
Operating systems & Components / Operating system package or component

php-dba
Operating systems & Components / Operating system package or component

php-common
Operating systems & Components / Operating system package or component

php-cli
Operating systems & Components / Operating system package or component

php-bcmath
Operating systems & Components / Operating system package or component

php
Operating systems & Components / Operating system package or component

libzip-tools
Operating systems & Components / Operating system package or component

libzip-devel
Operating systems & Components / Operating system package or component

libzip
Operating systems & Components / Operating system package or component

php-pear
Operating systems & Components / Operating system package or component

apcu-panel
Operating systems & Components / Operating system package or component

Vendor OpenAnolis

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Out-of-bounds write

EUVDB-ID: #VU57656

Risk: Low

CVSSv4.0: 7.1 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Clear]

CVE-ID: CVE-2021-21703

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists in the way PHP handles shared memory access, when using PHP FPM SAPI with main FPM daemon process running as root and child worker processes running as lower-privileged users. A child process can access shared memory with the main process and write to it. As a result, it is possible to cause the root process to conduct invalid memory reads and writes with root privileges. A local user can trigger an out-of-bounds write error and execute arbitrary code on the system with root privileges.



Mitigation

Install updates from vendor's repository.

Vulnerable software versions

Anolis OS: 8

php-xmlrpc: before 7.4.19-2.0.1

php-xml: before 7.4.19-2.0.1

php-soap: before 7.4.19-2.0.1

php-snmp: before 7.4.19-2.0.1

php-process: before 7.4.19-2.0.1

php-pgsql: before 7.4.19-2.0.1

php-pecl-zip: before 1.18.2-1

php-pecl-xdebug: before 2.9.5-1

php-pecl-rrd: before 2.0.1-1

php-pecl-apcu-devel: before 5.1.18-1

php-pecl-apcu: before 5.1.18-1

php-pdo: before 7.4.19-2.0.1

php-opcache: before 7.4.19-2.0.1

php-odbc: before 7.4.19-2.0.1

php-mysqlnd: before 7.4.19-2.0.1

php-mbstring: before 7.4.19-2.0.1

php-ldap: before 7.4.19-2.0.1

php-json: before 7.4.19-2.0.1

php-intl: before 7.4.19-2.0.1

php-gmp: before 7.4.19-2.0.1

php-gd: before 7.4.19-2.0.1

php-fpm: before 7.4.19-2.0.1

php-ffi: before 7.4.19-2.0.1

php-enchant: before 7.4.19-2.0.1

php-embedded: before 7.4.19-2.0.1

php-devel: before 7.4.19-2.0.1

php-dbg: before 7.4.19-2.0.1

php-dba: before 7.4.19-2.0.1

php-common: before 7.4.19-2.0.1

php-cli: before 7.4.19-2.0.1

php-bcmath: before 7.4.19-2.0.1

php: before 7.4.19-2.0.1

libzip-tools: before 1.6.1-1

libzip-devel: before 1.6.1-1

libzip: before 1.6.1-1

php-pear: before 1.10.12-1

apcu-panel: before 5.1.18-1

CPE2.3 External links

https://anas.openanolis.cn/errata/detail/ANSA-2022:0458


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Server-Side Request Forgery (SSRF)

EUVDB-ID: #VU54565

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2021-21705

CWE-ID: CWE-918 - Server-Side Request Forgery (SSRF)

Exploit availability: No

Description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can send a specially crafted HTTP request, bypass the FILTER_VALIDATE_URL and trick the application to initiate requests to arbitrary systems.

Successful exploitation of this vulnerability may allow a remote attacker gain access to sensitive data, located in the local network or send malicious requests to other servers from the vulnerable system.

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

Anolis OS: 8

php-xmlrpc: before 7.4.19-2.0.1

php-xml: before 7.4.19-2.0.1

php-soap: before 7.4.19-2.0.1

php-snmp: before 7.4.19-2.0.1

php-process: before 7.4.19-2.0.1

php-pgsql: before 7.4.19-2.0.1

php-pecl-zip: before 1.18.2-1

php-pecl-xdebug: before 2.9.5-1

php-pecl-rrd: before 2.0.1-1

php-pecl-apcu-devel: before 5.1.18-1

php-pecl-apcu: before 5.1.18-1

php-pdo: before 7.4.19-2.0.1

php-opcache: before 7.4.19-2.0.1

php-odbc: before 7.4.19-2.0.1

php-mysqlnd: before 7.4.19-2.0.1

php-mbstring: before 7.4.19-2.0.1

php-ldap: before 7.4.19-2.0.1

php-json: before 7.4.19-2.0.1

php-intl: before 7.4.19-2.0.1

php-gmp: before 7.4.19-2.0.1

php-gd: before 7.4.19-2.0.1

php-fpm: before 7.4.19-2.0.1

php-ffi: before 7.4.19-2.0.1

php-enchant: before 7.4.19-2.0.1

php-embedded: before 7.4.19-2.0.1

php-devel: before 7.4.19-2.0.1

php-dbg: before 7.4.19-2.0.1

php-dba: before 7.4.19-2.0.1

php-common: before 7.4.19-2.0.1

php-cli: before 7.4.19-2.0.1

php-bcmath: before 7.4.19-2.0.1

php: before 7.4.19-2.0.1

libzip-tools: before 1.6.1-1

libzip-devel: before 1.6.1-1

libzip: before 1.6.1-1

php-pear: before 1.10.12-1

apcu-panel: before 5.1.18-1

CPE2.3 External links

https://anas.openanolis.cn/errata/detail/ANSA-2022:0458


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###