{"id":"CVE-2016-1000004","details":"Insufficient type checks were employed prior to casting input data in SimpleXMLElement_exportNode and simplexml_import_dom. 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:33.984567Z","published":"2020-02-19T13:15:10.760Z","references":[{"type":"ADVISORY","url":"https://www.facebook.com/security/advisories/cve-2016-1000004"},{"type":"FIX","url":"https://github.com/facebook/hhvm/commit/8e7266fef1f329b805b37f32c9ad0090215ab269"}],"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":"8e7266fef1f329b805b37f32c9ad0090215ab269"}],"database_specific":{"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"],"cpe":"cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*"}}],"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-1000004.json","vanir_signatures_modified":"2026-07-08T12:35:33Z","vanir_signatures":[{"id":"CVE-2016-1000004-7e68cc5a","signature_type":"Function","signature_version":"v1","source":"https://github.com/facebook/hhvm/commit/8e7266fef1f329b805b37f32c9ad0090215ab269","target":{"file":"hphp/runtime/ext/simplexml/ext_simplexml.cpp","function":"SimpleXMLElement_exportNode"},"deprecated":false,"digest":{"function_hash":"284111172822097489879350956689906283064","length":208}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/facebook/hhvm/commit/8e7266fef1f329b805b37f32c9ad0090215ab269","target":{"file":"hphp/runtime/ext/simplexml/ext_simplexml.cpp"},"deprecated":false,"digest":{"line_hashes":["55765914228621558646643659540904023927","243835335827319018911730436790814189705","79200780020579073968261204415201624069","278751480322904910959016944884515555258","198200089604599280099251079262852164476","68225021353284281926992865200273145178","40146257546414192642961160745671104275","87266853421619007164937883201537336780","211421453706724789124054905841163514856","152257111440568270577492985775885413759"],"threshold":0.9},"id":"CVE-2016-1000004-d2f0dcbc"},{"source":"https://github.com/facebook/hhvm/commit/8e7266fef1f329b805b37f32c9ad0090215ab269","target":{"function":"HHVM_FUNCTION","file":"hphp/runtime/ext/simplexml/ext_simplexml.cpp"},"deprecated":false,"digest":{"function_hash":"96267759177677574329934507567798237337","length":831},"id":"CVE-2016-1000004-e0136018","signature_type":"Function","signature_version":"v1"}]}}],"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"}]}