From 2a89754d0ac2c511cee4429c95cad4e95697032c Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:56:32 +0000 Subject: [PATCH] Publish Advisories GHSA-cj55-gc7m-wvcq GHSA-cj55-gc7m-wvcq --- .../GHSA-cj55-gc7m-wvcq.json | 71 +++++++++++++++++++ .../GHSA-cj55-gc7m-wvcq.json | 39 ---------- 2 files changed, 71 insertions(+), 39 deletions(-) create mode 100644 advisories/github-reviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json delete mode 100644 advisories/unreviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json diff --git a/advisories/github-reviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json b/advisories/github-reviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json new file mode 100644 index 00000000000..f3f73e933a0 --- /dev/null +++ b/advisories/github-reviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json @@ -0,0 +1,71 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-cj55-gc7m-wvcq", + "modified": "2024-08-26T15:54:18Z", + "published": "2024-08-26T00:30:54Z", + "aliases": [ + "CVE-2024-45258" + ], + "summary": "req may send an unintended request when a malformed URL is provided", + "details": "The `req` library is a widely used HTTP library in Go. However, it does not handle malformed URLs effectively. As a result, after parsing a malformed URL, the library may send HTTP requests to unexpected destinations, potentially leading to security vulnerabilities or unintended behavior in applications relying on this library for handling HTTP requests.\n\nDespite developers potentially utilizing the `net/url` library to parse malformed URLs and implement blocklists to prevent HTTP requests to listed URLs, inconsistencies exist between how the `net/url` and `req` libraries parse URLs. These discrepancies can lead to the failure of defensive strategies, resulting in potential security threats such as Server-Side Request Forgery (SSRF) and Remote Code Execution (RCE).", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/imroc/req/v3" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "3.43.4" + } + ] + } + ] + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45258" + }, + { + "type": "WEB", + "url": "https://github.com/imroc/req/commit/04e3ece5b380ecad9da3551c449f1b8a9aa76d3d" + }, + { + "type": "PACKAGE", + "url": "https://github.com/imroc/req" + }, + { + "type": "WEB", + "url": "https://github.com/imroc/req/compare/v3.43.3...v3.43.4" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-20", + "CWE-918", + "CWE-94" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-08-26T15:54:18Z", + "nvd_published_at": "2024-08-25T22:15:05Z" + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json b/advisories/unreviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json deleted file mode 100644 index ffd235f443a..00000000000 --- a/advisories/unreviewed/2024/08/GHSA-cj55-gc7m-wvcq/GHSA-cj55-gc7m-wvcq.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "schema_version": "1.4.0", - "id": "GHSA-cj55-gc7m-wvcq", - "modified": "2024-08-26T00:30:54Z", - "published": "2024-08-26T00:30:54Z", - "aliases": [ - "CVE-2024-45258" - ], - "details": "The req package before 3.43.4 for Go may send an unintended request when a malformed URL is provided, because cleanHost in http.go intentionally uses a \"garbage in, garbage out\" design.", - "severity": [ - - ], - "affected": [ - - ], - "references": [ - { - "type": "ADVISORY", - "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45258" - }, - { - "type": "WEB", - "url": "https://github.com/imroc/req/commit/04e3ece5b380ecad9da3551c449f1b8a9aa76d3d" - }, - { - "type": "WEB", - "url": "https://github.com/imroc/req/compare/v3.43.3...v3.43.4" - } - ], - "database_specific": { - "cwe_ids": [ - - ], - "severity": null, - "github_reviewed": false, - "github_reviewed_at": null, - "nvd_published_at": "2024-08-25T22:15:05Z" - } -} \ No newline at end of file