CVE-2023-45286
CVE-2023-45286 · HTTP request body disclosure in github.com/go-resty/resty/v2
CVSS 5.9 · Medium · EPSS 0.8% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- github.com/go-resty/resty/v2Update to 2.11.0
- golang-github-go-resty-resty Debian 12No fix published
- golang-github-go-resty-resty Debian 13Update to 2.10.0-2
- golang-github-go-resty-resty Debian 14Update to 2.10.0-2
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-go-resty-resty"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2024:13569-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
github.com/go-resty/resty/v2
- Versions
- ≥ 2.10.0, < 2.11.0: Affected (semver)
Update to 2.11.0
golang-github-go-resty-resty Debian 12
- Versions
- 2.10.0-1
- 2.10.0-2
- 2.6.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-resty-resty Debian 13
- Affected ranges
- ECOSYSTEM: < 2.10.0-2
Update to 2.10.0-2
golang-github-go-resty-resty Debian 14
- Affected ranges
- ECOSYSTEM: < 2.10.0-2
Update to 2.10.0-2
golang-github-go-resty-resty Ubuntu 22.04 LTS
- Versions
- 2.4.0-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-resty-resty Ubuntu 24.04 LTS
- Versions
- 2.4.0-1ubuntu1
- 2.10.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-resty-resty Ubuntu 25.10
- Versions
- 2.10.0-1
- 2.10.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-resty-resty Ubuntu 26.10
- Versions
- 2.10.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-resty-resty Ubuntu 26.04 LTS
- Versions
- 2.10.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published