CVE-2022-2301 Buffer Over-read in hpjansson/chafa

Medium 5.5 Published Updated

A buffer over-read in Chafa allows attackers to cause denial of service or disclose sensitive memory contents via crafted images.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2301?

CVE-2022-2301 is a medium-severity memory corruption vulnerability in hpjansson/chafa, published on 4 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Buffer Over-read in GitHub repository hpjansson/chafa prior to 1.10.3.

Weakness: CWE-125, CWE-126

Which versions are affected by CVE-2022-2301?

It affects 1 product.

Linux distribution packages (4)
chafa SUSE:Package Hub 15 SP3All versions1.4.1-bp153.2.8.1
chafa SUSE:Package Hub 15 SP4All versions1.8.0-bp154.3.8.1
chafa openSUSE:Leap 15.3All versions1.4.1-bp153.2.8.1
chafa openSUSE:Leap 15.4All versions1.8.0-bp154.3.8.1

Products include Chafa Project Chafa.

How do I fix CVE-2022-2301?

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-2022-2301 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-2301, GHSA-rc7h-3q8g-vxjc, JLSEC-2026-1091, UBUNTU-CVE-2022-2301, openSUSE-SU-2022:10044-1, openSUSE-SU-2022:10045-1.

Is CVE-2022-2301 in your software?

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

Check your SBOMs for free