In versions of FreeBSD 12.4-RELEASE prior to 12.4-RELEASE-p7 and FreeBSD 13.2-RELEASE prior to 13.2-RELEASE-p5 the __sflush() stdio function in libc does not correctly update FILE objects' write space members for write-buffered streams when the write(2) system call returns an error. Depending on the nature of an application that calls libc's stdio functions and the presence of errors returned from the write(2) system call (or an overridden stdio write routine) a heap buffer overflow may occur. Such overflows may lead to data corruption or the execution of arbitrary code at the privilege level of the calling program.
Conclusion & alert: CVE-2023-5941 is rated Moderate Risk (60.6/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 1.07%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.85% | 1.07% | +0.22% |
| 2 | 2026-06-06 | 0.87% | 0.85% | -0.02% |
| 3 | 2025-12-28 | — | 0.87% | — |
Full EPSS history (19 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| freebsd | freebsd | < 12.4 | cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* |
| freebsd | freebsd | >= 13.0, < 13.2 | cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:-:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p1:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p2:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p3:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p4:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p5:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:p6:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:rc2-p1:*:*:*:*:*:* |
| freebsd | freebsd | 12.4 | cpe:2.3:o:freebsd:freebsd:12.4:rc2-p2:*:*:*:*:*:* |
| freebsd | freebsd | 13.2 | cpe:2.3:o:freebsd:freebsd:13.2:-:*:*:*:*:*:* |
| freebsd | freebsd | 13.2 | cpe:2.3:o:freebsd:freebsd:13.2:p1:*:*:*:*:*:* |
| freebsd | freebsd | 13.2 | cpe:2.3:o:freebsd:freebsd:13.2:p2:*:*:*:*:*:* |
| freebsd | freebsd | 13.2 | cpe:2.3:o:freebsd:freebsd:13.2:p3:*:*:*:*:*:* |
| freebsd | freebsd | 13.2 | cpe:2.3:o:freebsd:freebsd:13.2:p4:*:*:*:*:*:* |