CVE-2022-31306 Use after free in n/a

Medium 5.5 Published Updated

A use-after-free vulnerability in the Nginx NJS library allows attackers to cause a segmentation violation and denial of service.

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-2022-31306?

CVE-2022-31306 is a medium-severity use after free vulnerability in n/a, published on 21 Jun 2022. 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

Nginx NJS v0.7.2 was discovered to contain a segmentation violation in the function njs_array_convert_to_slow_array at src/njs_array.c.

Weakness: CWE-416

Which versions are affected by CVE-2022-31306?

It affects 1 product.

Products include F5 Njs.

How do I fix CVE-2022-31306?

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

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-31306 being exploited?

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

Sources

Also known as GHSA-6wgc-59vm-vww8.

Is CVE-2022-31306 in your software?

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

Check your SBOMs for free