{"id":"CVE-2016-1000005","details":"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. This issue affects HHVM versions prior to 3.9.5, all versions between 3.10.0 and 3.12.3 (inclusive), and all versions between 3.13.0 and 3.14.1 (inclusive).","modified":"2026-07-08T12:35:28.888420Z","published":"2020-02-19T13:15:10.837Z","references":[{"type":"ADVISORY","url":"https://www.facebook.com/security/advisories/cve-2016-1000005"},{"type":"FIX","url":"https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/facebook/hhvm","events":[{"introduced":"0"},{"fixed":"03ebc848ba9bdf96204bbbaeb7b87f85c8dee79f"},{"introduced":"ef7496ae03728143cce4d620ef8ce10db1128d6c"},{"last_affected":"2b2ae0076c30ad9e07a0f37bf86798c530756515"},{"introduced":"5b0e52b83f1dc0aa0c1dfe3a5687995c9693f5a6"},{"last_affected":"d99b370804b7e0234ab794869d1ba1774c848e85"},{"fixed":"39e7e177473350b3a5c34e8824af3b98e25efa89"}],"database_specific":{"cpe":"cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.9.5"},{"introduced":"3.10.0"},{"last_affected":"3.12.3"},{"introduced":"3.13.0"},{"last_affected":"3.14.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["HHVM-3.9.4","HHVM-3.12.3","HHVM-3.14.1","HHVM-3.14.0","HHVM-3.9.3","HHVM-3.12.2","HHVM-3.9.2","HHVM-3.12.1","HHVM-3.12.0","HHVM-3.9.1","HHVM-3.9.0","gcc-4.6","HPHP-2.1.0","src-hphp","pre-hhvm"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-1000005.json","vanir_signatures_modified":"2026-07-08T12:35:28Z","vanir_signatures":[{"digest":{"function_hash":"64500064046259609291717397332292338950","length":425},"id":"CVE-2016-1000005-04200a0b","signature_type":"Function","signature_version":"v1","source":"https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89","target":{"function":"HHVM_FUNCTION","file":"hphp/runtime/ext/mcrypt/ext_mcrypt.cpp"},"deprecated":false},{"id":"CVE-2016-1000005-6084a43c","signature_type":"Line","signature_version":"v1","source":"https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89","target":{"file":"hphp/runtime/ext/mcrypt/ext_mcrypt.cpp"},"deprecated":false,"digest":{"line_hashes":["87026040832317745855041171527704792232","279924988833681099971053949052623298758","105969874304274311105790846148292960903","176136619967898815079859140081076674304","59476319172812720354498708497727299511","70792175038306601956960709707102904808","77222761402014636704642207705208183060"],"threshold":0.9}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}