CVE-2020-7067
PHP vulnerability analysis and mitigation

Overview

In PHP versions 7.2.x below 7.2.30, 7.3.x below 7.3.17 and 7.4.x below 7.4.5, if PHP is compiled with EBCDIC support (uncommon), urldecode() function can be made to access locations past the allocated memory, due to erroneously using signed numbers as array indexes (PHP Bug, NVD).

Technical details

The vulnerability occurs when CHARSET_EBCDIC is defined (usually on systems with EBCDIC encoding support). The issue stems from casting hex values to signed char type instead of unsigned char when used as array indexes in the urldecode() function. This allows insertion of negative hex values to access memory locations before the array (PHP Bug). The vulnerability has been assigned a CVSS v3.1 Base Score of 7.5 HIGH with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information through out-of-bounds memory access (NetApp Advisory).

Exploitability

The vulnerability is remotely exploitable without authentication, meaning it can be exploited over a network without requiring user credentials. However, it only affects PHP installations compiled with EBCDIC support, which is uncommon (NVD).

Mitigation and workarounds

The vulnerability has been fixed in PHP versions 7.2.30, 7.3.17, and 7.4.5. Users should upgrade to these or later versions to address the issue. The fix involves using unsigned char type for array indexing (PHP Bug).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-8cfw-pcwh-v63wHIGH8.4
  • PHP logoPHP
  • winter/wn-system-module
NoYesAug 20, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-fm29-4mq3-phg6MEDIUM5.3
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-mpmw-f6h6-3g26MEDIUM4.3
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management