---
title: "CVE-2023-45286\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2023-45286?format=md
keywords: index, follow
---

# CVE-2023-45286

Publication date 28 November 2023

Last updated 11 July 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.9 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2023-45286?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| golang-github-go-resty-resty | 26.04 LTS resolute | Needs evaluation |
| 25.10 questing | Ignored end of life, was needs-triage |
| 25.04 plucky | Ignored end of life, was needs-triage |
| 24.10 oracular | Ignored end of life, was needs-triage |
| 24.04 LTS noble | Needs evaluation |
| 23.10 mantic | Ignored end of life, was needs-triage |
| 23.04 lunar | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Ignored end of standard support |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.9 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.9 · Medium |
  | Exploitability score | - |
  | Impact score | - |

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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45286)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-45286)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2023-45286)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2023-45286)

### Other references

* <https://github.com/go-resty/resty/issues/743>
* <https://github.com/go-resty/resty/issues/739>
* <https://github.com/go-resty/resty/pull/745>
* <https://pkg.go.dev/vuln/GO-2023-2328>
* <https://www.cve.org/CVERecord?id=CVE-2023-45286>
