cve.bz

CVE-2023-45286 resty project resty: Race Condition

5.9 mediumExploit referenceEPSS 0.7%Fix available

Medium (5.9) in resty project resty. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-resty/resty/v2 2.11.0.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-08-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-45286 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-45286?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-45286?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-45286 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
github.com/go-resty/resty/v2from 2.10.0 before 2.11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xwh9-gc39-5298Gogithub.com/go-resty/resty/v2>=2.10.0 <2.11.02.11.0
GO-2023-2328Gogithub.com/go-resty/resty/v2>=2.10.0 <2.11.02.11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-go-resty-restyno fix listedDEBIAN-CVE-2023-45286
Debian13, 14golang-github-go-resty-resty2.10.0-2DEBIAN-CVE-2023-45286
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregolang-github-go-resty-restyno fix listedUBUNTU-CVE-2023-45286
openSUSETumbleweedrclone1.65.1-1.1openSUSE-SU-2024:13569-1
Azure Linux2packer1.8.7-1AZL-32050

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
MTA-7.0-RHEL-9mta/mta-analyzer-addon-rhel9:7.0.3-13Fixed 2024-05-23RHSA-2024:3316
MTA-7.0-RHEL-9mta/mta-hub-rhel9:7.0.3-10Fixed 2024-05-23RHSA-2024:3316
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-agent-rhel8:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-all-in-one-rhel8:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-collector-rhel8:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-es-index-cleaner-rhel8:1.57.0-6Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-es-rollover-rhel8:1.57.0-6Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-ingester-rhel8:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-operator-bundle:1.57.0-20Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-query-rhel8:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/jaeger-rhel8-operator:1.57.0-5Fixed 2024-06-05RHSA-2024:3621
Red Hat Openshift distributed tracing 3.2rhosdt/opentelemetry-collector-rhel8:0.100.1-4Fixed 2024-06-05RHSA-2024:3621
Migration Toolkit for Applications 6mta/mta-hub-rhel8Will not fix
Migration Toolkit for Applications 6mta/mta-windup-addon-rhel9Will not fix
Red Hat Ceph Storage 5rhceph/rhceph-5-dashboard-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-prometheusNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-prom-label-proxyNot affected
Red Hat OpenShift Dev Spacesdevspaces/traefik-rhel8Not affected
Red Hat OpenShift distributed tracing 2rhosdt/opentelemetry-rhel8-operatorAffected
Red Hat OpenShift distributed tracing 2rhosdt/tempo-gateway-rhel8Affected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-45286.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON