Attacker-controlled parameter can cause denial of service in hamba avro
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Hamba avro is a go lang encoder/decoder implementation of the avro codec specification. In affected versions a well-crafted string passed to avro's `github.com/hamba/avro/v2.Unmarshal()` can throw a `fatal error: runtime: out of memory` which is unrecoverable and can cause denial of service of the consumer of avro. The root cause of the issue is that avro uses part of the input to `Unmarshal()` to determine the size when creating a new slice and hence an attacker may consume arbitrary amounts of memory which in turn may cause the application to crash. This issue has been addressed in commit `b4a402f4` which has been included in release version `2.13.0`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hamba | avro | before 2.13.0 | 2.13.0 | Patch available | CNA |
| — | github.com/hamba/avro (Go) | before 2.13.0 | 2.13.0 | Patch available | GHSA-9x44-9pgq-cf45 |
| — | github.com/hamba/avro/v2 (Go) | before 2.13.0 | 2.13.0 | Patch available | GHSA-9x44-9pgq-cf45 |
- avro Vendorhamba Affected before 2.13.0 Fixed in 2.13.0 Patch available CNA
- github.com/hamba/avro (Go) Vendor— Affected before 2.13.0 Fixed in 2.13.0 Patch available GHSA-9x44-9pgq-cf45
- github.com/hamba/avro/v2 (Go) Vendor— Affected before 2.13.0 Fixed in 2.13.0 Patch available GHSA-9x44-9pgq-cf45
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:avro_project:avro:*:*:*:*:*:go:*:* | before 2.13.0 | Vulnerable | Avro Project |
- cpe:2.3:a:avro_project:avro:*:*:*:*:*:go:*:* Versions before 2.13.0 Vulnerable ·Avro Project
Remediation
- Fix · CNA avro (hamba) Fixed in 2.13.0
- Fix · GHSA-9x44-9pgq-cf45 github.com/hamba/avro (Go) Fixed in 2.13.0 Advisory →
- Fix · GHSA-9x44-9pgq-cf45 github.com/hamba/avro/v2 (Go) Fixed in 2.13.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-37475
- 2026-10-03 Alias added: GHSA-9x44-9pgq-cf45
References
Sources
- CVE-2023-37475 · CVE Program
- CVE-2023-37475 · NVD
- FIRST EPSS
- GHSA-9x44-9pgq-cf45 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences