onigmo: NULL pointer dereference in onig_error_code_to_str because of fetch_token in regparse.c
Published Sep 9, 2019
7.5
HIGHCVSS 3.1
EPSS 2.07%
Description
Onigmo through 6.2.0 has a NULL pointer dereference in onig_error_code_to_str because of fetch_token in regparse.c.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
oniguruma
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 7
php
Not affected
Red Hat Enterprise Linux 7
ruby
Fix deferred
Red Hat Enterprise Linux 8
oniguruma
Not affected
Red Hat Enterprise Linux 8
php:7.2/php
Not affected
Red Hat Enterprise Linux 8
php:7.3/php
Not affected
Red Hat Enterprise Linux 8
ruby:2.5/ruby
Fix deferred
Red Hat Enterprise Linux 8
ruby:2.6/ruby
Fix deferred
Red Hat OpenShift Container Platform 4
oniguruma
Not affected
Red Hat Software Collections
rh-php72-php
Not affected
Red Hat Software Collections
rh-php73-php
Not affected
Red Hat Software Collections
rh-ruby24-ruby
Fix deferred
Red Hat Software Collections
rh-ruby25-ruby
Fix deferred
Red Hat Software Collections
rh-ruby26-ruby
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | oniguruma | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ruby | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | oniguruma | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php:7.2/php | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php:7.3/php | Not affected | n/a |
| Red Hat Enterprise Linux 8 | ruby:2.5/ruby | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | ruby:2.6/ruby | Fix deferred | n/a |
| Red Hat OpenShift Container Platform 4 | oniguruma | Not affected | n/a |
| Red Hat Software Collections | rh-php72-php | Not affected | n/a |
| Red Hat Software Collections | rh-php73-php | Not affected | n/a |
| Red Hat Software Collections | rh-ruby24-ruby | Fix deferred | n/a |
| Red Hat Software Collections | rh-ruby25-ruby | Fix deferred | n/a |
| Red Hat Software Collections | rh-ruby26-ruby | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This flaw does not affect the versions of oniguruma (embedded in php:7.2/php) as shipped with Red Hat Enterprise Linux 8 as they do not include the vulnerable code, which was introduced in a newer version of the package. The same is true for the versions of oniguruma as shipped with Red Hat Enterprise Linux 6, the versions of oniguruma (embedded in php and php53) as shipped with Red Hat Enterprise Linux 5, 6, and 7, and the versions of oniguruma (embedded in rh-php72-php) as shipped with Red Hat Software Collections 3. This flaw does not affect the versions of oniguruma as shipped with Red Hat Enterprise Linux 8 as they already include the patch. The same is true for the versions of oniguruma (embedded in php:7.3/php) as shipped with Red Hat Enterprise Linux 8 and the versions of oniguruma (embedded in rh-php73-php) as shipped with Red Hat Software Collections 3.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.07% (0.02068) | 80.73th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.07% (0.02068) | 78.86th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.12% (0.00117) | 46.01th | v3 (v2023.03.01) |
| Jul 3, 2024 | 0.12% (0.00117) | 45.87th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.12% (0.00117) | 43.87th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.50% (0.04499) | 74.08th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.74% (0.02742) | 63.06th | v5 (v2026.06.15) |
| Jan 6, 2022 | 2.74% (0.02742) | 62.72th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (6)
- https://access.redhat.com/security/cve/CVE-2019-16161 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1769042 Issue Tracking
- https://github.com/k-takata/Onigmo/commit/9827d5a0298ee766f6041db9c0080166ff6cdce8 x_refsource_MISCPatchThird Party Advisory
- https://github.com/k-takata/Onigmo/issues/132 x_refsource_MISCExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-16161
- https://www.cve.org/CVERecord?id=CVE-2019-16161
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-16161 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1769042 | Issue Tracking | |
| https://github.com/k-takata/Onigmo/commit/9827d5a0298ee766f6041db9c0080166ff6cdce8 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/k-takata/Onigmo/issues/132 | x_refsource_MISCExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-16161 | ||
| https://www.cve.org/CVERecord?id=CVE-2019-16161 |
Change history (0)
No recorded changes yet.