Lucene search

K
cvelistGitHub_MCVELIST:CVE-2022-29248
HistoryMay 25, 2022 - 12:00 a.m.

CVE-2022-29248 Cross-domain cookie leakage in Guzzle

2022-05-2500:00:00
CWE-200
GitHub_M
www.cve.org
5
vulnerability
guzzle
php
cookie middleware
set-cookie
domain
patch

CVSS3

8

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

AI Score

8.2

Confidence

High

EPSS

0.005

Percentile

75.7%

Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with [‘cookies’ => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.

CNA Affected

[
  {
    "vendor": "guzzle",
    "product": "guzzle",
    "versions": [
      {
        "version": "< 6.5.6",
        "status": "affected"
      },
      {
        "version": ">= 7.0.0, < 7.4.3",
        "status": "affected"
      }
    ]
  }
]

CVSS3

8

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

AI Score

8.2

Confidence

High

EPSS

0.005

Percentile

75.7%