Vulnerabilities / CVE-2025-7394

critical

CVE-2025-7394

In the OpenSSL compatibility layer implementation, the function RAND_p ...

Published Modified CWE 200, 338
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia7.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Julia (high).

Description

In the OpenSSL compatibility layer implementation, the function RAND_poll() was not behaving as expected and leading to the potential for predictable values returned from RAND_bytes() after fork() is called. This can lead to weak or predictable random numbers generated in applications that are both using RAND_bytes() and doing fork() operations. This only affects applications explicitly calling RAND_bytes() after fork() and does not affect any internal TLS operations. Although RAND_bytes() documentation in OpenSSL calls out not being safe for use with fork() without first calling RAND_poll(), an additional code change was also made in wolfSSL to make RAND_bytes() behave similar to OpenSSL after a fork() call without calling RAND_poll(). Now the Hash-DRBG used gets reseeded after detecting running in a new process. If making use of RAND_bytes() and calling fork() we recommend updating to the latest version of wolfSSL. Thanks to Per Allansson from Appgate for the report.

Affected packages and fixed versions

SourcePackageFixed in
debian 11wolfsslno fix listed
debian 12wolfssl5.5.4-2+deb12u2
debian 13wolfssl5.7.2-0.1+deb13u1
echowolfssl5.5.4-2+deb12u2
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.8.4+0
rapidfort alpine 3.20wolfssl5.9.1-r0
rapidfort alpine 3.21wolfssl5.9.1-r0
rapidfort alpine 3.22wolfssl5.9.1-r0
rapidfort alpine 3.23wolfssl5.9.1-r0
rapidfort alpine 3.24wolfssl5.9.1-r0
rapidfort debian 12wolfssl0:5.7.2-0.1+deb13u1, 0:5.7.2-0.4
rapidfort debian 13wolfssl0:5.7.2-0.1+deb13u1, 0:5.7.2-0.4

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.