Vulnerability DatabaseGHSA-8mj7-wxmc-f424

GHSA-8mj7-wxmc-f424
Rust vulnerability analysis and mitigation

Overview

A high-severity use-after-free vulnerability was discovered in Neon, a library for creating JavaScript ArrayBuffer instances backed by bytes allocated outside of V8/Node. The vulnerability affects versions 0.8.0 through 0.10.1 of the Neon package, specifically in the JsArrayBuffer::external and JsBuffer::external functionality. The issue was discovered on May 22, 2022, and was patched in version 0.10.1 (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability stems from the JsArrayBuffer::external and JsBuffer::external functions not requiring T: 'static prior to Neon 0.10.1. This oversight allowed the creation of externally backed buffers from types that could be freed while still being referenced by a JavaScript ArrayBuffer. The issue manifests when creating an external buffer from &mut [u8] instead of Vec, exploiting a blanket implementation of AsMut for &mut T, potentially leading to use-after-free conditions (GitHub Advisory, Neon Issue).

Impact

The vulnerability could lead to memory corruption and memory exposure when exploited. When the affected functions are used, it's possible to create situations where JavaScript code continues to reference memory that has been freed in Rust, potentially leading to undefined behavior and security risks (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Neon version 0.10.1. Users should upgrade to this version or later to receive the patch. The fix implements proper lifetime requirements for the affected functions, preventing the creation of externally backed buffers from types that could be prematurely freed (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22700HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22705MEDIUM6.4
  • RustRust
  • ml-dsa
NoYesJan 10, 2026
CVE-2025-15504MEDIUM4.8
  • PythonPython
  • lief
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management