CVE-2020-5301
PHP vulnerability analysis and mitigation

Overview

SimpleSAMLphp versions before 1.18.6 contain an information disclosure vulnerability identified as CVE-2020-5301. The vulnerability was discovered by Sławek Naczyński and disclosed in April 2020. The issue affects the module controller in SimpleSAML\Module that processes requests for pages hosted by modules (GitHub Advisory).

Technical details

The vulnerability stems from improper handling of case sensitivity in file extensions. The module controller checks for paths ending with '.php' to process them as PHP code, but this check doesn't account for uppercase letters. When a path ends with uppercase extensions (e.g., '.PHP') and the server is running on a case-insensitive file system like Windows, the PHP code processing is bypassed, resulting in the source code being displayed in the browser instead of being executed (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 3.1 (LOW) with vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N (NVD).

Impact

An attacker could potentially gain unauthorized access to source code in third-party modules that is intended to be private or contains sensitive information. However, the attack surface is considered small since the vulnerability only affects SimpleSAMLphp installations running on case-insensitive file systems, such as Windows (GitHub Advisory).

Exploitability

The vulnerability requires specific conditions to be exploited: the SimpleSAMLphp installation must be running on a case-insensitive file system (like Windows), and the attacker needs to specifically request paths with uppercase PHP extensions. The attack complexity is considered high, requiring low privileges and no user interaction (NVD).

Mitigation and workarounds

The vulnerability has been fixed in SimpleSAMLphp version 1.18.6. The fix involves converting the path to lowercase before checking the file extension. Organizations using affected versions should upgrade to version 1.18.6 or later to address this security issue (GitHub Commit).

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

CVE-2026-44741HIGH8.8
  • PHP logoPHP
  • pimcore/admin-ui-classic-bundle
NoYesAug 12, 2026
CVE-2026-47233MEDIUM6.5
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-47132MEDIUM5.4
  • PHP logoPHP
  • thorsten/phpmyfaq
NoYesAug 12, 2026
CVE-2026-47234MEDIUM4.4
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-49262LOW3
  • PHP logoPHP
  • aimeos/pagible
NoYesAug 12, 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