{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-37475","id":"CVE-2023-37475","title":"Attacker-controlled parameter can cause denial of service in hamba avro","description":"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","descriptionLong":"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.","published":"2023-07-17T16:36:23.546Z","updated":"2026-10-28T02:30:59.328459575Z","reserved":"2023-07-06T13:01:36.999Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["hamba avro"],"affectedProducts":[{"vendor":"hamba","product":"avro","defaultStatus":null,"versions":[{"version":"< 2.13.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/hamba/avro","purl":"pkg:golang/github.com/hamba/avro","ranges":["<2.13.0","all versions"],"fixed":["2.13.0"],"advisory":"GHSA-9x44-9pgq-cf45"},{"ecosystem":"Go","name":"github.com/hamba/avro/v2","purl":"pkg:golang/github.com/hamba/avro/v2","ranges":["<2.13.0"],"fixed":["2.13.0"],"advisory":"GHSA-9x44-9pgq-cf45"}],"cwes":["CWE-400"],"aliases":["GHSA-9x44-9pgq-cf45","GO-2023-1930"],"references":[{"url":"https://github.com/hamba/avro/security/advisories/GHSA-9x44-9pgq-cf45","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/hamba/avro/commit/b4a402f41cf44b6094b5131286830ba9bb1eb290","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37475.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37475","tags":["advisory"]},{"url":"https://github.com/hamba/avro/pull/273","tags":["web","fix"]},{"url":"https://github.com/hamba/avro","tags":["package"]},{"url":"https://github.com/hamba/avro/blob/3abfe1e6382c5dccf2e1a00260c51a64bc1f1ca1/reader.go#L216-L242","tags":["web"]},{"url":"https://github.com/hamba/avro/releases/tag/v2.13.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00953,"epssPercentile":0.62074,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-37475","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37475","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-37475","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9x44-9pgq-cf45","ok":true,"note":"GHSA-9x44-9pgq-cf45"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-37475","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}