#VU78977 XML External Entity injection in PHP


Published: 2023-08-06 | Updated: 2024-04-17

Vulnerability identifier: #VU78977

Vulnerability risk: High

CVSSv3.1: 7.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-3823

CWE-ID: CWE-611

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to insufficient validation of user-supplied XML input. A remote attacker can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.

Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PHP: 8.0.0 - 8.0.29, 8.1.0 - 8.1.21, 8.2.0 - 8.2.8, 7.4 - 7.4.33


External links
http://www.php.net/ChangeLog-8.php#8.0.30
http://github.com/php/php-src/security/advisories/GHSA-3qrf-m4j2-pcrr
http://www.php.net/ChangeLog-8.php#8.1.22


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.


Latest bulletins with this vulnerability