{"answers":{"affected":"4 open source packages ship an affected version, including zstd and github.com/facebook/zstd. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4899 in the wild and no public exploit code.","fix":"Upgrade zstd to 1.5.4.0 or later.","what":"CVE-2022-4899 is a high-severity denial of service vulnerability in zstd, published on 31 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-2022-4899 and fix it if it is affected.\n\nWhat it is: CVE-2022-4899 is a high-severity denial of service vulnerability in zstd, published on 31 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-2022-4899 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zstd (PyPI): affected all versions; fixed in 1.5.4.0\n- zstd (PyPI): affected all versions; fixed in 1.5.4.0\n- github.com/facebook/zstd (SwiftURL): affected all versions; fixed in 1.5.4\n- github.com/facebook/zstd (SwiftURL): affected all versions; fixed in 1.5.4\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-2022-4899/ (Markdown: https://insights.sbomify.com/CVE-2022-4899/index.md)","id":"CVE-2022-4899","markdown":"https://insights.sbomify.com/CVE-2022-4899/index.md","name":"CVE-2022-4899","record":{"aliases":["AZL-25813","DEBIAN-CVE-2022-4899","ECHO-9a1d-1b7a-719e","GHSA-5c9c-6x87-f9vm","MGASA-2023-0128","OESA-2023-1213","OESA-2023-1214","ROOT-OS-DEBIAN-11-CVE-2022-4899","SUSE-SU-2023:1688-1","SUSE-SU-2023:2074-1","UBUNTU-CVE-2022-4899","openSUSE-SU-2024:13613-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"zstd compression library","requires_auth":"none","summary":"An attacker can cause a buffer overrun and denial of service by supplying an empty string argument to the zstd command line tool.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"zstandard","vendor":"facebook"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","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":"A vulnerability was found in zstd v1.4.10, where an attacker can supply empty string as an argument to the command line tool to cause buffer overrun.","ecosystems":["PyPI","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SwiftURL","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"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":"zstd vulnerable to buffer overrun","id":"CVE-2022-4899","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":13,"n_references":5,"next":{"headline":"Potential buffer overflow in php_cli_server_startup_workers","id":"CVE-2022-4900"},"packages":[{"ecosystem":"PyPI","fixed":["1.5.4.0"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":null,"source":"GHSA-5c9c-6x87-f9vm"},{"ecosystem":"PyPI","fixed":["1.5.4.0"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:pypi/zstd","source":"GHSA-5c9c-6x87-f9vm"},{"ecosystem":"SwiftURL","fixed":["1.5.4"],"introduced":["0"],"last_affected":[],"package":"github.com/facebook/zstd","purl":null,"source":"GHSA-5c9c-6x87-f9vm"},{"ecosystem":"SwiftURL","fixed":["1.5.4"],"introduced":["0"],"last_affected":[],"package":"github.com/facebook/zstd","purl":"pkg:swift/github.com/facebook/zstd","source":"GHSA-5c9c-6x87-f9vm"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["1.4.4-150000.1.9.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2023:2074-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.4.4-150000.1.9.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2023:2074-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.5.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2023:1688-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.5.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2023:1688-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["1.5.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:1688-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP3","fixed":["1.4.4-150000.1.9.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/suse/zstd\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3","source":"SUSE-SU-2023:2074-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.5.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/opensuse/zstd\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1688-1"},{"ecosystem":"openSUSE:Leap Micro 5.3","fixed":["1.5.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/opensuse/zstd\u0026distro=openSUSE%20Leap%20Micro%205.3","source":"SUSE-SU-2023:1688-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.5.5-5.1"],"introduced":["0"],"last_affected":[],"package":"zstd","purl":"pkg:rpm/opensuse/zstd\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13613-1"}],"prev":{"headline":"Cross-site scripting in Octopus Server","id":"CVE-2022-4898"},"products":["zstd"],"published":"2023-03-31","related":[{"cvss_score":8.1,"headline":"Race condition in Zstandard","id":"CVE-2019-11922","kev_date_added":null,"published":"2019-07-25"},{"cvss_score":5.5,"headline":"Information disclosure in Zstandard","id":"CVE-2021-24031","kev_date_added":null,"published":"2021-03-04"},{"cvss_score":4.7,"headline":"Information disclosure in Zstandard","id":"CVE-2021-24032","kev_date_added":null,"published":"2021-03-04"}],"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":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-18","vendors":["n/a"]},"summary":"An attacker can cause a buffer overrun and denial of service by supplying an empty string argument to the zstd command line tool.","url":"https://insights.sbomify.com/CVE-2022-4899/"}