Redox UEFI Safe API can cause heap-buffer-overflowGHSA-58xc-hpvq-8473
GHSA-58xc-hpvq-8473 is a remote code execution vulnerability in redox_uefi_std. A fix is available for redox_uefi_std — see the affected versions and patch details below.
Real-World Exposure
redox_uefi_stdReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
ffi::nstr() should be marked unsafe, since a pointer to a buffer without a trailing 0 value will cause a heap buffer overflow.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | redox_uefi_std | ≥ 0.1.8&&< 0.1.14 | 0.1.14cargo update -p redox_uefi_std --precise 0.1.14 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for redox_uefi_std, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update redox_uefi_std to 0.1.14 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-58xc-hpvq-8473 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Frequently Asked Questions
Is GHSA-58xc-hpvq-8473 in your dependencies?
Find it across crates.io, including transitive dependencies.