CVE-2023-45286
publishedHTTP request body disclosure in github.com/go-resty/resty/v2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| github.com/go-resty/resty/v2 | — | github.com/go-resty/resty/v22.10.0 to < 2.11.0 · Other versions: unaffected | Affected | Not stated | Go |
| SUSE / openSUSE | openSUSE-Tumbleweed | rcloneaarch64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rcloneppc64le | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclones390x | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclonex86_64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-bash-completionaarch64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-bash-completionppc64le | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-bash-completions390x | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-bash-completionx86_64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-zsh-completionaarch64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-zsh-completionppc64le | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-zsh-completions390x | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rclone-zsh-completionx86_64 | Advisory build | 1.65.1-1.1 | OPENSUSE-SU-2024:13569-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| github.com/go-resty/resty/v2 | github.com/go-resty/resty/v2 | 2.10.0 to < 2.11.0 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
References
5Provider assertions
3Go · cna
HTTP request body disclosure in github.com/go-resty/resty/v2
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2b7395ff0ee293ef09a8128082b27dfb67ee47c6fa0e28748752ca2bc1c30bea
- Ingested
- 23 Sep 2026, 08:12:20 UTC
- Source record
- Official CVE record