# CVE-2021-36977: matio (aka MAT File I/O Library) 1.5.20 and 1.5.21 has a heap-based buffer overflow in H5MMmemcpy (called from H5MMmalloc and H5Cloadentry)…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.50%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-07-20T06:48:51.000Z
- Modified: 2026-06-17T03:59:45.510Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

matio (aka MAT File I/O Library) 1.5.20 and 1.5.21 has a heap-based buffer overflow in H5MM_memcpy (called from H5MM_malloc and H5C_load_entry), related to use of HDF5 1.12.0.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- matio_project matio: 1.5.20; 1.5.21

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/matio/OSV-2021-440.yaml> (third-party-advisory)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31265> (patch, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/commit/37b781ace1b4228fc36483bb7e30c72ea9d4c3d6> (issue-tracking, patch, third-party-advisory)
- <https://github.com/HDFGroup/hdf5/issues/272> (issue-tracking, third-party-advisory)
- <https://github.com/google/oss-fuzz/issues/4999> (issue-tracking, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-36977 · Whole record: https://cve.day/CVE-2021-36977.json · Rebuilt by cve.day 2026-11-25T22:58:02.738Z
