{"cve":"CVE-2023-45286","nvd":{"published":"2023-11-28T17:15:08.280","modified":"2026-06-17T06:28:35.330","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9},"cwes":["CWE-362"],"references":["https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e","https://github.com/go-resty/resty/issues/739","https://github.com/go-resty/resty/issues/743","https://github.com/go-resty/resty/pull/745","https://pkg.go.dev/vuln/GO-2023-2328"],"products":["resty_project:resty"],"source":"nvd","synced_at":"2026-10-19T21:42:07.670898610+00:00"},"epss":{"cve":"CVE-2023-45286","score":0.00722,"percentile":0.53991,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xwh9-gc39-5298","url":"https://osv.dev/vulnerability/GHSA-xwh9-gc39-5298","summary":"github.com/go-resty/resty/v2 HTTP request body disclosure","modified":"2026-09-10T03:49:59.271586668Z","packages":[{"ecosystem":"Go","name":"github.com/go-resty/resty/v2","purl":"pkg:golang/github.com/go-resty/resty/v2","ranges":[">=2.10.0 <2.11.0"],"fixed":["2.11.0"]}]},{"id":"GO-2023-2328","url":"https://osv.dev/vulnerability/GO-2023-2328","summary":"HTTP request body disclosure in github.com/go-resty/resty/v2","modified":"2026-02-04T04:31:53.755411Z","packages":[{"ecosystem":"Go","name":"github.com/go-resty/resty/v2","purl":"pkg:golang/github.com/go-resty/resty/v2","ranges":[">=2.10.0 <2.11.0"],"fixed":["2.11.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}