SecurityContext

CVE-2021-36977: matio - Buffer Overflow

  • Cve: CVE-2021-36977
  • Name: matio - Buffer Overflow
  • 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.
  • Impact: Successful exploitation can lead to arbitrary code execution or application crash, causing denial of service.
  • Remediation: Update to the latest version of matio or apply patches addressing this vulnerability.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide malicious HDF5 files
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.01496
  • Epss percentile: 0.74723
  • Assignee: [email protected]
  • Published at: 2021-07-20T07:15:07Z
  • Age in days: 1953
  • Modified at: 2026-06-17T03:59:45Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36977
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

References

Same in every row:

  • Source: nvd
UrlTags
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31265Patch, Third Party Advisory
https://github.com/google/oss-fuzz-vulns/commit/37b781ace1b4228fc36483bb7e30c72ea9d4c3d6Issue Tracking, Patch, Third Party Advisory
https://github.com/HDFGroup/hdf5/issues/272Issue Tracking, Third Party Advisory
https://github.com/google/oss-fuzz-vulns/blob/main/vulns/matio/OSV-2021-440.yamlThird Party Advisory
https://github.com/google/oss-fuzz/issues/4999Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
matio_project:matio= 1.5.21, = 1.5.20nonvd/v1/products/matio_project/matio

Projects

RepositoryLink kindsIndexedUrl
HDFGroup/hdf5issuesyes/v1/repositories/HDFGroup/hdf5
google/oss-fuzzissuesyes/v1/repositories/google/oss-fuzz

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts