# CVE-2020-1918: In-memory file operations (ie: using fopen on a data URI) did not properly restrict negative seeking, allowing for the reading of memory pr…

- 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-02)
- Published: 2021-03-10T15:50:28.000Z
- Modified: 2026-06-17T03:02:36.797Z
- Weaknesses: CWE-125, CWE-127
- Assigned by: facebook

## Description

In-memory file operations (ie: using fopen on a data URI) did not properly restrict negative seeking, allowing for the reading of memory prior to the in-memory buffer. This issue affects HHVM versions prior to 4.56.3, all versions between 4.57.0 and 4.80.1, all versions between 4.81.0 and 4.93.1, and versions 4.94.0, 4.95.0, 4.96.0, 4.97.0, 4.98.0.

(As written by CVE List.)

## Affected

- Facebook HHVM: 4.98.0; 4.97.0; 4.96.0; 4.95.0; 4.94.0; from 4.81.0 before unspecified; from 4.57.0 before unspecified; from unspecified before 4.56.3; before 4.56.3; from 4.57.0 before 4.80.2; from 4.81.0 before 4.93.2 (not affected: from 4.98.1 before unspecified; from 4.97.1 before unspecified; from 4.96.1 before unspecified; from 4.95.1 before unspecified; from 4.94.1 before unspecified; from 4.93.2 before unspecified; from 4.80.2 before unspecified; from 4.56.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/2021/02/25/security-update.html> (release-notes, vendor-advisory)
- <https://github.com/facebook/hhvm/commit/08193b7f0cd3910256e00d599f0f3eb2519c44ca> (patch, third-party-advisory)

## Sources

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

---

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