HTTP Header Injection Affecting laminas/laminas-diactoros package, versions <2.11.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-LAMINASLAMINASDIACTOROS-2961637
  • published28 Jul 2022
  • disclosed27 Jul 2022
  • creditMaximilian Kresse

Introduced: 27 Jul 2022

CVE-2022-31109  (opens in a new tab)
CWE-644  (opens in a new tab)

How to fix?

Upgrade laminas/laminas-diactoros to version 2.11.1 or higher.

Overview

Affected versions of this package are vulnerable to HTTP Header Injection in ServerRequestFactory.php, which does not filter out untrusted values for X-Forwarded-* headers for Laminas\Diactoros\Uri instances.

CVSS Scores

version 3.1