CVE-2019-12900 Memory corruption in n/a
An out-of-bounds write in bzip2 decompression allows attackers to execute arbitrary code or cause denial of service via crafted files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-12900?
CVE-2019-12900 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 19 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
BZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.
Weakness: CWE-787
Which versions are affected by CVE-2019-12900?
3 open source packages ship an affected version, including bz2, bzlib and bzlib-conduit. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
bz2 Hackage | From 0.1.0.0 | 1.0.1.1 |
bzlib Hackage | From 0.4 | 0.5.2.0 |
bzlib-conduit Hackage | From 0.1.0.0 | 0.3.0.3 |
Linux distribution packages (37)
bzip2 AlmaLinux:8 | All versions | 1.0.6-27.el8_10 |
bzip2 AlmaLinux:8 | All versions | 1.0.6-28.el8_10 |
bzip2-devel AlmaLinux:8 | All versions | 1.0.6-27.el8_10 |
bzip2-devel AlmaLinux:8 | All versions | 1.0.6-28.el8_10 |
bzip2-libs AlmaLinux:8 | All versions | 1.0.6-27.el8_10 |
bzip2-libs AlmaLinux:8 | All versions | 1.0.6-28.el8_10 |
bzip2 AlmaLinux:9 | All versions | 1.0.8-10.el9_5 |
bzip2-devel AlmaLinux:9 | All versions | 1.0.8-10.el9_5 |
bzip2-libs AlmaLinux:9 | All versions | 1.0.8-10.el9_5 |
bzip2 Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2 Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-27.el8_10 |
bzip2-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:1.0.6-28.el8_10 |
bzip2-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.0.8-10.el9_5 |
bzip2-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:1.0.8-10.el9_5 |
bzip2-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:1.0.8-10.el9_5 |
bzip2-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.0.8-10.el9_5 |
bzip2 Red Hat:enterprise_linux:9::baseos | All versions | 0:1.0.8-10.el9_5 |
bzip2-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:1.0.8-10.el9_5 |
bzip2-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:1.0.8-10.el9_5 |
bzip2-libs Red Hat:enterprise_linux:9::baseos | All versions | 0:1.0.8-10.el9_5 |
bzip2-libs-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:1.0.8-10.el9_5 |
bzip2-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.0.8-8.el9_4.1 |
bzip2-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.0.8-8.el9_4.1 |
bzip2-devel Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.0.8-8.el9_4.1 |
bzip2-libs-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.0.8-8.el9_4.1 |
bzip2 Red Hat:rhel_eus:9.4::baseos | All versions | 0:1.0.8-8.el9_4.1 |
bzip2-debuginfo Red Hat:rhel_eus:9.4::baseos | All versions | 0:1.0.8-8.el9_4.1 |
bzip2-debugsource Red Hat:rhel_eus:9.4::baseos | All versions | 0:1.0.8-8.el9_4.1 |
Products include Bzip Bzip2, Canonical Ubuntu Linux, Debian Debian Linux, Freebsd Freebsd, Opensuse Leap, Python Python.
How do I fix CVE-2019-12900?
Upgrade bz2 to 1.0.1.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-12900 being exploited?
There is no known exploitation of CVE-2019-12900 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2019-12900, ALSA-2024:8922, ALSA-2025:0733, ALSA-2025:0925, CLEANSTART-2026-PN21117, CLSA-2024-1731337736 and 25 more.