CVE-2017-9228 Memory corruption in n/a

Critical 9.8 Published Updated

Heap out-of-bounds write in Oniguruma regex compilation allows attackers to execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-9228?

CVE-2017-9228 is a critical memory corruption vulnerability in Php Php, published on 24 May 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parse_char_class() could create an execution path that leaves a critical local variable uninitialized until it's used as an index, resulting in an out-of-bounds write memory corruption.

Weakness: CWE-787

Which versions are affected by CVE-2017-9228?

It affects 2 products.

Products include Oniguruma Project Oniguruma, Php Php.

How do I fix CVE-2017-9228?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2017-9228 being exploited?

There is no known exploitation of CVE-2017-9228 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as ALPINE-CVE-2017-9228, CLSA-2025-1758892974, CLSA-2025-1758892982, CLSA-2025-1758896397, DEBIAN-CVE-2017-9228, GHSA-qc5j-7652-9f34 and 1 more.

Is CVE-2017-9228 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free