FreeBSD : pcre -- heap overflow vulnerability in '(?|' situations (ff0acfb4-3efa-11e5-93ad-002590263bf5)

high Nessus Plugin ID 85320

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

Venustech ADLAB reports :

PCRE library is prone to a vulnerability which leads to Heap Overflow.
During the compilation of a malformed regular expression, more data is written on the malloced block than the expected size output by compile_regex. Exploits with advanced Heap Fengshui techniques may allow an attacker to execute arbitrary code in the context of the user running the affected application.

Latest version of PCRE is prone to a Heap Overflow vulnerability which could caused by the following regular expression.

/(?J:(?|(:(?|(?'R')(\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/

Solution

Update the affected package.

See Also

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202209

https://bugs.exim.org/show_bug.cgi?id=1667

http://www.nessus.org/u?75ac5f85

Plugin Details

Severity: High

ID: 85320

File Name: freebsd_pkg_ff0acfb43efa11e593ad002590263bf5.nasl

Version: 2.8

Type: local

Published: 8/11/2015

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

CVSS Score Rationale: Score from an in depth analysis done by tenable

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:pcre, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 8/10/2015

Vulnerability Publication Date: 8/5/2015