CVEfocus › CVE database › CVE-2020-5225

CVE-2020-5225Log injection in SimpleSAMLphp

CVSS 4.4 MediumEPSS 0.7% (higher than 46% of CVEs)Published 2020-01-24Updated 2024-08-04Assigner: GitHub_M

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.

CWE-532

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

3Fixed
3Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04simplesamlphpNot affected
vulnerable_code_not_present
Ubuntu 25.10simplesamlphpNot affected
vulnerable_code_not_present
Ubuntu 24.04simplesamlphpNot affected
vulnerable_code_not_present
Ubuntu 18.04simplesamlphpFix pendingUBUNTU-CVE-2020-5225
Ubuntu 16.04simplesamlphpFix pendingUBUNTU-CVE-2020-5225
Ubuntu 14.04simplesamlphpFix pending
Debian 14simplesamlphpFixed1.18.4-1DEBIAN-CVE-2020-5225
Debian 12simplesamlphpFixed1.18.4-1DEBIAN-CVE-2020-5225
Packagist librarysimplesamlphp/simplesamlphpFixed1.18.4GHSA-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.

References

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.