CVE-2020-5225Log injection in SimpleSAMLphp
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.
What to do
Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | simplesamlphp | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | simplesamlphp | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | simplesamlphp | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | simplesamlphp | Fix pending | UBUNTU-CVE-2020-5225 | |
| Ubuntu 16.04 | simplesamlphp | Fix pending | UBUNTU-CVE-2020-5225 | |
| Ubuntu 14.04 | simplesamlphp | Fix pending | ||
| Debian 14 | simplesamlphp | Fixed | 1.18.4-1 | DEBIAN-CVE-2020-5225 |
| Debian 12 | simplesamlphp | Fixed | 1.18.4-1 | DEBIAN-CVE-2020-5225 |
| Packagist library | simplesamlphp/simplesamlphp | Fixed | 1.18.4 | GHSA-6gc6-m364-85ww |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SimpleSAMLphp: affected: < 1.18.4
References
- https://github.com/simplesamlphp/simplesamlphp/security/advisories/GHSA-6gc6-m364-85ww
- https://simplesamlphp.org/security/202001-02
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.