{"id":"CVE-2025-13397","summary":"mrubyc alloc.c mrbc_raw_realloc null pointer dereference","details":"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.","modified":"2026-10-28T10:31:52.693850393Z","published":"2025-11-19T15:32:08.751Z","database_specific":{"cwe_ids":["CWE-404","CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13397.json","unresolved_ranges":[{"extracted_events":[{"range":[{"introduced":"3.0"},{"last_affected":"3.0"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"}]}],"cna_assigner":"VulDB"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13397.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13397"},{"type":"ADVISORY","url":"https://vuldb.com/?id.332925"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.692130"},{"type":"REPORT","url":"https://github.com/mrubyc/mrubyc/issues/244"},{"type":"REPORT","url":"https://github.com/mrubyc/mrubyc/issues/244#issuecomment-3400382026"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.332925"},{"type":"FIX","url":"https://github.com/mrubyc/mrubyc/commit/009111904807b8567262036bf45297c3da8f1c87"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mrubyc/mrubyc","events":[{"introduced":"ef245d11b21a7c19abc1d79d3ae81cb5e6d6a870"},{"fixed":"009111904807b8567262036bf45297c3da8f1c87"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.1"},{"last_affected":"3.1"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"3.2"},{"last_affected":"3.2"}],"source":"AFFECTED_FIELD"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"3.3"},{"last_affected":"3.3"}],"source":"AFFECTED_FIELD"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"3.4"},{"last_affected":"3.4"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"009111904807b8567262036bf45297c3da8f1c87"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["3.1","3.2","3.3","3.4","release3.4","release3.3.1","release3.3","release3.2","release3.2-rc1","release3.2-beta1","release3.1"],"database_specific":{"vanir_signatures":[{"source":"https://github.com/mrubyc/mrubyc/commit/009111904807b8567262036bf45297c3da8f1c87","target":{"file":"src/alloc.c","function":"mrbc_raw_realloc"},"deprecated":false,"digest":{"function_hash":"79142215126855726851561168407461939967","length":1160},"id":"CVE-2025-13397-c074f359","signature_type":"Function","signature_version":"v1"},{"target":{"file":"src/alloc.c"},"deprecated":false,"digest":{"line_hashes":["252907259741965015429048688671865759136","31793476453168332436203216682406175085","96407396698854802965844241235553744214","156002919658214048247621089207244992631","12677554200944974588762101313805173149"],"threshold":0.9},"id":"CVE-2025-13397-c8069b31","signature_type":"Line","signature_version":"v1","source":"https://github.com/mrubyc/mrubyc/commit/009111904807b8567262036bf45297c3da8f1c87"}],"vanir_signatures_modified":"2026-10-28T10:31:52Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-13397.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}