
CVE catalog
CVE-2023-45286
golang-github-go-resty-resty: CVE-2023-45286
- Severity
- Medium · CVSS 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.72% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-go-resty-resty | sid | 2.10.0-2 | fixed |
| Debian | golang-github-go-resty-resty | forky | 2.10.0-2 | fixed |
| Debian | golang-github-go-resty-resty | trixie | 2.10.0-2 | fixed |
| Debian | golang-github-go-resty-resty | bookworm | 2.6.0-1 | vulnerable |
| Opensuse | rclone | tumbleweed | 1.65.1-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-go-resty-resty | source | sid | 2.10.0-2 | not yet assigned | Not reported | [1057226] |
| Debian | golang-github-go-resty-resty | source | forky | 2.10.0-2 | not yet assigned | Not reported | [1057226] |
| Debian | golang-github-go-resty-resty | source | trixie | 2.10.0-2 | not yet assigned | Not reported | [1057226] |
| Debian | golang-github-go-resty-resty | source | bookworm | (unfixed) | not yet assigned | Not reported | [1057226] |
| Opensuse | rclone | rpm | tumbleweed | 1.65.1-1.1 | Not reported | OPENSUSE-SU-2024:13569-1 | Not reported |
Notes
[bookworm] golang-github-go-resty-resty: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_13569-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-45286]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13569-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-45286]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-45286.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1226.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]