GHSA-58xc-hpvq-8473: Redox uefi std Redox UEFI Safe API Can Vulnerability

LOW
CWE-122
Published
Advisory Summary

GHSA-58xc-hpvq-8473 is a LOW redox uefi safe api can vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Redox uefi std libraries in the crates.io ecosystem. The issue involves redox uefi safe api can cause heap-buffer-overflow. Remediation is available by upgrading affected packages to version 0.1.14.

GHSA-58xc-hpvq-8473 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-58xc-hpvq-8473
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-122: Heap-based Buffer Overflow
Affected Product Redox uefi std
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-58xc-hpvq-8473

To remediate this vulnerability, upgrade all affected Redox uefi std dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

redox_uefi_std fixed: 0.1.14
Upgrade redox_uefi_std to 0.1.14
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for redox_uefi_std

How to Check if You Are Affected

To determine whether your application is affected by GHSA-58xc-hpvq-8473, inspect your project dependencies for Redox uefi std:

inspect dependencies for redox_uefi_std

Analyze the terminal output to locate any version of Redox uefi std in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.14), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Redox uefi std, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

ffi::nstr() should be marked unsafe, since a pointer to a buffer without a trailing 0 value will cause a heap buffer overflow.

GHSA-58xc-hpvq-8473 Affected Redox uefi std Versions

1 component(s)
Fixed Versions:
0.1.14
Product / Package Ecosystem Affected Versions Fixed Version
redox_uefi_std
crates.io
≥ 0.1.8
< 0.1.14
0.1.14

References

Frequently Asked Questions

What is GHSA-58xc-hpvq-8473?
GHSA-58xc-hpvq-8473 is a security vulnerability in Redox uefi std involving Redox UEFI Safe API can cause heap-buffer-overflow under CWE-122: Heap-based Buffer Overflow.
Which Redox uefi std versions are affected?
Affected versions include releases prior to 0.1.14 across affected packages: redox_uefi_std.
What version fixes GHSA-58xc-hpvq-8473?
Upgrading to 0.1.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redox_uefi_std affected?
Yes, redox_uefi_std is affected in releases prior to 0.1.14. Upgrade your dependency to 0.1.14 or later.
What CWE is associated with GHSA-58xc-hpvq-8473?
GHSA-58xc-hpvq-8473 is classified under CWE-122: Heap-based Buffer Overflow (A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().).
How can I check crates.io dependencies for GHSA-58xc-hpvq-8473?
Run the dependency tree command: 'inspect dependencies for redox_uefi_std'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-58xc-hpvq-8473",
  "modified" : "2025-05-06T20:00:17Z",
  "published" : "2025-05-06T20:00:17Z",
  "aliases" : [ ],
  "summary" : "Redox UEFI Safe API can cause heap-buffer-overflow",
  "details" : "ffi::nstr() should be marked unsafe, since a pointer to a buffer without a trailing 0 value will cause a heap buffer overflow.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "redox_uefi_std"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.8"
      }, {
        "fixed" : "0.1.14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://gitlab.redox-os.org/redox-os/uefi"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.redox-os.org/redox-os/uefi/-/commit/b711d47e815665b0ec8949e39292ad8e3fdd0756"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0032.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-122" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-06T20:00:17Z",
    "nvd_published_at" : null
  }
}