OSV-2020-704 Heap-buffer-overflow in BEInt<unsigned char, 1>::set

Not scored Published

A heap buffer overflow in the font parsing library allows attackers to execute arbitrary code or cause denial of service via malicious fonts.

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

What is OSV-2020-704?

OSV-2020-704 is a memory corruption vulnerability in harfbuzz, published on 1 Jul 2020.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13736

Crash type: Heap-buffer-overflow WRITE 1
Crash state:
BEInt&lt;unsigned char, 1&gt;::set
CFF::CFFIndex&lt;OT::IntType&lt;unsigned int, 4u&gt; &gt;::set_offset_at
bool CFF::FDArray&lt;OT::IntType&lt;unsigned int, 4u&gt; &gt;::serialize&lt;CFF::cff2_font_dict

Which versions are affected by OSV-2020-704?

1 open source package ship an affected version, including harfbuzz.

PackageAffectedFixed in
harfbuzz OSS-FuzzAll versionsNone

How do I fix OSV-2020-704?

No fix has been published for OSV-2020-704 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 OSV-2020-704 being exploited?

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

Sources

Is OSV-2020-704 in your software?

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

Check your SBOMs for free