CVE-2020-7067:Buffer Over-read Vulnerability in PHP's urldecode() Function on EBCDIC Systems

splash
Back

Description Preview

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, there is a buffer over-read vulnerability in the urldecode() function when PHP is compiled with EBCDIC support. The vulnerability occurs because the function erroneously uses signed numbers as array indexes, which can lead to accessing memory locations beyond the allocated buffer. This issue is classified as CWE-125 (Out-of-bounds Read) and could potentially lead to information disclosure or application crashes.

Overview

The vulnerability affects PHP installations that are specifically compiled with EBCDIC (Extended Binary Coded Decimal Interchange Code) support, which is relatively uncommon. Most modern systems use ASCII or Unicode encoding, making this vulnerability's impact limited to specialized environments. When exploited, the vulnerability in the urldecode() function allows attackers to potentially read data outside the boundaries of allocated memory by manipulating input parameters. This could lead to information leakage or denial of service conditions if the application crashes due to accessing invalid memory.

Remediation

To address this vulnerability, users should upgrade their PHP installations to the following patched versions:

  • For PHP 7.2.x: Upgrade to version 7.2.30 or later
  • For PHP 7.3.x: Upgrade to version 7.3.17 or later
  • For PHP 7.4.x: Upgrade to version 7.4.5 or later

If immediate upgrading is not possible, consider implementing the following mitigations:

  1. Avoid using the urldecode() function with untrusted input
  2. Apply input validation before passing data to urldecode()
  3. Consider using alternative URL decoding methods if available
  4. Monitor for unusual application behavior or crashes that might indicate exploitation attempts

References

  1. PHP Bug Tracker: https://bugs.php.net/bug.php?id=79465
  2. NetApp Security Advisory: https://security.netapp.com/advisory/ntap-20200504-0001/
  3. Debian Security Advisory DSA-4717: https://www.debian.org/security/2020/dsa-4717
  4. Debian Security Advisory DSA-4719: https://www.debian.org/security/2020/dsa-4719
  5. Oracle Critical Patch Update Advisory - October 2020: https://www.oracle.com/security-alerts/cpuoct2020.html
  6. Oracle Critical Patch Update Advisory - April 2021: https://www.oracle.com/security-alerts/cpuApr2021.html
  7. Tenable Security Advisory TNS-2021-14: https://www.tenable.com/security/tns-2021-14

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Manufacturing
    Manufacturing
  2. Health Care & Social Assistance
    Health Care & Social Assistance
  3. Public Administration
    Public Administration
  4. Educational Services
    Educational Services
  5. Finance and Insurance
    Finance and Insurance
  6. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  7. Transportation & Warehousing
    Transportation & Warehousing
  8. Management of Companies & Enterprises
    Management of Companies & Enterprises
  9. Other Services (except Public Administration)
    Other Services (except Public Administration)
  10. Retail Trade
    Retail Trade
  11. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  12. Utilities
    Utilities
  13. Information
    Information
  14. Mining
    Mining
  15. Accommodation & Food Services
    Accommodation & Food Services
  16. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  17. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  18. Construction
    Construction
  19. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background