CVE-2020-5301

Information disclosure of source code in SimpleSAMLphp

Description

SimpleSAMLphp versions before 1.18.6 contain an information disclosure vulnerability. The module controller in `SimpleSAML\Module` that processes requests for pages hosted by modules, has code to identify paths ending with `.php` and process those as PHP code. If no other suitable way of handling the given path exists it presents the file to the browser. The check to identify paths ending with `.php` does not account for uppercase letters. If someone requests a path ending with e.g. `.PHP` and the server is serving the code from a case-insensitive file system, such as on Windows, the processing of the PHP code does not occur, and the source code is instead presented to the browser. An attacker may use this issue to gain access to the source code in third-party modules that is meant to be private, or even sensitive. However, the attack surface is considered small, as the attack will only work when SimpleSAMLphp serves such content from a file system that is not case-sensitive, such as on Windows. This issue is fixed in version 1.18.6.

Categories

3.0
CVSS
Severity: Low
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.14%
Third-Party Advisory github.com Third-Party Advisory github.com
Affected: simplesamlphp simplesamlphp
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2020-5301?
CVE-2020-5301 has been scored as a low severity vulnerability.
How to fix CVE-2020-5301?
To fix CVE-2020-5301, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-5301 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2020-5301 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-5301?
CVE-2020-5301 affects simplesamlphp simplesamlphp.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.