CVE-2026-42209: Cpp Unchecked Modulo Count

A modulo operation uses the `.count()` method as the divisor without a preceding zero-check. If `.count()` returns 0, this will cause a division-by-zero hardware exception (SIGFPE) leading to Denial of Service (DoS).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-42209-cpp-unchecked-modulo-count --engine opengrep

Description

A modulo operation uses the `.count()` method as the divisor without a preceding zero-check. If `.count()` returns 0, this will cause a division-by-zero hardware exception (SIGFPE) leading to Denial of Service (DoS).