Request body disclosure via double-pooled buffer
Published Nov 28, 2023 · Updated Aug 28, 2024
Race condition in go-resty Resty 2.10.0 allows remote attackers to disclose HTTP request bodies across unrelated requests. The package-level pool can receive the same bytes.Buffer twice, and handleRequestBody then reuses it without Reset before appending a new body. Exploitation requires request retries and a retry event, allowing an unrelated destination server to receive the retained body.
Summary
What happened
Race condition in go-resty Resty 2.10.0 allows remote attackers to disclose HTTP request bodies across unrelated requests. The package-level pool can receive the same bytes.Buffer twice, and handleRequestBody then reuses it without Reset before appending a new body. Exploitation requires request retries and a retry event, allowing an unrelated destination server to receive the retained body.
The record
- CVE
- CVE-2023-45286
- Published
- Nov 28, 2023
- Updated
- Aug 28, 2024
- Vendor
- go-resty
- Product
- Resty
- Classifications
- CWE-362
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 28, 2023CVE publishedPublication date reported by the CVE source.
- Aug 28, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.10.0 <2.11.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Resty request-body retry reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo