Integer Overflow or Wraparound Affecting kkos/oniguruma package, versions [6.0.0,6.9.4)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
10.63% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-KKOSONIGURUMA-2366420
  • published26 Jan 2022
  • disclosed17 Nov 2019
  • creditUnknown

Introduced: 17 Nov 2019

CVE-2019-19012  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade kkos/oniguruma to version 6.9.4 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. An integer overflow in the search_in_range function in regexec.c in Oniguruma 6.x before 6.9.4_rc2 leads to an out-of-bounds read, in which the offset of this read is under the control of an attacker. (This only affects the 32-bit compiled version). Remote attackers can cause a denial-of-service or information disclosure, or possibly have unspecified other impact, via a crafted regular expression.

CVSS Base Scores

version 3.1