Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-14337

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-14337
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:26 UTC · Revision 1

Source evidence

CVE-2018-14337

core-osv · Original source

Published 17 Jul 2018, 03:29 UTC

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.

osv:CVE-2018-14337
Complete source record
{
  "id": "456b0f0e6e489e9b2f60c69ffb69e7d0db520cc7429bd27aacb88864cb51eb35",
  "url": "https://osv.dev/vulnerability/CVE-2018-14337",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-14337",
    "summary": "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.",
    "evidence": "osv:CVE-2018-14337",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-14337",
      "aliases": [
        "CVE-2018-14337"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mruby/mruby",
              "type": "GIT",
              "events": [
                {
                  "introduced": "023070a6396233974785a8fd5735b9380a884f27"
                },
                {
                  "last_affected": "023070a6396233974785a8fd5735b9380a884f27"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mruby:mruby:1.4.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.4.1"
                      },
                      {
                        "last_affected": "1.4.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.4.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14337.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:19.351658349Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2022/05/msg00006.html",
        "https://github.com/mruby/mruby/issues/4062"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-14337",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381534,
  "published_at": "2018-07-17T03:29:00.227+00:00"
}