A race condition in go-resty can result in HTTP request body disclosure across requests. This condition can…
Historical advisory recorded 24 Oct 2026 22:17:27 UTC. Read the latest advisory.
nvd · CVE-2023-45286
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2023-45286
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-362
Original publisher date fields
published: 2023-11-28T17:15:08.280
lastModified: 2026-06-17T06:28:35.330
1 source CPE criteria · context only
- cpe:2.3:a:resty_project:resty:*:*:*:*:*:go:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON