Vulnerability · Published Jan 24, 2020 · Assigned by GitHub_M

CVE-2020-5225Log injection in SimpleSAMLphp

Medium 4.4

In plain English

A medium-severity sensitive data in logs in SimpleSAMLphp from simplesamlphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.7%top 48.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12simplesamlphp1.18.4-1DEBIAN-CVE-2020-5225
Debian:14simplesamlphp1.18.4-1DEBIAN-CVE-2020-5225
Packagistsimplesamlphp/simplesamlphp1.18.4GHSA-6gc6-m364-85ww

Affected products (as reported)

VendorProductVersions
simplesamlphp SimpleSAMLphp < 1.18.4

Weakness: CWE-532 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

References