CVE-2022-4899: Buffer Overflow

Published Mar 20, 2023
·
Updated

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.

Other sources

A vulnerability was found in zstd v1.4.10, where an attacker can supply an empty string as an argument to the command line tool to cause buffer overrun.

— GitHub

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.

— MITRE

Affected Software

10 affected componentsFixes available
pip/zstd<1.5.4.0
1.5.4.0
swift/github.com/facebook/zstd<1.5.4
1.5.4
Facebook Zstandard=1.4.10
redhat/mysql<8.0.34
8.0.34
Microsoft cbl2 zstd 1.5.4-1
debian/libzstd<1.5.4+dfsg2-1
1.5.4+dfsg2-1
debian/libzstd<1.5.4+dfsg2-1
1.5.4+dfsg2-1
debian/libzstd<1.5.4+dfsg2-1
1.5.4+dfsg2-1
debian/libzstd
1.5.4+dfsg2-1
ubuntu/libzstd*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/zstd to a version that resolves this vulnerability.

    Fixed in 1.5.4.0
  2. Upgrade

    Upgrade swift/github.com/facebook/zstd to a version that resolves this vulnerability.

    Fixed in 1.5.4
  3. Upgrade

    Upgrade redhat/mysql to a version that resolves this vulnerability.

    Fixed in 8.0.34
  4. Upgrade

    Upgrade debian/libzstd to a version that resolves this vulnerability.

    Fixed in 1.5.4+dfsg2-1

Event History

Mar 20, 2023
Data Sourced
via Red Hat·10:07 AM
DescriptionSeverityAffected Software
Mar 31, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via OSV·12:00 AM
DescriptionSeverityWeakness
Data Sourced
08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
09:30 PM
Apr 1, 2023
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Nov 7, 2023
Updated
via NVD·03:59 AM
Affected Software
Nov 19, 2024
Advisory Published
via GitHub·07:09 PM
Data Sourced
via GitHub·07:09 PM
DescriptionSeverityWeaknessAffected Software
Feb 18, 2025
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:15 PM
RemedySeverityWeaknessAffected Software
Feb 28, 2025
Updated
via Red Hat·05:35 PM
Severity
Jun 17, 2026
Updated
via NVD·05:22 AM
RemedySeverityWeaknessAffected Software
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-4899?

The severity of CVE-2022-4899 is high with a CVSS score of 7.5.

2

How does CVE-2022-4899 affect zstd version 1.4.10?

CVE-2022-4899 affects zstd version 1.4.10 by allowing an attacker to supply an empty string as a command line argument, causing buffer overrun.

3

Which software versions are affected by CVE-2022-4899?

CVE-2022-4899 affects zstd version 1.4.10 in the pip package, zstd version 1.4.10 in the swift package, and all versions of Facebook Zstandard up to and excluding 1.5.4.

4

How can I fix CVE-2022-4899?

To fix CVE-2022-4899, update to zstd version 1.5.4 or later for the pip package, update to zstd version 1.5.4 or later for the swift package, or update to Facebook Zstandard version 1.5.4 or later.

5

Where can I find more information about CVE-2022-4899?

You can find more information about CVE-2022-4899 at the following references: - [NIST NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-4899) - [GitHub Issue](https://github.com/facebook/zstd/issues/3200) - [GitHub Pull Request](https://github.com/facebook/zstd/pull/3220)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203