{"answers":{"affected":"2 open source packages ship an affected version, including Snappier. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-28638 in the wild and no public exploit code.","fix":"Upgrade Snappier to 1.1.1 or later.","what":"CVE-2023-28638 is a high-severity memory corruption vulnerability in brantburnett Snappier, published on 27 Mar 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-28638 and fix it if it is affected.\n\nWhat it is: CVE-2023-28638 is a high-severity memory corruption vulnerability in brantburnett Snappier, published on 27 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-28638 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Snappier (NuGet): affected from 1.1.0; fixed in 1.1.1\n- Snappier (NuGet): affected from 1.1.0; fixed in 1.1.1\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-28638/ (Markdown: https://insights.sbomify.com/CVE-2023-28638/index.md)","id":"CVE-2023-28638","markdown":"https://insights.sbomify.com/CVE-2023-28638/index.md","name":"CVE-2023-28638","record":{"aliases":["GHSA-838x-pcvx-6p5w"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"C# Snappy compression library","requires_auth":"none","summary":"A race condition with garbage collection in Snappier can cause buffer overruns, leading to process termination and denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"snappier","vendor":"snappier_project"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"Snappier is a high performance C# implementation of the Snappy compression algorithm. This is a buffer overrun vulnerability that can affect any user of Snappier 1.1.0. In this release, much of the code was rewritten to use byte references rather than pointers to pinned buffers. This change generally improves performance and reduces workload on the garbage collector. However, when the garbage collector performs compaction and rearranges memory, it must update any byte references on the stack to refer to the updated location. The .NET garbage collector can only update these byte references if they still point within the buffer or to a point one byte past the end of the buffer. If they point outside this area, the buffer itself may be moved while the byte reference stays the same. There are several places in 1.1.0 where byte references very briefly point outside the valid areas of buffers. These are at locations in the code being used for buffer range checks. While the invalid references are never dereferenced directly, if a GC compaction were to occur during the brief window when they are on the stack then it could invalidate the buffer range check and allow other operations to overrun the buffer.  This should be very difficult for an attacker to trigger intentionally. It would require a repetitive bulk attack with the hope that a GC compaction would occur at precisely the right moment during one of the requests. However, one of the range checks with this problem is a check based on input data in the decompression buffer, meaning malformed input data could be used to increase the chance of success. Note that any resulting buffer overrun is likely to cause access to protected memory, which will then cause an exception and the process to be terminated. Therefore, the most likely result of an attack is a denial of service. This issue has been patched in release 1.1.1. Users are advised to upgrade. Users unable to upgrade may pin buffers to a fixed location before using them for compression or decompression to mitigate some, but not all, of these cases. At least one temporary decompression buffer is internal to the library and never pinned.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Stack references to locations outside buffers may become invalid if they exist during a GC compaction in Snappier","id":"CVE-2023-28638","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"GLPI vulnerable to reflected Cross-site Scripting in search pages","id":"CVE-2023-28639"},"packages":[{"ecosystem":"NuGet","fixed":["1.1.1"],"introduced":["1.1.0"],"last_affected":[],"package":"Snappier","purl":null,"source":"GHSA-838x-pcvx-6p5w"},{"ecosystem":"NuGet","fixed":["1.1.1"],"introduced":["1.1.0"],"last_affected":[],"package":"Snappier","purl":"pkg:nuget/Snappier","source":"GHSA-838x-pcvx-6p5w"}],"prev":{"headline":"DataEase AWS redshift data source exists for remote code execution vulnerability","id":"CVE-2023-28637"},"products":["Snappier"],"published":"2023-03-27","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":"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-18","vendors":["brantburnett"]},"summary":"A race condition with garbage collection in Snappier can cause buffer overruns, leading to process termination and denial of service.","url":"https://insights.sbomify.com/CVE-2023-28638/"}