SCA: security update for github.com/go-resty/resty/v2 (GHSA-xwh9-gc39-5298)

medium Tenable Self-Hosted Container Security Plugin ID 421532

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2023-45286)

See Also

https://github.com/advisories/GHSA-xwh9-gc39-5298

Plugin Details

Severity: Medium

ID: 421532

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 3/28/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.2

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2023-45286

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/28/2023

Vulnerability Publication Date: 11/28/2023

Reference Information

CVE: CVE-2023-45286