5.9

CVE-2023-45286: HTTP request body disclosure in github.com/go-resty/resty/v2

Modified
AliasesUBUNTU-CVE-2023-45286DEBIAN-CVE-2023-45286CGA-46jg-5f6m-86vv
Published 28-11-2023Last modified 28-08-2024

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.

Priority
Routine

Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.9/10
010
Medium · v3.1 (NVD)
EPSS score
0.72%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 4

Timeline

  1. 28-11-2023
    PublishedVulnerability first disclosed.
  2. 28-08-2024
    Last 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

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

05-10-202604-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Resty

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
Resty_project1 product
Ubuntu1 product
  • golang-github-go-resty-restyAll versions (No fix recorded)

7 vendors · 9 products

References

11 links
Show all 11 references