# CVE-2020-5225: Log injection in SimpleSAMLphp

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2020-01-24T20:55:14.000Z
- Modified: 2026-09-10T03:49:25.061Z
- Also known as: GHSA-6gc6-m364-85ww
- Weaknesses: CWE-532
- Assigned by: GitHub_M

## Description

Log injection in SimpleSAMLphp before version 1.18.4. The www/erroreport.php script, which receives error reports and sends them via email to the system administrator, did not properly sanitize the report identifier obtained from the request. This allows an attacker, under specific circumstances, to inject new log lines by manually crafting this report ID. When configured to use the file logging handler, SimpleSAMLphp will output all its logs by appending each log line to a given file. Since the reportID parameter received in a request sent to www/errorreport.php was not properly sanitized, it was possible to inject newline characters into it, effectively allowing a malicious user to inject new log lines with arbitrary content.

(As written by CVE List.)

## Affected

- simplesamlphp SimpleSAMLphp: < 1.18.4; before 1.18.4
- simplesamlphp/simplesamlphp (Packagist): before 1.18.4

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.4 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://github.com/simplesamlphp/simplesamlphp/security/advisories/GHSA-6gc6-m364-85ww> (third-party-advisory, web)
- <https://simplesamlphp.org/security/202001-02> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5225> (advisory)

## Sources

- CVE List: [CVE-2020-5225](https://www.cve.org/CVERecord?id=CVE-2020-5225), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-6gc6-m364-85ww](https://github.com/advisories/GHSA-6gc6-m364-85ww), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5225](https://nvd.nist.gov/vuln/detail/CVE-2020-5225), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5225 · Whole record: https://cve.day/CVE-2020-5225.json · Rebuilt by cve.day 2026-11-25T22:57:50.671Z
