# CVE-2020-1916: An incorrect size calculation in ldapescape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bou…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.38%, higher than 73% of CVEs (2026-12-02)
- Published: 2021-03-10T15:50:27.000Z
- Modified: 2026-06-17T03:02:36.563Z
- Weaknesses: CWE-122, CWE-787
- Assigned by: facebook

## 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.

(As written by CVE List.)

## Affected

- Facebook HHVM: 4.83.0; 4.82.0; 4.81.0; 4.80.0; 4.79.0; from 4.57.0 before unspecified; from unspecified before 4.56.2; before 4.56.2; from 4.57.0 before 4.78.1 (not affected: from 4.83.1 before unspecified; from 4.82.1 before unspecified; from 4.81.1 before unspecified; from 4.80.1 before unspecified; from 4.79.1 before unspecified; from 4.78.1 before unspecified; from 4.56.2 before unspecified)

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://hhvm.com/blog/2020/11/12/security-update.html> (release-notes, vendor-advisory)
- <https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-1916](https://www.cve.org/CVERecord?id=CVE-2020-1916), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-1916](https://nvd.nist.gov/vuln/detail/CVE-2020-1916), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-1916 · Whole record: https://cve.day/CVE-2020-1916.json · Rebuilt by cve.day 2026-11-25T22:57:57.547Z
