CVE-2023-45286 (GCVE-0-2023-45286)
Vulnerability from cvelistv5 – Published: 2023-11-28 16:31 – Updated: 2024-08-28 20:01
VLAI
EPSS
VEX
Title
HTTP request body disclosure in github.com/go-resty/resty/v2
Summary
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
No CVSS data available.
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-08-28 20:00 UTC
CWE
- CWE-200 - Exposure of Sensitive Information to an Unauthorized Actor
Assigner
References
Impacted products
1 product
| Vendor | Product | Version | CPE status | |
|---|---|---|---|---|
| github.com/go-resty/resty/v2 | github.com/go-resty/resty/v2 |
Affected:
2.10.0 , < 2.11.0
(semver)
|
guessed |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-02T20:21:15.309Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/go-resty/resty/issues/743"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/go-resty/resty/issues/739"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/go-resty/resty/pull/745"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e"
},
{
"tags": [
"x_transferred"
],
"url": "https://pkg.go.dev/vuln/GO-2023-2328"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2023-45286",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-08-28T20:00:00.708483Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-08-28T20:01:23.626Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"packageName": "github.com/go-resty/resty/v2",
"product": "github.com/go-resty/resty/v2",
"programRoutines": [
{
"name": "handleRequestBody"
},
{
"name": "Backoff"
},
{
"name": "Request.Delete"
},
{
"name": "Request.Execute"
},
{
"name": "Request.Get"
},
{
"name": "Request.Head"
},
{
"name": "Request.Options"
},
{
"name": "Request.Patch"
},
{
"name": "Request.Post"
},
{
"name": "Request.Put"
},
{
"name": "Request.Send"
}
],
"vendor": "github.com/go-resty/resty/v2",
"versions": [
{
"lessThan": "2.11.0",
"status": "affected",
"version": "2.10.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Logan Attwood (@lattwood)"
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027t 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."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
"lang": "en"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-01-04T18:41:48.460Z",
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"shortName": "Go"
},
"references": [
{
"url": "https://github.com/go-resty/resty/issues/743"
},
{
"url": "https://github.com/go-resty/resty/issues/739"
},
{
"url": "https://github.com/go-resty/resty/pull/745"
},
{
"url": "https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e"
},
{
"url": "https://pkg.go.dev/vuln/GO-2023-2328"
}
],
"title": "HTTP request body disclosure in github.com/go-resty/resty/v2"
}
},
"cveMetadata": {
"assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"assignerShortName": "Go",
"cveId": "CVE-2023-45286",
"datePublished": "2023-11-28T16:31:21.078Z",
"dateReserved": "2023-10-06T17:06:26.221Z",
"dateUpdated": "2024-08-28T20:01:23.626Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2023-45286",
"date": "2026-09-14",
"epss": "0.00728",
"percentile": "0.52195"
},
"microsoft_vex": {
"current_release_date": "2023-12-04T00:00:00.000Z",
"cve": "CVE-2023-45286",
"id": "msrc_CVE-2023-45286",
"initial_release_date": "2023-11-01T07:00:00.000Z",
"product_status:fixed": "1",
"product_status:known_affected": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "HTTP request body disclosure in github.com/go-resty/resty/v2",
"url": "https://msrc.microsoft.com/csaf/vex/2023/msrc_cve-2023-45286.json",
"version": "1"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2023-45286\",\"sourceIdentifier\":\"security@golang.org\",\"published\":\"2023-11-28T17:15:08.280\",\"lastModified\":\"2026-06-17T06:28:35.330\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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\u0027t 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.\"},{\"lang\":\"es\",\"value\":\"Una condici\u00f3n de ejecuci\u00f3n en go-resty puede dar como resultado la divulgaci\u00f3n del cuerpo de la solicitud HTTP entre solicitudes. Esta condici\u00f3n se puede desencadenar llamando a sync.Pool.Put con el mismo *bytes.Buffer m\u00e1s de una vez, cuando los reintentos de solicitud est\u00e1n habilitados y se produce un reintento. La llamada a sync.Pool.Get devolver\u00e1 un bytes.Buffer al que no se le ha llamado bytes.Buffer.Reset. Este b\u00fafer sucio contendr\u00e1 el cuerpo de la solicitud HTTP de una solicitud no relacionada, y go-resty le agregar\u00e1 el cuerpo de la solicitud HTTP actual, enviando dos cuerpos en una solicitud. El sync.Pool en cuesti\u00f3n se define a nivel de paquete, por lo que un servidor completamente ajeno podr\u00eda recibir el cuerpo de la solicitud.\"}],\"affected\":[{\"source\":\"security@golang.org\",\"affectedData\":[{\"vendor\":\"github.com/go-resty/resty/v2\",\"product\":\"github.com/go-resty/resty/v2\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://pkg.go.dev\",\"packageName\":\"github.com/go-resty/resty/v2\",\"programRoutines\":[{\"name\":\"handleRequestBody\"},{\"name\":\"Backoff\"},{\"name\":\"Request.Delete\"},{\"name\":\"Request.Execute\"},{\"name\":\"Request.Get\"},{\"name\":\"Request.Head\"},{\"name\":\"Request.Options\"},{\"name\":\"Request.Patch\"},{\"name\":\"Request.Post\"},{\"name\":\"Request.Put\"},{\"name\":\"Request.Send\"}],\"versions\":[{\"version\":\"2.10.0\",\"lessThan\":\"2.11.0\",\"versionType\":\"semver\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":5.9,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.2,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-08-28T20:00:00.708483Z\",\"id\":\"CVE-2023-45286\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-362\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:resty_project:resty:*:*:*:*:*:go:*:*\",\"versionEndIncluding\":\"2.10.0\",\"matchCriteriaId\":\"433974E8-CB64-4BBB-BB5A-9F072275B86F\"}]}]}],\"references\":[{\"url\":\"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e\",\"source\":\"security@golang.org\"},{\"url\":\"https://github.com/go-resty/resty/issues/739\",\"source\":\"security@golang.org\",\"tags\":[\"Exploit\",\"Issue Tracking\"]},{\"url\":\"https://github.com/go-resty/resty/issues/743\",\"source\":\"security@golang.org\",\"tags\":[\"Issue Tracking\"]},{\"url\":\"https://github.com/go-resty/resty/pull/745\",\"source\":\"security@golang.org\",\"tags\":[\"Issue Tracking\",\"Patch\"]},{\"url\":\"https://pkg.go.dev/vuln/GO-2023-2328\",\"source\":\"security@golang.org\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/go-resty/resty/issues/739\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Exploit\",\"Issue Tracking\"]},{\"url\":\"https://github.com/go-resty/resty/issues/743\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\"]},{\"url\":\"https://github.com/go-resty/resty/pull/745\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\"]},{\"url\":\"https://pkg.go.dev/vuln/GO-2023-2328\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]}]}}",
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-08-12T15:31:01+00:00",
"cve": "CVE-2023-45286",
"id": "CVE-2023-45286",
"initial_release_date": "2023-11-28T00:00:00+00:00",
"product_status:fixed": "78",
"product_status:known_affected": "4",
"product_status:known_not_affected": "13",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "go-resty: HTTP request body disclosure in github.com/go-resty/resty/v2",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-45286.json",
"version": "3"
},
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/go-resty/resty/issues/743\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/go-resty/resty/issues/739\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/go-resty/resty/pull/745\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://pkg.go.dev/vuln/GO-2023-2328\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T20:21:15.309Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-45286\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-08-28T20:00:00.708483Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-08-28T20:01:18.144Z\"}}], \"cna\": {\"title\": \"HTTP request body disclosure in github.com/go-resty/resty/v2\", \"credits\": [{\"lang\": \"en\", \"value\": \"Logan Attwood (@lattwood)\"}], \"affected\": [{\"vendor\": \"github.com/go-resty/resty/v2\", \"product\": \"github.com/go-resty/resty/v2\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.10.0\", \"lessThan\": \"2.11.0\", \"versionType\": \"semver\"}], \"packageName\": \"github.com/go-resty/resty/v2\", \"collectionURL\": \"https://pkg.go.dev\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"handleRequestBody\"}, {\"name\": \"Backoff\"}, {\"name\": \"Request.Delete\"}, {\"name\": \"Request.Execute\"}, {\"name\": \"Request.Get\"}, {\"name\": \"Request.Head\"}, {\"name\": \"Request.Options\"}, {\"name\": \"Request.Patch\"}, {\"name\": \"Request.Post\"}, {\"name\": \"Request.Put\"}, {\"name\": \"Request.Send\"}]}], \"references\": [{\"url\": \"https://github.com/go-resty/resty/issues/743\"}, {\"url\": \"https://github.com/go-resty/resty/issues/739\"}, {\"url\": \"https://github.com/go-resty/resty/pull/745\"}, {\"url\": \"https://github.com/go-resty/resty/commit/577fed8730d79f583eb48dfc81674164e1fc471e\"}, {\"url\": \"https://pkg.go.dev/vuln/GO-2023-2328\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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\u0027t 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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"description\": \"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor\"}]}], \"providerMetadata\": {\"orgId\": \"1bb62c36-49e3-4200-9d77-64a1400537cc\", \"shortName\": \"Go\", \"dateUpdated\": \"2024-01-04T18:41:48.460Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2023-45286\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-08-28T20:01:23.626Z\", \"dateReserved\": \"2023-10-06T17:06:26.221Z\", \"assignerOrgId\": \"1bb62c36-49e3-4200-9d77-64a1400537cc\", \"datePublished\": \"2023-11-28T16:31:21.078Z\", \"assignerShortName\": \"Go\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Loading…
Loading…