CVE-2020-13790 Memory corruption in n/a

High 8.1 Published Updated

A heap-based buffer over-read in libjpeg-turbo allows attackers to cause denial of service or disclose information via a malformed PPM file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-13790?

CVE-2020-13790 is a high-severity memory corruption vulnerability in n/a, published on 3 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

libjpeg-turbo 2.0.4, and mozjpeg 4.0.0, has a heap-based buffer over-read in get_rgb_row() in rdppm.c via a malformed PPM input file.

Weakness: CWE-125

Which versions are affected by CVE-2020-13790?

It affects 2 products.

Linux distribution packages (37)
libjpeg-turbo AlmaLinux:8All versions1.5.3-14.el8_10
libjpeg-turbo-devel AlmaLinux:8All versions1.5.3-14.el8_10
libjpeg-turbo-utils AlmaLinux:8All versions1.5.3-14.el8_10
turbojpeg AlmaLinux:8All versions1.5.3-14.el8_10
turbojpeg-devel AlmaLinux:8All versions1.5.3-14.el8_10
libjpeg-turbo Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-devel Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-utils Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-utils-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
turbojpeg Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
turbojpeg-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.5.3-14.el8_10
libjpeg-turbo-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.5.3-14.el8_10
libjpeg-turbo-debugsource Red Hat:enterprise_linux:8::crbAll versions0:1.5.3-14.el8_10
libjpeg-turbo-utils-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.5.3-14.el8_10
turbojpeg-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.5.3-14.el8_10
turbojpeg-devel Red Hat:enterprise_linux:8::crbAll versions0:1.5.3-14.el8_10
libjpeg-turbo Rocky Linux:8All versions0:1.5.3-14.el8_10
libjpeg-turbo SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions1.5.3-5.15.7
libjpeg62-turbo SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.5.3-5.15.7
libjpeg62-turbo SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Module for Desktop Applications 15 SP1All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Module for Package Hub 15 SP1All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Module for Package Hub 15 SP2All versions1.5.3-5.15.7
libjpeg-turbo SUSE:Linux Enterprise Server 12 SP5All versions1.5.3-31.22.2
libjpeg62-turbo SUSE:Linux Enterprise Server 12 SP5All versions1.5.3-31.22.2
libjpeg-turbo SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.5.3-31.22.2
libjpeg62-turbo SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.5.3-31.22.2
libjpeg-turbo SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.5.3-31.22.2
libjpeg62-turbo SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.5.3-31.22.2
libjpeg-turbo openSUSE:Leap 15.1All versions1.5.3-lp151.6.6.1
libjpeg62-turbo openSUSE:Leap 15.1All versions1.5.3-lp151.6.6.1
libjpeg-turbo openSUSE:Leap 15.2All versions1.5.3-lp152.8.3.1
libjpeg62-turbo openSUSE:Leap 15.2All versions1.5.3-lp152.8.3.1

Products include Libjpeg-Turbo Libjpeg-Turbo, Mozilla Mozjpeg.

How do I fix CVE-2020-13790?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-13790 being exploited?

There is no known exploitation of CVE-2020-13790 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2020-13790, ALSA-2025:7540, CLEANSTART-2026-GF49451, DEBIAN-CVE-2020-13790, GHSA-3rgw-2fpg-85mq, MGASA-2020-0267 and 8 more.

Is CVE-2020-13790 in your software?

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

Check your SBOMs for free