CVE-2026-30960
JSON

9.4critical

RSSN has Arbitrary Code Execution via Unvalidated JIT Instruction Generation in C-FFI Interface

Severity
9.4critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9c4h-pwmf-m6fjRUSTSEC-2026-0038

Description

rssn is a scientific computing library for Rust, combining a high-performance symbolic computation engine with numerical methods support and physics simulations functionalities. The vulnerability exists in the JIT (Just-In-Time) compilation engine, which is fully exposed via the CFFI (Foreign Function Interface). Due to Improper Input Validation and External Control of Code Generation, an attacker can supply malicious parameters or instruction sequences through the CFFI layer. Since the library often operates with elevated privileges or within high-performance computing contexts, this allows for Arbitrary Code Execution (ACE) at the privilege level of the host process.

Affected

Product or packageVersionsReported by
Apich-Organization rssn< 0.2.9CVE List
rssn (crates.io)before 0.2.9, from 0.1.20 before 0.2.9GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub_M9.4critical CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
RustSec Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Classification

CWE-15CWE-20CWE-94CWE-269CWE-695CWE-754

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

rssn is a scientific computing library for Rust, combining a high-performance symbolic computation engine with numerical methods support and physics simulations functionalities. The vulnerability exists in the JIT (Just-In-Time) compilation engine, which is fully exposed via the CFFI (Foreign Function Interface). Due to Improper Input Validation and External Control of Code Generation, an attacker can supply malicious parameters or instruction sequences through the CFFI layer. Since the library often operates with elevated privileges or within high-performance computing contexts, this allows for Arbitrary Code Execution (ACE) at the privilege level of the host process.

GitHub Advisory Database

Impact

Vulnerability Type: Improper Control of Generation of Code ('Code Injection') (CWE-94) / Improper Check for Unusual or Exceptional Conditions (CWE-754) / Improper Input Validation (CWE-20) / Use of Low-Level Functionality (CWE-695) / Improper Privilege Management (CWE-269) / External Control of System or Configuration Setting (CWE-15).

Technical Details: The vulnerability exists in the JIT (Just-In-Time) compilation engine, which is fully exposed via the CFFI (Foreign Function Interface). Due to Improper Input Validation and External Control of Code Generation, an attacker can supply malicious parameters or instruction sequences through the CFFI layer. Since the library often operates with elevated privileges or within high-performance computing contexts, this allows for Arbitrary Code Execution (ACE) at the privilege level of the host process.

Who is Impacted?

  • Developers using the library as a dynamic linked library (.so, .dll, .dylib) in multi-language environments (e.g., Python, Node.js, C++).
  • Cloud Service Providers running the library in multi-tenant environments or automated model-training pipelines.
  • Users processing untrusted or third-party datasets/models that may trigger malicious JIT instruction generation. Patches
  • Affected versions: < 0.2.8
  • Patched version: 0.2.9

Workarounds

If you cannot upgrade immediately, please consider the following mitigations:

  • Strict Sandboxing: Run the library within a restricted sandbox (e.g., WebAssembly, Docker with non-root user, or seccomp profiles) to limit system call access.
  • Principle of Least Privilege: Ensure the process calling the library does not have administrative or root privileges.
  • Input Filtering: If possible, implement an application-level validation layer to sanitize any data passed to the CFFI interfaces.
  • Disable JIT (if applicable): If your workload allows, use the interpreter-only mode (if provided by the library) to bypass the JIT engine entirely. CVSS Score
  • Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
  • Base Score: 9.4 (Critical)

References

Apich Organization Security Team Homepage

RustSec Advisory Database

Impact

Vulnerability Type: Improper Control of Generation of Code ('Code Injection') (CWE-94) / Improper Check for Unusual or Exceptional Conditions (CWE-754) / Improper Input Validation (CWE-20) / Use of Low-Level Functionality (CWE-695) / Improper Privilege Management (CWE-269) / External Control of System or Configuration Setting (CWE-15).

Technical Details: The vulnerability exists in the JIT (Just-In-Time) compilation engine, which is fully exposed via the CFFI (Foreign Function Interface). Due to Improper Input Validation and External Control of Code Generation, an attacker can supply malicious parameters or instruction sequences through the CFFI layer. Since the library often operates with elevated privileges or within high-performance computing contexts, this allows for Arbitrary Code Execution (ACE) at the privilege level of the host process.

Who is Impacted?

  • Developers using the library as a dynamic linked library (.so, .dll, .dylib) in multi-language environments (e.g., Python, Node.js, C++).
  • Cloud Service Providers running the library in multi-tenant environments or automated model-training pipelines.
  • Users processing untrusted or third-party datasets/models that may trigger malicious JIT instruction generation. Patches
  • Affected versions: < 0.2.8
  • Patched version: 0.2.9

Workarounds

If you cannot upgrade immediately, please consider the following mitigations:

  • Strict Sandboxing: Run the library within a restricted sandbox (e.g., WebAssembly, Docker with non-root user, or seccomp profiles) to limit system call access.
  • Principle of Least Privilege: Ensure the process calling the library does not have administrative or root privileges.
  • Input Filtering: If possible, implement an application-level validation layer to sanitize any data passed to the CFFI interfaces.
  • Disable JIT (if applicable): If your workload allows, use the interpreter-only mode (if provided by the library) to bypass the JIT engine entirely.

References

Apich Organization Security Team Homepage

NVD (es)

rssn es una biblioteca de computación científica para Rust, que combina un motor de computación simbólica de alto rendimiento con soporte para métodos numéricos y funcionalidades de simulaciones físicas. La vulnerabilidad existe en el motor de compilación JIT (Just-In-Time), que está completamente expuesto a través de la CFFI (Foreign Function Interface). Debido a una validación de entrada inadecuada y al control externo de la generación de código, un atacante puede suministrar parámetros maliciosos o secuencias de instrucciones a través de la capa CFFI. Dado que la biblioteca a menudo opera con privilegios elevados o dentro de contextos de computación de alto rendimiento, esto permite la ejecución de código arbitrario (ACE) al nivel de privilegio del proceso anfitrión.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-30960 changed 2026-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-9c4h-pwmf-m6fj changed 2026-03-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0038 changed 2026-10-12CC0-1.0
NVDCVE-2026-30960 changed 2026-06-17Public domain