# CVE-2020-7458: 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 envi…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.90%, higher than 80% of CVEs (2026-12-01)
- Published: 2020-07-09T13:47:03.000Z
- Modified: 2026-06-17T03:24:49.227Z
- Weaknesses: CWE-787
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD: FreeBSD 11.4-RELEASE before p1
- freebsd freebsd: 11.4; 12.1

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://security.FreeBSD.org/advisories/FreeBSD-SA-20:18.posix_spawnp.asc> (patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20200724-0002/> (third-party-advisory)

## Sources

- CVE List: [CVE-2020-7458](https://www.cve.org/CVERecord?id=CVE-2020-7458), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-7458](https://nvd.nist.gov/vuln/detail/CVE-2020-7458), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7458 · Whole record: https://cve.day/CVE-2020-7458.json · Rebuilt by cve.day 2026-11-25T22:57:53.289Z
