CVE-2016-1000005

mcrypt_get_block_size did not enforce that the provided "module" parameter was a string, leading to type confusion if other types of data were passed in

published February 19, 2020

CVSS
—
EPSS
1%
Percentile
72.1
In the wild
Unconfirmed
What it is

⚠️ A type confusion vulnerability lurks in mcrypt_get_block_size, where it doesn’t check if the "module" parameter is a string — think of it like a restaurant accepting a pizza order when you actually asked for salad! This flaw is like a waiter who forgets to confirm if you really wanted a gluten-free crust. Just as they might deliver the wrong dish without clarification, this vulnerability allows unexpected data types that could lead to improper handling. An attacker could exploit this confusion, potentially leading to unexpected behavior in the application. While no known exploits exist, it’s still a sneaky possibility that could disrupt your system. Stay vigilant!

Put simply

This flaw is like a waiter who forgets to confirm if you really wanted a gluten-free crust. Just as they might deliver the wrong dish without clarification, this vulnerability allows unexpected data types that could lead to improper handling. This vulnerability occurs in HHVM when the mcrypt_get_block_size function fails to validate that the provided "module" parameter is a string, allowing a type confusion that may cause improper handling of data types.

What to do

An attacker could exploit this confusion, potentially leading to unexpected behavior in the application. While no known exploits exist, it’s still a sneaky possibility that could disrupt your system. Stay vigilant! Update to HHVM version 3.9.5 or later, or ensure that you are using 3.14.2 or higher to avoid this issue. Regularly audit your code for proper parameter validation to strengthen your defenses. You've got this! Patch up your system and keep your code robust. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01392 · 72.1th percentile
Published
2020-02-19T12:38Z
EPSS history
Timeline
  • 19 FEB 12:38Z
    mcrypt_get_block_size did not enforce that the provided "module" parameter was a string, leading to type confusion if other types of data were passed in
    cvelistv5