All the vulnerabilites related to github.com/go-resty/resty/v2 - github.com/go-resty/resty/v2
cve-2023-45286
Vulnerability from cvelistv5
Published
2023-11-28 16:31
Modified
2024-08-28 20:01
Severity ?
Summary
HTTP request body disclosure in github.com/go-resty/resty/v2
Impacted products
Vendor Product Version
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T20:21:15.309Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://github.com/go-resty/resty/issues/743"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://github.com/go-resty/resty/issues/739"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://github.com/go-resty/resty/pull/745"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://pkg.go.dev/vuln/GO-2023-2328"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2023-45286",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-08-28T20:00:00.708483Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-08-28T20:01:23.626Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://pkg.go.dev",
          "defaultStatus": "unaffected",
          "packageName": "github.com/go-resty/resty/v2",
          "product": "github.com/go-resty/resty/v2",
          "programRoutines": [
            {
              "name": "handleRequestBody"
            },
            {
              "name": "Backoff"
            },
            {
              "name": "Request.Delete"
            },
            {
              "name": "Request.Execute"
            },
            {
              "name": "Request.Get"
            },
            {
              "name": "Request.Head"
            },
            {
              "name": "Request.Options"
            },
            {
              "name": "Request.Patch"
            },
            {
              "name": "Request.Post"
            },
            {
              "name": "Request.Put"
            },
            {
              "name": "Request.Send"
            }
          ],
          "vendor": "github.com/go-resty/resty/v2",
          "versions": [
            {
              "lessThan": "2.11.0",
              "status": "affected",
              "version": "2.10.0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Logan Attwood (@lattwood)"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "A race condition in go-resty can result in HTTP request body disclosure across requests. This condition can be triggered by calling sync.Pool.Put with the same *bytes.Buffer more than once, when request retries are enabled and a retry occurs. The call to sync.Pool.Get will then return a bytes.Buffer that hasn\u0027t had bytes.Buffer.Reset called on it. This dirty buffer will contain the HTTP request body from an unrelated request, and go-resty will append the current HTTP request body to it, sending two bodies in one request. The sync.Pool in question is defined at package level scope, so a completely unrelated server could receive the request body."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
              "lang": "en"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-01-04T18:41:48.460Z",
        "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "shortName": "Go"
      },
      "references": [
        {
          "url": "https://github.com/go-resty/resty/issues/743"
        },
        {
          "url": "https://github.com/go-resty/resty/issues/739"
        },
        {
          "url": "https://github.com/go-resty/resty/pull/745"
        },
        {
          "url": "https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e"
        },
        {
          "url": "https://pkg.go.dev/vuln/GO-2023-2328"
        }
      ],
      "title": "HTTP request body disclosure in github.com/go-resty/resty/v2"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
    "assignerShortName": "Go",
    "cveId": "CVE-2023-45286",
    "datePublished": "2023-11-28T16:31:21.078Z",
    "dateReserved": "2023-10-06T17:06:26.221Z",
    "dateUpdated": "2024-08-28T20:01:23.626Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}