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

Critical 9.8 Published Updated

A heap use-after-free in the njs module allows attackers to potentially execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-25139?

CVE-2022-25139 is a critical use after free vulnerability in n/a, published on 14 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

njs through 0.7.0, used in NGINX, was discovered to contain a heap use-after-free in njs_await_fulfilled.

Weakness: CWE-416

Which versions are affected by CVE-2022-25139?

It affects 1 product.

Products include F5 Njs.

How do I fix CVE-2022-25139?

Upgrade to a fixed version.

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-25139 being exploited?

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

Sources

Also known as ALPINE-CVE-2022-25139, CLEANSTART-2026-HE76780, GHSA-7f37-mh9r-45hr.

Is CVE-2022-25139 in your software?

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

Check your SBOMs for free