Improper Input Validation Affecting guzzlehttp/psr7 package, versions <1.9.1>=2.0.0, <2.4.5


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.07% (34th 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-GUZZLEHTTPPSR7-5458978
  • published25 Apr 2023
  • disclosed24 Apr 2023
  • creditGrahamCampbell, Nyholm, TimWolla

Introduced: 24 Apr 2023

CVE-2023-29530  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade guzzlehttp/psr7 to version 1.9.1, 2.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation such that an attacker who is able to control the header names passed to Laminas Diactoros would be able to craft invalid messages intentionally, possibly causing application errors or invalid HTTP requests being sent out with a PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests.

Workarounds

Users who are unable to upgrade to the fixed versions, should validate HTTP header keys and/or values, and if using user-supplied values, filter them to strip off leading or trailing newline characters before calling withHeader().

References

CVSS Scores

version 3.1