# CVE-2023-45286: golang-github-go-resty-resty: A race condition in go-resty can result in HTTP request body disclosure across requests

CVE-2023-45286 is fixed in golang-github-go-resty-resty on 1 platform, first by DEBIAN-CVE-2023-45286, released November 28, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-45286
- Priority: Routine
- CVSS: 5.9 (medium)
- EPSS: 0.0072
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 28, 2023

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | golang-github-go-resty-resty Debian 13.5 (trixie) | 2.10.0-2 | [DEBIAN-CVE-2023-45286](https://patchblox.com/security/data/fix/linux/debian-cve-2023-45286.md) | Nov 28, 2023 |
| Linux | golang-github-go-resty-resty Debian 14 | 2.10.0-2 | [DEBIAN-CVE-2023-45286](https://patchblox.com/security/data/fix/linux/debian-cve-2023-45286.md) | Nov 28, 2023 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
