CVE-2019-12900 Memory corruption in n/a

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
bz2 HackageFrom 0.1.0.01.0.1.1
bzlib HackageFrom 0.40.5.2.0
bzlib-conduit HackageFrom 0.1.0.00.3.0.3
Linux distribution packages (37)
bzip2 AlmaLinux:8All versions1.0.6-27.el8_10
bzip2 AlmaLinux:8All versions1.0.6-28.el8_10
bzip2-devel AlmaLinux:8All versions1.0.6-27.el8_10
bzip2-devel AlmaLinux:8All versions1.0.6-28.el8_10
bzip2-libs AlmaLinux:8All versions1.0.6-27.el8_10
bzip2-libs AlmaLinux:8All versions1.0.6-28.el8_10
bzip2 AlmaLinux:9All versions1.0.8-10.el9_5
bzip2-devel AlmaLinux:9All versions1.0.8-10.el9_5
bzip2-libs AlmaLinux:9All versions1.0.8-10.el9_5
bzip2 Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2 Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-devel Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2-devel Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-libs Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2-libs Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-27.el8_10
bzip2-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.0.6-28.el8_10
bzip2-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:1.0.8-10.el9_5
bzip2-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:1.0.8-10.el9_5
bzip2-devel Red Hat:enterprise_linux:9::appstreamAll versions0:1.0.8-10.el9_5
bzip2-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:1.0.8-10.el9_5
bzip2 Red Hat:enterprise_linux:9::baseosAll versions0:1.0.8-10.el9_5
bzip2-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:1.0.8-10.el9_5
bzip2-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:1.0.8-10.el9_5
bzip2-libs Red Hat:enterprise_linux:9::baseosAll versions0:1.0.8-10.el9_5
bzip2-libs-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:1.0.8-10.el9_5
bzip2-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions0:1.0.8-8.el9_4.1
bzip2-debugsource Red Hat:rhel_eus:9.4::appstreamAll versions0:1.0.8-8.el9_4.1
bzip2-devel Red Hat:rhel_eus:9.4::appstreamAll versions0:1.0.8-8.el9_4.1
bzip2-libs-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions0:1.0.8-8.el9_4.1
bzip2 Red Hat:rhel_eus:9.4::baseosAll versions0:1.0.8-8.el9_4.1
bzip2-debuginfo Red Hat:rhel_eus:9.4::baseosAll versions0:1.0.8-8.el9_4.1
bzip2-debugsource Red Hat:rhel_eus:9.4::baseosAll versions0: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.

All Canonical Ubuntu Linux vulnerabilities

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.

Is CVE-2019-12900 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free