CVE-2020-22628 Memory corruption in n/a

Medium 6.5 Published Updated

A buffer overflow in LibRaw's aspect ratio processing allows attackers to execute arbitrary code or cause denial of service via crafted images.

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-22628?

CVE-2020-22628 is a medium-severity memory corruption vulnerability in Libraw Libraw, published on 22 Aug 2023. 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

Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp.

Weakness: CWE-120

Which versions are affected by CVE-2020-22628?

It affects 1 product.

Linux distribution packages (13)
libraw SUSE:Linux Enterprise Module for Desktop Applications 15 SP4All versions0.20.2-150400.3.9.1
libraw SUSE:Linux Enterprise Module for Desktop Applications 15 SP5All versions0.20.2-150400.3.9.1
libraw SUSE:Linux Enterprise Module for Package Hub 15 SP5All versions0.20.2-150400.3.9.1
libraw SUSE:Linux Enterprise Software Development Kit 12 SP5All versions0.15.4-42.1
libraw SUSE:Linux Enterprise Workstation Extension 12 SP5All versions0.15.4-42.1
libraw SUSE:Linux Enterprise Workstation Extension 15 SP4All versions0.18.9-150000.3.23.1
libraw SUSE:Linux Enterprise Workstation Extension 15 SP4All versions0.20.2-150400.3.9.1
libraw SUSE:Linux Enterprise Workstation Extension 15 SP5All versions0.18.9-150000.3.23.1
libraw SUSE:Linux Enterprise Workstation Extension 15 SP5All versions0.20.2-150400.3.9.1
libraw openSUSE:Leap 15.4All versions0.18.9-150000.3.23.1
libraw openSUSE:Leap 15.4All versions0.20.2-150400.3.9.1
libraw openSUSE:Leap 15.5All versions0.20.2-150400.3.9.1
libraw openSUSE:TumbleweedAll versions0.21.1-3.1

Products include Libraw Libraw.

How do I fix CVE-2020-22628?

Apply the vendor's patch.

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

Is CVE-2020-22628 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-22628 exists.

All Libraw Libraw vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-22628, DLA-3560-1, GHSA-c4mp-wp8f-qrg6, SUSE-SU-2023:3966-1, SUSE-SU-2023:3967-1, SUSE-SU-2023:3968-1 and 3 more.

Is CVE-2020-22628 in your software?

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

Check your SBOMs for free