{"id":"CVE-2023-45286","aliases":["CVE-2023-45286","GHSA-xwh9-gc39-5298","GO-2023-2328"],"related":["CGA-4p7f-89c2-rh44"],"kind":"vulnerability","state":"published","title":"HTTP request body disclosure in github.com/go-resty/resty/v2","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una condición de ejecución en go-resty puede dar como resultado la divulgación del cuerpo de la solicitud HTTP entre solicitudes. Esta condición se puede desencadenar llamando a sync.Pool.Put con el mismo *bytes.Buffer más de una vez, cuando los reintentos de solicitud están habilitados y se produce un reintento. La llamada a sync.Pool.Get devolverá un bytes.Buffer al que no se le ha llamado bytes.Buffer.Reset. Este búfer sucio contendrá el cuerpo de la solicitud HTTP de una solicitud no relacionada, y go-resty le agregará el cuerpo de la solicitud HTTP actual, enviando dos cuerpos en una solicitud. El sync.Pool en cuestión se define a nivel de paquete, por lo que un servidor completamente ajeno podría recibir el cuerpo de la solicitud.","source":"nvd"}],"published":"2023-11-27T18:53:31.000Z","modified":"2026-09-10T03:49:59.271Z","severity":{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-362"],"affected":[{"ranges":[{"type":"semver","introduced":"2.10.0","fixed":"2.11.0","status":"affected"}],"vendor":"github.com/go-resty/resty/v2","product":"github.com/go-resty/resty/v2","package":"github.com/go-resty/resty/v2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.10.0","status":"affected","fixed":"2.11.0"}],"ecosystem":"Go","package":"github.com/go-resty/resty/v2","purl":"pkg:golang/github.com/go-resty/resty/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.10.0","status":"affected","fixed":"2.11.0"}],"ecosystem":"Go","package":"github.com/go-resty/resty/v2","purl":"pkg:golang/github.com/go-resty/resty/v2","source":"go"},{"ranges":[{"status":"affected","lastAffected":"2.10.0"}],"vendor":"resty_project","product":"resty","cpe":"cpe:2.3:a:resty_project:resty:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-resty/resty/issues/743","tags":["issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-resty/resty/issues/739","tags":["exploit","issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-resty/resty/pull/745","tags":["fix","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e","tags":["fix","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2023-2328","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45286","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-resty/resty","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/go-resty/resty/releases/tag/v2.11.0","tags":["web"],"sources":["ghsa"]}],"credits":["Logan Attwood (@lattwood)"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-28T20:00:00.708Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-45286","url":"https://www.cve.org/CVERecord?id=CVE-2023-45286","licence":"CVE Terms of Use","modified":"2024-08-28T20:01:23.626Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xwh9-gc39-5298","url":"https://github.com/advisories/GHSA-xwh9-gc39-5298","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:59.271Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2328","url":"https://pkg.go.dev/vuln/GO-2023-2328","licence":"CC-BY-4.0","modified":"2026-02-04T04:31:53.755Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-45286","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45286","licence":"Public domain","modified":"2026-06-17T06:28:35.330Z"}],"updatedAt":"2026-11-25T22:58:30.769Z","epss":{"score":0.0078,"percentile":0.57149,"date":"2026-12-02T12:00:21.000Z"}}