{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-45286","id":"CVE-2023-45286","title":"HTTP request body disclosure in github.com/go-resty/resty/v2","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 bo","descriptionLong":"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.","published":"2023-11-28T16:31:21.078Z","updated":"2026-10-28T02:31:10.982903138Z","reserved":"2023-10-06T17:06:26.221Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["github.com/go-resty/resty/v2"],"affectedProducts":[{"vendor":"github.com/go-resty/resty/v2","product":"github.com/go-resty/resty/v2","defaultStatus":"unaffected","versions":[{"version":"2.10.0","lessThan":"2.11.0","status":"affected","versionType":"semver"}],"platforms":[]}],"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"],"advisory":"GHSA-xwh9-gc39-5298"}],"cwes":["CWE-200","CWE-362"],"aliases":["GHSA-xwh9-gc39-5298","GO-2023-2328"],"references":[{"url":"https://github.com/go-resty/resty/issues/743","tags":["x_transferred","Issue Tracking","report","web"]},{"url":"https://github.com/go-resty/resty/issues/739","tags":["x_transferred","Exploit","Issue Tracking","report","web"]},{"url":"https://github.com/go-resty/resty/pull/745","tags":["x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e","tags":["x_transferred","fix","web"]},{"url":"https://pkg.go.dev/vuln/GO-2023-2328","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/45xxx/CVE-2023-45286.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45286","tags":["advisory"]},{"url":"https://github.com/go-resty/resty","tags":["package"]},{"url":"https://github.com/go-resty/resty/releases/tag/v2.11.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00722,"epssPercentile":0.5469,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-45286","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45286","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-45286","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xwh9-gc39-5298","ok":true,"note":"GHSA-xwh9-gc39-5298"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-45286","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}