GHSA-q445-7m23-qrmw

Suggest an improvement
Source
https://github.com/advisories/GHSA-q445-7m23-qrmw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-q445-7m23-qrmw/GHSA-q445-7m23-qrmw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q445-7m23-qrmw
Related
Published
2024-07-22T17:34:53Z
Modified
2024-07-22T17:34:53Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
Details

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-476"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-07-22T17:34:53Z"
}
References

Affected packages

crates.io / openssl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.66