# CVE-2023-45286: HTTP request body disclosure in github.com/go-resty/resty/v2

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-11-27T18:53:31.000Z
- Modified: 2026-09-10T03:49:59.271Z
- Also known as: GHSA-xwh9-gc39-5298, GO-2023-2328
- Related: CGA-4p7f-89c2-rh44
- Weaknesses: CWE-200, CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

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

(As written by CVE List.)

## Affected

- github.com/go-resty/resty/v2: from 2.10.0 before 2.11.0
- github.com/go-resty/resty/v2 (Go): from 2.10.0 before 2.11.0
- resty_project resty: up to 2.10.0

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/go-resty/resty/issues/739> (exploit, issue-tracking, report, web)
- <https://github.com/go-resty/resty/issues/743> (issue-tracking, report, web)
- <https://github.com/go-resty/resty/pull/745> (fix, issue-tracking, patch, web)
- <https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e> (fix, web)
- <https://pkg.go.dev/vuln/GO-2023-2328> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45286> (advisory)
- <https://github.com/go-resty/resty> (package)
- <https://github.com/go-resty/resty/releases/tag/v2.11.0> (web)

## Sources

- CVE List: [CVE-2023-45286](https://www.cve.org/CVERecord?id=CVE-2023-45286), CVE Terms of Use, modified 2024-08-28
- GitHub Advisory Database: [GHSA-xwh9-gc39-5298](https://github.com/advisories/GHSA-xwh9-gc39-5298), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2328](https://pkg.go.dev/vuln/GO-2023-2328), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-45286](https://nvd.nist.gov/vuln/detail/CVE-2023-45286), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45286 · Whole record: https://cve.day/CVE-2023-45286.json · Rebuilt by cve.day 2026-11-25T22:58:30.769Z
