CVE-2020-7458 Memory corruption in FreeBSD

Critical 9.8 Published Updated

A heap buffer overflow in posix_spawnp allows arbitrary code execution via a crafted PATH environment variable in FreeBSD.

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

What is CVE-2020-7458?

CVE-2020-7458 is a critical memory corruption vulnerability in Freebsd Freebsd, published on 9 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In FreeBSD 12.1-STABLE before r362281, 11.4-STABLE before r362281, and 11.4-RELEASE before p1, long values in the user-controlled PATH environment variable cause posix_spawnp to write beyond the end of the heap allocated stack possibly leading to arbitrary code execution.

Weakness: CWE-787

Which versions are affected by CVE-2020-7458?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2020-7458?

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

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

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-pvv4-m6qj-jw53.

Is CVE-2020-7458 in your software?

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

Check your SBOMs for free