GSD-2022-29248
Vulnerability from gsd - Updated: 2023-12-13 01:19Details
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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2022-29248",
"description": "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 [\u0027cookies\u0027 =\u003e 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.",
"id": "GSD-2022-29248",
"references": [
"https://www.debian.org/security/2022/dsa-5246",
"https://advisories.mageia.org/CVE-2022-29248.html",
"https://security.archlinux.org/CVE-2022-29248"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2022-29248"
],
"details": "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 [\u0027cookies\u0027 =\u003e 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.",
"id": "GSD-2022-29248",
"modified": "2023-12-13T01:19:42.012504Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-29248",
"STATE": "PUBLIC",
"TITLE": "Cross-domain cookie leakage in Guzzle"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "guzzle",
"version": {
"version_data": [
{
"version_value": "\u003c 6.5.6"
},
{
"version_value": "\u003e= 7.0.0, \u003c 7.4.3"
}
]
}
}
]
},
"vendor_name": "guzzle"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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 [\u0027cookies\u0027 =\u003e 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."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 8.0,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"refsource": "CONFIRM",
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3"
},
{
"name": "https://github.com/guzzle/guzzle/pull/3018",
"refsource": "MISC",
"url": "https://github.com/guzzle/guzzle/pull/3018"
},
{
"name": "https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"refsource": "MISC",
"url": "https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab"
},
{
"name": "https://www.drupal.org/sa-core-2022-010",
"refsource": "CONFIRM",
"url": "https://www.drupal.org/sa-core-2022-010"
},
{
"name": "DSA-5246",
"refsource": "DEBIAN",
"url": "https://www.debian.org/security/2022/dsa-5246"
}
]
},
"source": {
"advisory": "GHSA-cwmx-hcrq-mhc3",
"discovery": "UNKNOWN"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=9.2.0,\u003c9.2.20||\u003e=9.3.0,\u003c9.3.14",
"affected_versions": "All versions starting from 9.2.0 before 9.2.20, all versions starting from 9.3.0 before 9.3.14",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-565",
"CWE-937"
],
"date": "2023-07-21",
"description": "Drupal uses the third-party Guzzle library for handling HTTP requests and responses to external services. Guzzle has released a security update which does not affect Drupal core, but may affect some contributed projects or custom code on Drupal sites.",
"fixed_versions": [
"9.2.20",
"9.3.14"
],
"identifier": "CVE-2022-29248",
"identifiers": [
"CVE-2022-29248",
"GHSA-cwmx-hcrq-mhc3"
],
"not_impacted": "All versions before 9.2.0, all versions starting from 9.2.20 before 9.3.0, all versions starting from 9.3.14",
"package_slug": "packagist/drupal/core-recommended",
"pubdate": "2022-05-25",
"solution": "Upgrade to versions 9.2.20, 9.3.14 or above.",
"title": "Exposure of Sensitive Information to an Unauthorized Actor",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-29248",
"https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"https://github.com/guzzle/guzzle/pull/3018",
"https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"https://www.drupal.org/sa-core-2022-010"
],
"uuid": "4b8de7e4-035a-4fe9-88b2-d60cd649bb7d"
},
{
"affected_range": "\u003e=9.2.0,\u003c9.2.20||\u003e=9.3.0,\u003c9.3.14",
"affected_versions": "All versions starting from 9.2.0 before 9.2.20, all versions starting from 9.3.0 before 9.3.14",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-565",
"CWE-937"
],
"date": "2023-07-21",
"description": "Drupal uses the third-party Guzzle library for handling HTTP requests and responses to external services. Guzzle has released a security update which does not affect Drupal core, but may affect some contributed projects or custom code on Drupal sites.",
"fixed_versions": [
"9.2.20",
"9.3.14"
],
"identifier": "CVE-2022-29248",
"identifiers": [
"CVE-2022-29248",
"GHSA-cwmx-hcrq-mhc3"
],
"not_impacted": "All versions before 9.2.0, all versions starting from 9.2.20 before 9.3.0, all versions starting from 9.3.14",
"package_slug": "packagist/drupal/core",
"pubdate": "2022-05-25",
"solution": "Upgrade to versions 9.2.20, 9.3.14 or above.",
"title": "Exposure of Sensitive Information to an Unauthorized Actor",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-29248",
"https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"https://github.com/guzzle/guzzle/pull/3018",
"https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"https://www.drupal.org/sa-core-2022-010"
],
"uuid": "daf3fc46-fad3-402f-8fe6-841005dbe62f"
},
{
"affected_range": "\u003e=9.2.0,\u003c9.2.20||\u003e=9.3.0,\u003c9.3.14",
"affected_versions": "All versions starting from 9.2.0 before 9.2.20, all versions starting from 9.3.0 before 9.3.14",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-565",
"CWE-937"
],
"date": "2023-07-21",
"description": "Drupal uses the third-party Guzzle library for handling HTTP requests and responses to external services. Guzzle has released a security update which does not affect Drupal core, but may affect some contributed projects or custom code on Drupal sites.",
"fixed_versions": [],
"identifier": "CVE-2022-29248",
"identifiers": [
"CVE-2022-29248",
"GHSA-cwmx-hcrq-mhc3"
],
"not_impacted": "",
"package_slug": "packagist/drupal/drupal",
"pubdate": "2022-05-25",
"solution": "Unfortunately, there is no solution available yet.",
"title": "Exposure of Sensitive Information to an Unauthorized Actor",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-29248",
"https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"https://github.com/guzzle/guzzle/pull/3018",
"https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"https://www.drupal.org/sa-core-2022-010"
],
"uuid": "500920c7-4961-4f81-8b77-c27ccf45411e"
},
{
"affected_range": "\u003c6.5.6||\u003e=7.0.0,\u003c7.4.3",
"affected_versions": "All versions before 6.5.6, all versions starting from 7.0.0 before 7.4.3",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-565",
"CWE-937"
],
"date": "2023-07-21",
"description": "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 [\u0027cookies\u0027 =\u003e 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.",
"fixed_versions": [
"6.5.6",
"7.4.3"
],
"identifier": "CVE-2022-29248",
"identifiers": [
"CVE-2022-29248",
"GHSA-cwmx-hcrq-mhc3"
],
"not_impacted": "All versions starting from 6.5.6 before 7.0.0, all versions starting from 7.4.3",
"package_slug": "packagist/guzzlehttp/guzzle",
"pubdate": "2022-05-25",
"solution": "Upgrade to versions 6.5.6, 7.4.3 or above.",
"title": "Exposure of Sensitive Information to an Unauthorized Actor",
"urls": [
"https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"https://github.com/guzzle/guzzle/pull/3018",
"https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"https://github.com/advisories/GHSA-cwmx-hcrq-mhc3"
],
"uuid": "53d93877-f304-4c2f-95a8-6cf8defefdfb"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "7.4.3",
"versionStartIncluding": "7.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "6.5.6",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "9.2.20",
"versionStartIncluding": "9.2.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "9.3.14",
"versionStartIncluding": "9.3.0",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-29248"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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 [\u0027cookies\u0027 =\u003e 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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-565"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab"
},
{
"name": "https://github.com/guzzle/guzzle/pull/3018",
"refsource": "MISC",
"tags": [
"Issue Tracking",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/guzzle/guzzle/pull/3018"
},
{
"name": "https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
"refsource": "CONFIRM",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3"
},
{
"name": "https://www.drupal.org/sa-core-2022-010",
"refsource": "CONFIRM",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://www.drupal.org/sa-core-2022-010"
},
{
"name": "DSA-5246",
"refsource": "DEBIAN",
"tags": [
"Third Party Advisory"
],
"url": "https://www.debian.org/security/2022/dsa-5246"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 5.8,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 4.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": true
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 5.2
}
},
"lastModifiedDate": "2023-07-21T16:54Z",
"publishedDate": "2022-05-25T18:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…