{"id":"CVE-2020-1916","state":"PUBLISHED","title":"An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write. This issue affects HHVM prior","description":"An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write. This issue affects HHVM prior to 4.56.2, all versions between 4.57.0 and 4.78.0, 4.79.0, 4.80.0, 4.81.0, 4.82.0, 4.83.0.","publishedAt":"2021-03-10T15:50:27.000Z","updatedAt":"2024-08-04T06:54:00.370Z","severity":null,"assigner":"facebook","products":["Facebook HHVM"],"affected":[{"vendor":"Facebook","product":"HHVM","versions":[{"version":"4.83.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.83.0","status":"affected"},{"version":"4.82.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.82.0","status":"affected"},{"version":"4.81.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.81.0","status":"affected"},{"version":"4.80.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.80.0","status":"affected"},{"version":"4.79.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.79.0","status":"affected"},{"version":"4.78.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.57.0","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"4.56.2","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThan":"4.56.2","versionType":"custom"}]}],"references":["https://hhvm.com/blog/2020/11/12/security-update.html","https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T19:46:49.649Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/1xxx/CVE-2020-1916.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-1916","state":"PUBLISHED","datePublished":"2021-03-10T15:50:27.000Z","dateUpdated":"2024-08-04T06:54:00.370Z","assignerShortName":"facebook","assignerOrgId":"4fc57720-52fe-4431-a0fb-3d2c8747b827","dateReserved":"2019-12-02T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write. This issue affects HHVM prior to 4.56.2, all versions between 4.57.0 and 4.78.0, 4.79.0, 4.80.0, 4.81.0, 4.82.0, 4.83.0."}],"affected":[{"vendor":"Facebook","product":"HHVM","versions":[{"version":"4.83.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.83.0","status":"affected"},{"version":"4.82.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.82.0","status":"affected"},{"version":"4.81.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.81.0","status":"affected"},{"version":"4.80.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.80.0","status":"affected"},{"version":"4.79.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.79.0","status":"affected"},{"version":"4.78.1","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"4.57.0","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"4.56.2","status":"unaffected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThan":"4.56.2","versionType":"custom"}]}],"references":[{"url":"https://hhvm.com/blog/2020/11/12/security-update.html","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","description":"Heap-based Buffer Overflow (CWE-122)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"facebook","dateUpdated":"2021-03-10T15:50:27.000Z","orgId":"4fc57720-52fe-4431-a0fb-3d2c8747b827"},"dateAssigned":"2020-10-30T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve-assign@fb.com","DATE_ASSIGNED":"2020-10-30","ID":"CVE-2020-1916","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"HHVM","version":{"version_data":[{"version_affected":"!>=","version_value":"4.83.1"},{"version_affected":"=","version_value":"4.83.0"},{"version_affected":"!>=","version_value":"4.82.1"},{"version_affected":"=","version_value":"4.82.0"},{"version_affected":"!>=","version_value":"4.81.1"},{"version_affected":"=","version_value":"4.81.0"},{"version_affected":"!>=","version_value":"4.80.1"},{"version_affected":"=","version_value":"4.80.0"},{"version_affected":"!>=","version_value":"4.79.1"},{"version_affected":"=","version_value":"4.79.0"},{"version_affected":"!>=","version_value":"4.78.1"},{"version_affected":">=","version_value":"4.57.0"},{"version_affected":"!>=","version_value":"4.56.2"},{"version_affected":"<","version_value":"4.56.2"}]}}]},"vendor_name":"Facebook"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write. This issue affects HHVM prior to 4.56.2, all versions between 4.57.0 and 4.78.0, 4.79.0, 4.80.0, 4.81.0, 4.82.0, 4.83.0."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Heap-based Buffer Overflow (CWE-122)"}]}]},"references":{"reference_data":[{"name":"https://hhvm.com/blog/2020/11/12/security-update.html","refsource":"CONFIRM","url":"https://hhvm.com/blog/2020/11/12/security-update.html"},{"name":"https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4","refsource":"MISC","url":"https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hhvm.com/blog/2020/11/12/security-update.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T06:54:00.370Z"}}]}}}