# CVE-2025-13397: mrubyc alloc.c mrbc_raw_realloc null pointer dereference

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 4% of CVEs (2026-12-02)
- Published: 2025-11-19T15:32:08.751Z
- Modified: 2026-10-19T13:10:00.110Z
- Weaknesses: CWE-404, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- mrubyc: 3.0; 3.1; 3.2; 3.3; 3.4
- s-itoc mruby/c: up to 3.4

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- VulDB: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://vuldb.com/?id.332925> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.332925> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.692130> (third-party-advisory, vdb-entry)
- <https://github.com/mrubyc/mrubyc/issues/244> (issue-tracking)
- <https://github.com/mrubyc/mrubyc/issues/244#issuecomment-3400382026> (issue-tracking)
- <https://github.com/mrubyc/mrubyc/commit/009111904807b8567262036bf45297c3da8f1c87> (patch)

## Sources

- CVE List: [CVE-2025-13397](https://www.cve.org/CVERecord?id=CVE-2025-13397), CVE Terms of Use, modified 2025-11-19
- NVD: [CVE-2025-13397](https://nvd.nist.gov/vuln/detail/CVE-2025-13397), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-13397 · Whole record: https://cve.day/CVE-2025-13397.json · Rebuilt by cve.day 2026-11-25T22:59:07.823Z
