CVE-2021-33481 Memory corruption in gocr

High 7.8 Published Updated

A stack-based buffer overflow in gocr allows attackers to execute arbitrary code or cause denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-33481?

CVE-2021-33481 is a high-severity memory corruption vulnerability in gocr, published on 17 Nov 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A stack-based buffer overflow vulnerability was discovered in gocr through 0.53-20200802 in try_to_divide_boxes() in pgm2asc.c.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-33481?

It affects 1 product.

Products include Optical Character Recognition Project Optical Character Recognition.

How do I fix CVE-2021-33481?

No fix has been published for CVE-2021-33481 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-33481 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-33481, GHSA-wgmm-j5vp-vhxr, UBUNTU-CVE-2021-33481.

Is CVE-2021-33481 in your software?

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

Check your SBOMs for free