# CVE-2020-1898: The fbunserialize function did not impose a depth limit for nested deserialization.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-03-11T00:55:18.000Z
- Modified: 2026-06-17T03:02:34.650Z
- Weaknesses: CWE-674
- Assigned by: facebook

## Description

The fb_unserialize function did not impose a depth limit for nested deserialization. That meant a maliciously constructed string could cause deserialization to recurse, leading to stack exhaustion. This issue affected HHVM prior to v4.32.3, between versions 4.33.0 and 4.56.0, 4.57.0, 4.58.0, 4.58.1, 4.59.0, 4.60.0, 4.61.0, 4.62.0.

(As written by CVE List.)

## Affected

- Facebook HHVM: 4.62.0; 4.61.0; 4.60.0; 4.59.0; from 4.58.0 before unspecified; 4.57.0; from 4.33.0 before unspecified; from unspecified before 4.32.3; before 4.32.3; from 4.33.0 before 4.56.1; 4.58.0; 4.58.1 (not affected: from 4.62.1 before unspecified; from 4.61.1 before unspecified; from 4.60.1 before unspecified; from 4.59.1 before unspecified; from 4.58.2 before unspecified; from 4.57.1 before unspecified; from 4.56.1 before unspecified; from 4.32.3 before unspecified)

## Every score

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

## References

- <https://hhvm.com/blog/2020/06/30/security-update.html> (vendor-advisory)
- <https://github.com/facebook/hhvm/commit/1746dfb11fc0048366f34669e74318b8278a684c> (patch, third-party-advisory)

## Sources

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

---

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