{"id":"CVE-2023-45286","published":"2023-11-28T16:31:21Z","modified":"2024-08-28T20:01:23Z","title":"HTTP request body disclosure in github.com/go-resty/resty/v2","vendor":"github.com/go-resty/resty/v2","product":"github.com/go-resty/resty/v2","tier":"tail","description":{"text":"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't 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00722,"percentile":0.5489,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/go-resty/resty/issues/743","tags":[]},{"url":"https://github.com/go-resty/resty/issues/739","tags":[]},{"url":"https://github.com/go-resty/resty/pull/745","tags":[]},{"url":"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-2328","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":10.98}]},"vendorSlug":"github-com-go-resty-resty-v2","affectedVersions":[{"vendor":"github.com/go-resty/resty/v2","product":"github.com/go-resty/resty/v2","versions":[">= 2.10.0, < 2.11.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-28T20:00:00.708483Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-resty/resty/v2","vulnerableRanges":[">=2.10.0, <2.11.0"],"patched":["2.11.0"],"from":["GHSA-xwh9-gc39-5298","GO-2023-2328"],"provenance":"source"}],"summary":{"text":"A race condition in the go-resty HTTP client library (github.com/go-resty/resty/v2) causes a shared sync.Pool to hand out a bytes.Buffer that was never reset, so it still holds request body data from another request whenever request retries are enabled and a retry occurs. An attacker who can induce such a retry, with the condition manifesting across requests handled through the package-level pool, can cause HTTP request bodies from unrelated requests to be disclosed, including to an unrelated server that receives the combined request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:43Z"},"euvd":{"id":"EUVD-2023-3068","exploited":false,"provenance":"source"}}