CVE-2023-45286 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 28, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e | CVE | |
| https://github.com/go-resty/resty/issues/739 | CVE | ExploitIssue Tracking |
| https://github.com/go-resty/resty/issues/743 | CVE | Issue Tracking |
| https://github.com/go-resty/resty/pull/745 | CVE | Issue TrackingPatch |
| https://pkg.go.dev/vuln/GO-2023-2328 | CVE | Vendor Advisory |
| https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e | [email protected] | |
| https://github.com/go-resty/resty/issues/739 | [email protected] | ExploitIssue Tracking |
| https://github.com/go-resty/resty/issues/743 | [email protected] | Issue Tracking |
| https://github.com/go-resty/resty/pull/745 | [email protected] | Issue TrackingPatch |
| https://pkg.go.dev/vuln/GO-2023-2328 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| resty project resty | <= 2.10.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jan 4, 2024 | CVE Modified | [email protected] |
| Dec 5, 2023 | Reanalysis | [email protected] |
| Dec 4, 2023 | Initial Analysis | [email protected] |
| Nov 28, 2023 | New CVE Received | [email protected] |