CVE-2025-13397 Details
Description
A security vulnerability has been detected in mrubyc up to 3.4. This impacts the function mrbc_raw_realloc of the file src/alloc.c. Such manipulation of the argument ptr leads to null pointer dereference. An attack has to be approached locally. The name of the patch is 009111904807b8567262036bf45297c3da8f1c87. It is advisable to implement a patch to correct this issue.
A null pointer dereference vulnerability has been identified in mrubyc versions through 3.4. The issue arises in the memory reallocation function 'mrbc_raw_realloc' within 'src/alloc.c'. When the 'ptr' argument is null, the function incorrectly dereferences it, leading to a segmentation fault and crashing the application. This vulnerability requires local exploitation.
Apply the patch available in the commit '009111904807b8567262036bf45297c3da8f1c87' to add proper null pointer checks in the 'mrbc_raw_realloc' function.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mrubyc/mrubyc/commit/009111904807b8567262036bf45297c3da8f1c87 | [email protected] | Patch |
| https://github.com/mrubyc/mrubyc/issues/244 | [email protected] | Issue Tracking |
| https://github.com/mrubyc/mrubyc/issues/244#issuecomment-3400382026 | [email protected] | Issue Tracking |
| https://vuldb.com/?ctiid.332925 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.332925 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.692130 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-404 | Improper Resource Shutdown or Release | [email protected] |
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| s-itoc mruby/c | <= 3.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 1, 2025 | Initial Analysis | [email protected] |
| Nov 19, 2025 | New CVE Received | [email protected] |