CVE-2021-22133: Information Disclosure in go.elastic.co/apm
2.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2296%
CWE
Published
5/18/2021
Updated
8/30/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
go.elastic.co/apm | go | < 1.11.0 | 1.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing header sanitization during application panics. Analysis of commit dd3e8c5 shows:
- Error context initialization in error.go lacked sanitizedFieldNames assignment pre-fix
- Context.build() in context.go contained the sanitization logic but wasn't properly triggered for error contexts
- The fix added sanitizedFieldNames to error contexts and moved sanitization into Context.build() This indicates the error creation path (Tracer.newError) and context building (Context.build) were vulnerable when handling panic-induced errors due to missing sanitization field configuration.