CVE-2023-45286
CVSS v3
5.9
MEDIUM
EPSS Score
0.7 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for go-resty/resty.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- github.com/go-resty/resty/v2Gofrom 2.10.0 · fixed in 2.11.0
Vendor advisories
go-resty: HTTP request body disclosure in github.com/go-resty/resty/v2
mta/mta-hub-rhel9 as a component of Migration Toolkit for Applications 6 · mta/mta-windup-addon-rhel8 as a component of Migration Toolkit for Applications 6 · rhosdt/opentelemetry-rhel8-operator as a component of Red Hat OpenShift distributed tracing 2
Red Hat Security Advisory: Red Hat OpenShift distributed tracing 3.2.0 operator/operand containers update
Red Hat Security Advisory: Migration Toolkit for Applications security and bug fix update
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.
Technical details
- Published
- 2023-11-28
Frequently asked questions
What is CVE-2023-45286?
Is CVE-2023-45286 actively exploited?
What is the CVSS score for CVE-2023-45286?
Running go-resty/resty? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.