CVE-2022-4899 json
zstd vulnerable to buffer overrun
published 2023-03-31 3 y ago modified 2026-06-23 4 mo ago also EUVD-2023-0287 , GHSA-5c9c-6x87-f9vm , PYSEC-2023-121
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- swift github.com/facebook/zstd 1.5.4
- pypi zstd 1.5.4.0
- libzstd Debian 14, Debian 13, Debian 12 1.5.4+dfsg2-1
debian advisories DEBIAN-CVE-2022-4899
- mecab RHEL 8 0.996-2.module+el8.9.0+21207+6c20cb3d
- mysql RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
- mysql-libs RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
- mysql-test RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
- mecab-ipadic RHEL 8 2.7.0.20070801-16.module+el8.9.0+21207+6c20cb3d
- mysql-common RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
- mysql-errmsg RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
- mysql-server RHEL 8 8.0.36-1.module+el8.9.0+21207+6c20cb3d
red hat advisories RHSA-2024:0894RHSA-2024:1141RHSA-2024:2619
- zstd SLE Real Time 15 SP3, SLE Micro 5.2, SLE Micro 5.1 1.4.4-150000.1.9.1
- zstd SLE Module for Basesystem 15 SP4, SLE Micro 5.4, SLE Micro 5.3 +2 more 1.5.0-150400.3.3.1
suse advisories SUSE-SU-2023:2074-1SUSE-SU-2023:1688-1
- zstd openSUSE Tumbleweed 1.5.5-5.1
opensuse advisories openSUSE-SU-2024:13613-1
- mysql AlmaLinux 9 8.0.36-1.el9_3
- mysql-libs AlmaLinux 9 8.0.36-1.el9_3
- mysql-test AlmaLinux 9 8.0.36-1.el9_3
- mysql-common AlmaLinux 9 8.0.36-1.el9_3
- mysql-errmsg AlmaLinux 9 8.0.36-1.el9_3
- mysql-server AlmaLinux 9 8.0.36-1.el9_3
- mecab AlmaLinux 8 0.996-2.module_el8.6.0+3340+d764b636
- mysql AlmaLinux 8 8.0.36-1.module_el8.9.0+3735+82bd6c11
almalinux advisories ALSA-2024:1141ALSA-2024:0894
- mecab Rocky Linux 8 0.996-2.module+el8.10.0+1676+9b4b6e24
- mecab Rocky Linux 8 0.996-2.module+el8.10.0+1937+28fbbc83
- mysql Rocky Linux 8 8.0.36-1.module+el8.10.0+1676+9b4b6e24
- mecab-ipadic Rocky Linux 8 2.7.0.20070801-16.module+el8.10.0+1676+9b4b6e24
rocky linux advisories RLSA-2024:0894
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-4899 updated cvss 7.5
zstd: mysql: buffer overrun in util.c
-
Red Hat Enterprise Linux 8 zstd, libzstdaffected: no fix planned “Will not fix”
-
Red Hat AMQ Streams 2.7.0fixed: vendor fix RHSA-2024:3527
-
Red Hat CodeReady Linux Builder (v. 9) mysql-libs 8.0.36-1.el9_3, mysql-test 8.0.36-1.el9_3fixed: vendor fix RHSA-2024:1141
-
Red Hat Enterprise Linux AppStream (v. 8) mecab 0.996-2.module+el8.9.0+21207+6c20cb3d, mysql 8.0.36-1.module+el8.9.0+21207+6c20cb3d, mysql-libs 8.0.36-1.module+el8.9.0+21207+6c20cb3d, mysql-test 8.0.36-1.module+el8.9.0+21207+6c20cb3d, mysql-common 8.0.36-1.module+el8.9.0+21207+6c20cb3d, mysql-errmsg 8.0.36-1.module+el8.9.0+21207+6c20cb3d, +3 morefixed: vendor fix RHSA-2024:0894
-
Red Hat Enterprise Linux AppStream (v. 9) mysql 8.0.36-1.el9_3, mysql-common 8.0.36-1.el9_3, mysql-errmsg 8.0.36-1.el9_3, mysql-server 8.0.36-1.el9_3fixed: vendor fix RHSA-2024:1141
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-mysql80-mysql 8.0.36-1.el7, rh-mysql80-mysql-test 8.0.36-1.el7, rh-mysql80-mysql-common 8.0.36-1.el7, rh-mysql80-mysql-config 8.0.36-1.el7, rh-mysql80-mysql-errmsg 8.0.36-1.el7, rh-mysql80-mysql-server 8.0.36-1.el7, +4 more Red Hat Software Collections for RHEL(v. 7) rh-mysql80-mysql 8.0.36-1.el7, rh-mysql80-mysql-test 8.0.36-1.el7, rh-mysql80-mysql-common 8.0.36-1.el7, rh-mysql80-mysql-config 8.0.36-1.el7, rh-mysql80-mysql-errmsg 8.0.36-1.el7, rh-mysql80-mysql-server 8.0.36-1.el7, +4 morefixed: vendor fix RHSA-2024:2619
-
Red Hat Enterprise Linux 6 mysql, mysql-libs, mysql-test, mysql-bench, mysql-server, mysql-embedded Red Hat Enterprise Linux 9 zstd, libzstdnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| swift | github.com/facebook/zstd | <1.5.4 |
1.5.4 |
| pypi | zstd | <1.5.4.0 |
1.5.4.0 |
Affected products
- n/a zstd
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/facebook/zstd/issues/3200
web, issue-tracking, patch
-
github.com
/facebook/zstd/pull/3220
web
-
github.com
/sergey-dryabzhinsky/python-zstd/commit/c8a619aebdbd6b838fbfef6e19325a70f631a4c6
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/C63HAGVLQA6FJNDCHR7CNZZL6VSLILB2/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/JEHRBBYYTPA4DETOM5XAKGCP37NUTLOA/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QYLDK6ODVC4LJSDULLX6Q2YHTFOWABCN/
vendor-advisory
- security.netapp.com /advisory/ntap-20230725-0005/
-
nvd.nist.gov
/vuln/detail/CVE-2022-4899
advisory
-
github.com
/facebook/zstd
package
-
github.com
/pypa/advisory-database/tree/main/vulns/zstd/PYSEC-2023-121.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/C63HAGVLQA6FJNDCHR7CNZZL6VSLILB2
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/JEHRBBYYTPA4DETOM5XAKGCP37NUTLOA
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QYLDK6ODVC4LJSDULLX6Q2YHTFOWABCN
web
-
security.netapp.com
/advisory/ntap-20230725-0005
web
Sources
- CVE List CVE-2022-4899
- GitHub Advisory GHSA-5c9c-6x87-f9vm
- NVD CVE-2022-4899
- OSV PYSEC-2023-121
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.