cve.bz

CVE-2022-4899 facebook zstandard: Uncontrolled Resource Consumption

7.5 highEPSS 1.6%Fix available

High (7.5) in facebook zstandard. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/facebook/zstd 1.5.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-02-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-4899 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4899?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4899?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-4899 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
facebook:zstandard1.4.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5c9c-6x87-f9vmSwiftURLgithub.com/facebook/zstd<1.5.41.5.4
GHSA-5c9c-6x87-f9vmPyPIzstd<1.5.4.01.5.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libzstd1.5.4+dfsg2-1DEBIAN-CVE-2022-4899
Ubuntu22.04:LTSlibzstdno fix listedUBUNTU-CVE-2022-4899
Red Hatenterprise_linux:8::appstreammecab, mecab-devel, mecab-debuginfo and 1 more0:0.996-2.module+el8.9.0+21207+6c20cb3dRHSA-2024:0894
Red Hatenterprise_linux:8::appstreammecab-ipadic, mecab-ipadic-EUCJP0:2.7.0.20070801-16.module+el8.9.0+21207+6c20cb3dRHSA-2024:0894
Red Hatenterprise_linux:8::appstreammysql, mysql-libs, mysql-test and 10 more0:8.0.36-1.module+el8.9.0+21207+6c20cb3dRHSA-2024:0894
Red Hatenterprise_linux:9::appstreammysql, mysql-common, mysql-errmsg and 7 more0:8.0.36-1.el9_3RHSA-2024:1141
Red Hatenterprise_linux:9::crbmysql-libs, mysql-test, mysql-devel and 6 more0:8.0.36-1.el9_3RHSA-2024:1141
Red Hatrhel_software_collections:3::el7rh-mysql80-mysql, rh-mysql80-mysql-test, rh-mysql80-mysql-devel and 9 more0:8.0.36-1.el7RHSA-2024:2619
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Real Time 15 SP3zstd1.4.4-150000.1.9.1SUSE-SU-2023:2074-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4zstd1.5.0-150400.3.3.1SUSE-SU-2023:1688-1
openSUSELeap 15.4, Leap Micro 5.3zstd1.5.0-150400.3.3.1SUSE-SU-2023:1688-1
openSUSETumbleweedzstd1.5.5-5.1openSUSE-SU-2024:13613-1
AlmaLinux8mecab, mecab-devel0.996-2.module_el8.6.0+3340+d764b636ALSA-2024:0894
AlmaLinux8mecab-ipadic, mecab-ipadic-EUCJP2.7.0.20070801-16.module_el8.6.0+3340+d764b636ALSA-2024:0894
AlmaLinux8mysql, mysql-libs, mysql-test and 4 more8.0.36-1.module_el8.9.0+3735+82bd6c11ALSA-2024:0894
AlmaLinux9mysql, mysql-libs, mysql-test and 4 more8.0.36-1.el9_3ALSA-2024:1141
Rocky Linux8mecab0:0.996-2.module+el8.10.0+1676+9b4b6e24RLSA-2024:0894
Rocky Linux8mecab0:0.996-2.module+el8.10.0+1937+28fbbc83RLSA-2024:0894
Rocky Linux8mecab-ipadic0:2.7.0.20070801-16.module+el8.10.0+1676+9b4b6e24RLSA-2024:0894
Rocky Linux8mysql0:8.0.36-1.module+el8.10.0+1676+9b4b6e24RLSA-2024:0894
Azure Linux2zstd1.5.4-1AZL-25813

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability in the zstd command-line utility is rated as Moderate Severity because it involves an Incorrect Calculation of Buffer Size (CWE-400) within the mallocAndJoin2Dir function in programs/util.c. A remote attacker can exploit this flaw by providing an input, specifically an empty string, which causes a function boundary error and results in a heap-based Out-of-Bounds Read on memory. This ultimately leads to a program crash, causing a Denial of Service condition that is limited to the specific zstd process or service instance, rather than affecting the entire host system's stability.

ProductPackageStateAdvisory
Red Hat AMQ Streams 2.7.0Fixed 2024-05-30RHSA-2024:3527
Red Hat Enterprise Linux 8mysql:8.0-8090020240126173013.a75119d5Fixed 2024-02-20RHSA-2024:0894
Red Hat Enterprise Linux 9mysql-0:8.0.36-1.el9_3Fixed 2024-03-05RHSA-2024:1141
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mysql80-mysql-0:8.0.36-1.el7Fixed 2024-04-30RHSA-2024:2619
Red Hat Enterprise Linux 6mysqlNot affected
Red Hat Enterprise Linux 8zstdWill not fix
Red Hat Enterprise Linux 9zstdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-4899.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON