CVE-2023-45286: HTTP request body disclosure in github.com/go-resty/resty/v2
Vulnerability summary
CVE-2023-45286 is a medium (CVSS 5.9) vulnerability in github.com/go-resty/resty/v2. EPSS estimates a 0.72% chance of exploitation in the next 30 days, higher than 54% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 4Timeline
- 28-11-2023PublishedVulnerability first disclosed.
- 28-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.72%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.72% on 05-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundResty
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- rclone< 1.69.1-r3
- rclone-compat< 1.69.1-r3
Wolfi2 products
- rclone< 1.69.1-r3
- rclone-compat< 1.69.1-r3
Debian1 product
- golang-github-go-resty-restyAll versions (No fix recorded) | < 2.10.0-2
Github.com/go-resty/resty1 product
- v2≥ 2.10.0, < 2.11.0
Github.com/go-resty/resty/v21 product
- github.com/go-resty/resty/v2≥ 2.10.0, < 2.11.0
Resty_project1 product
- resty≤ 2.10.0
Ubuntu1 product
- golang-github-go-resty-restyAll versions (No fix recorded)
7 vendors · 9 products
References
11 links- github.com/go-resty/restyPACKAGE