Debian DLA-2020-1 : libonig security update

critical Nessus Plugin ID 131705


The remote Debian host is missing a security update.


Several vulnerabilities were discovered in the Oniguruma regular expressions library, notably used in PHP mbstring.


An integer overflow in the search_in_range function in regexec.c 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.


In the function fetch_range_quantifier in regparse.c, PFETCH is called without checking PEND. This leads to a heap-based buffer over-read and lead to denial of service via a crafted regular expression.


Heap-based buffer over-read in str_lower_case_match in regexec.c can lead to denial of service via a crafted regular expression.

For Debian 8 'Jessie', these problems have been fixed in version 5.9.5-3.2+deb8u4.

We recommend that you upgrade your libonig packages.

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.


Upgrade the affected libonig-dev, libonig2, and libonig2-dbg packages.

See Also

Plugin Details

Severity: Critical

ID: 131705

File Name: debian_DLA-2020.nasl

Version: 1.4

Type: local

Agent: unix

Published: 12/5/2019

Updated: 1/11/2021

Supported Sensors: Frictionless Assessment Agent, Nessus Agent

Risk Information


Risk Factor: Medium

Score: 5.9


Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: E:U/RL:OF/RC:C


Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libonig-dev, p-cpe:/a:debian:debian_linux:libonig2, p-cpe:/a:debian:debian_linux:libonig2-dbg, cpe:/o:debian:debian_linux:8.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 12/4/2019

Vulnerability Publication Date: 11/17/2019

Reference Information

CVE: CVE-2019-19012, CVE-2019-19204, CVE-2019-19246