Critical
Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-1000005
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
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).
osv:CVE-2016-1000005
Complete source record
{
"id": "fb9519a796f2e9456802a62d84393597ee20948347a66985a354ff21e3550f53",
"url": "https://osv.dev/vulnerability/CVE-2016-1000005",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-1000005",
"summary": "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).",
"evidence": "osv:CVE-2016-1000005",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2016-1000005",
"aliases": [
"CVE-2016-1000005"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/facebook/hhvm",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "03ebc848ba9bdf96204bbbaeb7b87f85c8dee79f"
},
{
"introduced": "ef7496ae03728143cce4d620ef8ce10db1128d6c"
},
{
"last_affected": "2b2ae0076c30ad9e07a0f37bf86798c530756515"
},
{
"introduced": "5b0e52b83f1dc0aa0c1dfe3a5687995c9693f5a6"
},
{
"last_affected": "d99b370804b7e0234ab794869d1ba1774c848e85"
},
{
"fixed": "39e7e177473350b3a5c34e8824af3b98e25efa89"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.9.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.10.0"
},
{
"last_affected": "3.12.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.13.0"
},
{
"last_affected": "3.14.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "39e7e177473350b3a5c34e8824af3b98e25efa89"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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": [
{
"id": "CVE-2016-1000005-04200a0b",
"digest": {
"length": 425,
"function_hash": "64500064046259609291717397332292338950"
},
"source": "https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89",
"target": {
"file": "hphp/runtime/ext/mcrypt/ext_mcrypt.cpp",
"function": "HHVM_FUNCTION"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000005-6084a43c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"87026040832317745855041171527704792232",
"279924988833681099971053949052623298758",
"105969874304274311105790846148292960903",
"176136619967898815079859140081076674304",
"59476319172812720354498708497727299511",
"70792175038306601956960709707102904808",
"77222761402014636704642207705208183060"
]
},
"source": "https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89",
"target": {
"file": "hphp/runtime/ext/mcrypt/ext_mcrypt.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:13:23Z"
}
}
],
"modified": "2026-10-20T13:13:23.468637099Z",
"provider": "osv",
"references": [
"https://www.facebook.com/security/advisories/cve-2016-1000005",
"https://github.com/facebook/hhvm/commit/39e7e177473350b3a5c34e8824af3b98e25efa89"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-1000005",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387325,
"published_at": "2020-02-19T13:15:10.837+00:00"
}