ALAS-2019-1295

Related Vulnerabilities: CVE-2019-13224   CVE-2019-13225  

A use-after-free in onig_new_deluxe() in regext.c in Oniguruma 6.9.2 allows attackers to potentially cause information disclosure, denial of service, or possibly code execution by providing a crafted regular expression. The attacker provides a pair of a regex pattern and a string, with a multi-byte encoding that gets handled by onig_new_deluxe(). Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust. (CVE-2019-13224) A NULL Pointer Dereference in match_at() in regexec.c in Oniguruma 6.9.2 allows attackers to potentially cause denial of service by providing a crafted regular expression. Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust. (CVE-2019-13225)

ALAS-2019-1295


Amazon Linux AMI Security Advisory: ALAS-2019-1295
Advisory Release Date: 2019-09-30 20:59 Pacific
Advisory Updated Date: 2019-10-02 23:02 Pacific
Severity: Medium

Issue Overview:

A use-after-free in onig_new_deluxe() in regext.c in Oniguruma 6.9.2 allows attackers to potentially cause information disclosure, denial of service, or possibly code execution by providing a crafted regular expression. The attacker provides a pair of a regex pattern and a string, with a multi-byte encoding that gets handled by onig_new_deluxe(). Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust. (CVE-2019-13224)

A NULL Pointer Dereference in match_at() in regexec.c in Oniguruma 6.9.2 allows attackers to potentially cause denial of service by providing a crafted regular expression. Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust. (CVE-2019-13225)


Affected Packages:

oniguruma


Issue Correction:
Run yum update oniguruma to update your system.

New Packages:
i686:
    oniguruma-devel-5.9.6-4.4.amzn1.i686
    oniguruma-debuginfo-5.9.6-4.4.amzn1.i686
    oniguruma-5.9.6-4.4.amzn1.i686

src:
    oniguruma-5.9.6-4.4.amzn1.src

x86_64:
    oniguruma-devel-5.9.6-4.4.amzn1.x86_64
    oniguruma-5.9.6-4.4.amzn1.x86_64
    oniguruma-debuginfo-5.9.6-4.4.amzn1.x86_64