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.

Routine
CVSS
5.9
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0072
54th percentile

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

ProductFixed inFixReleased
Linux
golang-github-go-resty-resty · Debian 13.5 (trixie) 2.10.0-2 DEBIAN-CVE-2023-45286 Nov 28, 2023
golang-github-go-resty-resty · Debian 14 2.10.0-2 DEBIAN-CVE-2023-45286 Nov 28, 2023

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.