# CVE-2022-0240: NULL Pointer Dereference in mruby/mruby

- Severity: Medium 6.2 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.00%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-17T13:35:10.000Z
- Modified: 2026-06-17T04:20:12.753Z
- Weaknesses: CWE-476
- Assigned by: @huntrdev

## Description

mruby is vulnerable to NULL Pointer Dereference

(As written by CVE List.)

## Affected

- mruby mruby/mruby: from unspecified before 3.2
- mruby mruby: before 3.2

## Every score

- @huntrdev: CVSS:3.0 6.2 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://huntr.dev/bounties/5857eced-aad9-417d-864e-0bdf17226cbb> (exploit, third-party-advisory)
- <https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-0240](https://www.cve.org/CVERecord?id=CVE-2022-0240), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2022-0240](https://nvd.nist.gov/vuln/detail/CVE-2022-0240), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0240 · Whole record: https://cve.day/CVE-2022-0240.json · Rebuilt by cve.day 2026-11-25T22:58:09.256Z
