GHSA-5pmw-9j92-3c4c: Openh264 sys2 OpenH264 Rust API Openh264 Decoding Vulnerability

HIGH
CWE-122 CWE-1395
Published
Advisory Summary

GHSA-5pmw-9j92-3c4c is a HIGH openh264 rust api openh264 decoding vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Openh264 sys2 libraries in the crates.io ecosystem. The issue involves openh264 rust api openh264 decoding functions heap overflow vulnerability. Remediation is available by upgrading affected packages to version 0.8.0.

GHSA-5pmw-9j92-3c4c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5pmw-9j92-3c4c
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-122: Heap-based Buffer Overflow
Affected Product Openh264 sys2
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-5pmw-9j92-3c4c

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

openh264-sys2 fixed: 0.8.0
Upgrade openh264-sys2 to 0.8.0
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 openh264-sys2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5pmw-9j92-3c4c, inspect your project dependencies for Openh264 sys2:

inspect dependencies for openh264-sys2

Analyze the terminal output to locate any version of Openh264 sys2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.0), 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 Openh264 sys2, 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

OpenH264 recently reported a [heap overflow](https://github.com/cisco/openh264/security/advisories/GHSA-m99q-5j7x-7m9x) that was fixed in upstream [63db555](https://github.com/cisco/openh264/commit/63db555e30986e3a5f07871368dc90ae78c27449) and [integrated into](https://github.com/ralfbiedert/openh264-rs/commit/3a822fff0b4c9a984622ca2b179fe8898ac54b14) our 0.6.6 release. For users relying on Cisco's pre-compiled DLL, we also published 0.8.0, which is compatible with their latest fixed DLL version 2.6.0. In other words: - if you rely on our `source` feature only, >=0.6.6 should be safe, - if you rely on `libloading`, you must upgrade to 0.8.0 _and_ use their latest DLL >=2.6.0. Users handling untrusted video files should update immediately.

GHSA-5pmw-9j92-3c4c Affected Openh264 sys2 Versions

1 component(s)
Fixed Versions:
0.8.0
Product / Package Ecosystem Affected Versions Fixed Version
openh264-sys2
crates.io
< 0.8.0
0.8.0

References

Frequently Asked Questions

What is GHSA-5pmw-9j92-3c4c?
GHSA-5pmw-9j92-3c4c is a security vulnerability in Openh264 sys2 involving OpenH264 Rust API Openh264 Decoding Functions Heap Overflow Vulnerability under CWE-122: Heap-based Buffer Overflow.
Which Openh264 sys2 versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: openh264-sys2.
What version fixes GHSA-5pmw-9j92-3c4c?
Upgrading to 0.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openh264-sys2 affected?
Yes, openh264-sys2 is affected in releases prior to 0.8.0. Upgrade your dependency to 0.8.0 or later.
What CWE is associated with GHSA-5pmw-9j92-3c4c?
GHSA-5pmw-9j92-3c4c 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-5pmw-9j92-3c4c?
Run the dependency tree command: 'inspect dependencies for openh264-sys2'. 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-5pmw-9j92-3c4c",
  "modified" : "2025-02-24T18:27:25Z",
  "published" : "2025-02-24T18:27:25Z",
  "aliases" : [ ],
  "summary" : "OpenH264 Rust API Openh264 Decoding Functions Heap Overflow Vulnerability",
  "details" : "OpenH264 recently reported a [heap overflow](https://github.com/cisco/openh264/security/advisories/GHSA-m99q-5j7x-7m9x) that was fixed in upstream [63db555](https://github.com/cisco/openh264/commit/63db555e30986e3a5f07871368dc90ae78c27449) and [integrated into](https://github.com/ralfbiedert/openh264-rs/commit/3a822fff0b4c9a984622ca2b179fe8898ac54b14) our 0.6.6 release. For users relying on Cisco's pre-compiled DLL, we also published 0.8.0, which is compatible with their latest fixed DLL version  2.6.0. \n\nIn other words:\n- if you rely on our `source` feature only, >=0.6.6 should be safe,\n- if you rely on `libloading`, you must upgrade to 0.8.0 _and_ use their latest DLL >=2.6.0. \n\nUsers handling untrusted video files should update immediately.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "openh264-sys2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27091"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cisco/openh264/pull/3818"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ralfbiedert/openh264-rs/commit/3a822fff0b4c9a984622ca2b179fe8898ac54b14"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ralfbiedert/openh264-rs"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0008.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-122", "CWE-1395" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-24T18:27:25Z",
    "nvd_published_at" : null
  }
}