CVE-2018-14337
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer...
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
CVE-2018-14337- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
CVE-2018-14337- Updated
- 2026-11-02
EUVDEUVD-2018-6259 No score
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
EUVD-2018-6259- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hrqc-789v-hchf
7.5
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer...
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
GHSA-hrqc-789v-hchf- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
OSV
7.5
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
CVE-2018-14337- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-14337
7.5
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
DEBIAN-CVE-2018-14337- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-14337
7.5
The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.
- Record
UBUNTU-CVE-2018-14337- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mrubyDebian:12 |
before 2.0.0-1 | 2.0.0-1 |
mrubyDebian:13 |
before 2.0.0-1 | 2.0.0-1 |
mrubyDebian:14 |
before 2.0.0-1 | 2.0.0-1 |
mrubyDebian:9 From an advisory covering 6 CVEs |
before 1.2.0+20161228+git30d5424a-1+deb9u1, plus listed versions 1.2.0+20161228+git30d5424a-1 |
1.2.0+20161228+git30d5424a-1+deb9u1 |
mrubyUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.0+20150817+gita1731254-11.1.0+20150906+git1cbbb7e1-11.2.0+20160315+git4f20d58a-1 |
None known |
mrubyUbuntu:18.04:LTS |
All versions, plus listed versions 1.3.0-11.3.0+20170925+git38185028-11.3.0+20171029+git77edafb0-11.4.0-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-14337 is a high vulnerability (CVSS 7.5) in Mruby, published July 17, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.35%, the 71st percentile. Fixed in mruby 2.0.0-1.
References
github.com/mruby/mruby/issues/4062
lists.debian.org/debian-lts-announce/2022/05/msg00006.html
nvd.nist.gov/vuln/detail/CVE-2018-14337
github.com/advisories/GHSA-hrqc-789v-hchf
security-tracker.debian.org/tracker/CVE-2018-14337
ubuntu.com/security/CVE-2018-14337
github.com/mruby/mruby/commit/695f29cd604787f43be1af16e38d13610bf8312b
github.com/mruby/mruby/commit/adb1eae912659d680a9c5b7832e22cf73d36a69a
cve.org/CVERecord?id=CVE-2018-14337