CVE-2025-12875
NixOS vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-12875) was discovered in mruby version 3.4.0, specifically affecting the aryfillexec function in the file mrbgems/mruby-array-ext/src/array.c. The vulnerability was disclosed on October 21, 2025, and involves an out-of-bounds write condition that occurs when manipulating the argument start/length parameters (GitHub Issue).

Technical details

The vulnerability is classified as an out-of-bounds write (CWE-787) with a CVSS v3.1 base score of 5.3 MEDIUM. The issue occurs when Array#fill_exec is called with a negative start and positive length parameters, leading to a buffer underflow condition. The vulnerability allows for pointer underflow when start is negative, as fillexec does not properly validate start<0, resulting in ptr = ARYPTR(ary)+start underflowing and ptr[i] writing before the array bounds (VulDB, GitHub Issue).

Impact

The vulnerability affects the confidentiality, integrity, and availability of the system. When exploited, it can lead to memory corruption through out-of-bounds write operations, potentially causing system crashes or enabling arbitrary code execution in the context of the application (VulDB).

Mitigation and workarounds

A patch has been released (commit 93619f06dd378db6766666b30c08978311c7ec94) that adds proper validation for negative start and length parameters. The fix includes normalizing negative start indices and ensuring length parameters are non-negative. It is recommended to update to the patched version immediately (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

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