Patchfirst
CVE-2020-5225 Medium · 4.4 EPSS 0.7%

Log injection in SimpleSAMLphp

simplesamlphp · SimpleSAMLphp

Official description · CVE.org

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.

Breakdown
13.4 / 100
Exploited
Not confirmed
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. What can follow

Disclosed on 24 Jan 2020. No public exploit code or confirmed exploitation is recorded.

7 fixes in simplesamlphp/simplesamlphp over 9 years. The latest fix listed for simplesamlphp/simplesamlphp is 2.5.2.

Fixes in simplesamlphp/simplesamlphpPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.15.0-rc1CVE-2017-128721 Sep 2017
  2. 1.15.2CVE-2018-65202 Feb 2018
  3. 1.15.2CVE-2018-65212 Feb 2018
  4. 1.18.4CVE-2020-522524 Jan 2020
  5. 1.18.4CVE-2020-522624 Jan 2020
  6. 1.18.6CVE-2020-530121 Apr 2020
  7. 2.5.2CVE-2026-4928417 Jul 2026Latest listed

techniques

1 , grouped by in kill-chain order 1

ImpactTA0040

MITRE CTID mapping of the CVE · follow-on activity
Lower-confidence links (2)

These come from early or generic mappings, text matching, or contradict this CVE’s details (for example a public-facing technique on a bug that needs a user to open a file). Shown for completeness.

  • External Remote ServicesT1133 needs user interaction; not a public-facing exploit
  • Exploit Public-Facing ApplicationT1190 needs user interaction; not a public-facing exploit

Detection

0 rules for this CVE · 3 general rules for its techniques

Rules for this CVE

0 that reference CVE-2020-5225 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: simplesamlphp/simplesamlphp.

Packagistsimplesamlphp/simplesamlphpGHSA-6gc6-m364-85ww

Upgrade to 1.18.4 or later

Set the version to 1.18.4 or later in your composer.json.

The first fix for CVE-2020-5225. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.18.41.18.4

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close