{"answers":{"affected":"6 open source packages ship an affected version, including github.com/hamba/avro and github.com/hamba/avro/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37475 exists.","fix":"Upgrade github.com/hamba/avro to 2.13.0 or later.","what":"CVE-2023-37475 is a high-severity denial of service vulnerability in hamba avro, published on 17 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-37475 and fix it if it is affected.\n\nWhat it is: CVE-2023-37475 is a high-severity denial of service vulnerability in hamba avro, published on 17 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37475 exists.\n\nAffected packages and fixed versions:\n- github.com/hamba/avro (Go): affected all versions; no fix listed\n- github.com/hamba/avro (Go): affected all versions; fixed in 2.13.0\n- github.com/hamba/avro (Go): affected all versions; fixed in 2.13.0\n- github.com/hamba/avro/v2 (Go): affected all versions; fixed in 2.13.0\n- github.com/hamba/avro/v2 (Go): affected all versions; fixed in 2.13.0\n- github.com/hamba/avro/v2 (Go): affected all versions; fixed in 2.13.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-37475/ (Markdown: https://insights.sbomify.com/CVE-2023-37475/index.md)","id":"CVE-2023-37475","markdown":"https://insights.sbomify.com/CVE-2023-37475/index.md","name":"CVE-2023-37475","record":{"aliases":["GHSA-9x44-9pgq-cf45","GO-2023-1930"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go Avro library","requires_auth":"none","summary":"A crafted string in the hamba/avro Go library can cause an unrecoverable out-of-memory error, leading to application denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"avro","vendor":"avro_project"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Attacker-controlled parameter can cause denial of service in hamba avro","id":"CVE-2023-37475","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":6,"n_references":2,"next":{"headline":"Zip slip in OpenRefine","id":"CVE-2023-37476"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro","purl":"pkg:golang/github.com/hamba/avro","source":"GO-2023-1930"},{"ecosystem":"Go","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro","purl":null,"source":"GHSA-9x44-9pgq-cf45"},{"ecosystem":"Go","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro","purl":"pkg:golang/github.com/hamba/avro","source":"GHSA-9x44-9pgq-cf45"},{"ecosystem":"Go","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro/v2","purl":null,"source":"GHSA-9x44-9pgq-cf45"},{"ecosystem":"Go","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro/v2","purl":"pkg:golang/github.com/hamba/avro/v2","source":"GHSA-9x44-9pgq-cf45"},{"ecosystem":"Go","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hamba/avro/v2","purl":"pkg:golang/github.com/hamba/avro/v2","source":"GO-2023-1930"}],"prev":{"headline":"Path traversal in copyparty","id":"CVE-2023-37474"},"products":["avro"],"published":"2023-07-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-18","vendors":["hamba"]},"summary":"A crafted string in the hamba/avro Go library can cause an unrecoverable out-of-memory error, leading to application denial of service.","url":"https://insights.sbomify.com/CVE-2023-37475/"}