# CVE-2020-1899: The unserialize() function supported a type code, "S", which was meant to be supported only for APC serialization.

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

## Description

The unserialize() function supported a type code, "S", which was meant to be supported only for APC serialization. This type code allowed arbitrary memory addresses to be accessed as if they were static StringData objects. 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:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

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

## Sources

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

---

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