zstd: mysql: buffer overrun in util.c
Published Mar 31, 2023
7.5
HIGHCVSS 3.1
EPSS 1.59%
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.
Affected products
- Vendor n/a Product Zstd Defaultunknown
Affected
- zstd 1.5.4
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| n/a | Zstd | unknown | Affected
|
No data.
Red Hat AMQ Streams 2.7.0
n/a
Fixed · RHSA-2024:3527
Red Hat Enterprise Linux 8
mysql:8.0-8090020240126173013.a75119d5
Fixed · RHSA-2024:0894
Red Hat Enterprise Linux 9
mysql-0:8.0.36-1.el9_3
Fixed · RHSA-2024:1141
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-mysql80-mysql-0:8.0.36-1.el7
Fixed · RHSA-2024:2619
Red Hat Enterprise Linux 6
mysql
Not affected
Red Hat Enterprise Linux 8
zstd
Will not fix
Red Hat Enterprise Linux 9
zstd
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat AMQ Streams 2.7.0 | n/a | Fixed | RHSA-2024:3527 |
| Red Hat Enterprise Linux 8 | mysql:8.0-8090020240126173013.a75119d5 | Fixed | RHSA-2024:0894 |
| Red Hat Enterprise Linux 9 | mysql-0:8.0.36-1.el9_3 | Fixed | RHSA-2024:1141 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-mysql80-mysql-0:8.0.36-1.el7 | Fixed | RHSA-2024:2619 |
| Red Hat Enterprise Linux 6 | mysql | Not affected | n/a |
| Red Hat Enterprise Linux 8 | zstd | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | zstd | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
References (17)
- https://access.redhat.com/security/cve/CVE-2022-4899 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2179864 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-0287 Advisory
- https://github.com/advisories/GHSA-5c9c-6x87-f9vm Advisory
- https://github.com/facebook/zstd/issues/3200 Issue TrackingPatch
- https://github.com/facebook/zstd/pull/3220
- https://github.com/pypa/advisory-database/tree/main/vulns/zstd/PYSEC-2023-121.yaml
- https://github.com/sergey-dryabzhinsky/python-zstd/commit/c8a619aebdbd6b838fbfef6e19325a70f631a4c6
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C63HAGVLQA6FJNDCHR7CNZZL6VSLILB2/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JEHRBBYYTPA4DETOM5XAKGCP37NUTLOA/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QYLDK6ODVC4LJSDULLX6Q2YHTFOWABCN/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C63HAGVLQA6FJNDCHR7CNZZL6VSLILB2
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEHRBBYYTPA4DETOM5XAKGCP37NUTLOA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QYLDK6ODVC4LJSDULLX6Q2YHTFOWABCN
- https://nvd.nist.gov/vuln/detail/CVE-2022-4899
- https://security.netapp.com/advisory/ntap-20230725-0005
- https://www.cve.org/CVERecord?id=CVE-2022-4899
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub