OSV-2021-1670 Dynamic-stack-buffer-overflow in zend_calc_live_ranges

Not scored Published

A dynamic stack buffer overflow in the PHP compiler's live range calculation can cause a crash, requiring a patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is OSV-2021-1670?

OSV-2021-1670 is a memory corruption vulnerability in php, published on 12 Dec 2021.

Official description

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

Crash type: Dynamic-stack-buffer-overflow READ 4
Crash state:
zend_calc_live_ranges
pass_two
zend_compile_func_decl

Which versions are affected by OSV-2021-1670?

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

PackageAffectedFixed in
php OSS-FuzzAll versionsNone

How do I fix OSV-2021-1670?

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

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

Sources

Is OSV-2021-1670 in your software?

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

Check your SBOMs for free