{"id":"CVE-2021-36977","aliases":["EUVD-2021-23553","GHSA-jc5x-q9q8-4xhc","MGASA-2022-0465","UBUNTU-CVE-2021-36977","openSUSE-SU-2022:10235-1"],"status":"published","title":"matio (aka MAT File I/O Library) 1.5.20 and 1.5.21 has a heap-based buffer overflow in...","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01496,"percentile":0.74532,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-787"],"published":"2021-07-20T06:48:51Z","modified":"2026-10-24T10:50:09Z","affected":[{"source":"osv","ecosystem":"Mageia:8","package":"matio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.23-1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"libmatio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.19-2","1.5.21-1","1.5.21-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP4","package":"matio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.23-bp154.2.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"matio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.23-bp154.2.3.1"}]}],"bundled":2}],"products":[{"vendor":"matio_project","product":"matio"}],"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/matio/OSV-2021-440.yaml","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31265","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/google/oss-fuzz-vulns/commit/37b781ace1b4228fc36483bb7e30c72ea9d4c3d6","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/HDFGroup/hdf5/issues/272","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/google/oss-fuzz/issues/4999","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36977"},{"url":"https://github.com/advisories/GHSA-jc5x-q9q8-4xhc"},{"url":"https://advisories.mageia.org/MGASA-2022-0465.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31246","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DWEPRACQNMJHSGWUZQ5LKNVGWSZ6FMCB/","tags":["web","advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-36977","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-36977","tags":["report"]},{"url":"https://bugzilla.suse.com/1193873","tags":["report"]},{"url":"https://bugzilla.suse.com/1193874","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2020-36428","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-36977","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-36977","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.","status":"published","published":"2021-07-20T06:48:51Z","modified":"2024-08-04T01:09:07.663Z","updated_at":"2026-11-02T14:33:05.989686Z"}],"euvd":[{"id":"EUVD-2021-23553","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.","status":"published","published":"2021-07-20T06:48:51Z","modified":"2024-08-04T01:09:07Z","updated_at":"2026-11-03T03:24:28.884961Z"}],"ghsa":[{"id":"GHSA-jc5x-q9q8-4xhc","title":"matio (aka MAT File I/O Library) 1.5.20 and 1.5.21 has a heap-based buffer overflow in...","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).","status":"published","published":"2022-05-24T19:08:29Z","modified":"2023-01-30T05:00:52Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:46:17.249643Z"}],"nvd":[{"id":"CVE-2021-36977","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.","status":"published","published":"2021-07-20T07:15:07.993Z","modified":"2026-06-17T03:59:45.51Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:56.185362Z"}],"osv":[{"id":"CVE-2021-36977","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.","status":"published","published":"2021-07-20T07:15:07.993Z","modified":"2026-10-24T10:50:09.251945612Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"UBUNTU-CVE-2021-36977","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.","status":"published","published":"2021-07-20T07:15:00Z","modified":"2026-04-22T12:57:50.469866Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"MGASA-2022-0465","title":"Updated matio packages fix security vulnerability","description":"matio (aka MAT File I/O Library) 1.5.18 through 1.5.21 has a heap-based\nbuffer overflow in ReadInt32DataDouble (called from ReadInt32Data and\nMat_VarRead4). (CVE-2020-36428)\n\nmatio (aka MAT File I/O Library) 1.5.20 and 1.5.21 has a heap-based\nbuffer overflow in H5MM_memcpy (called from H5MM_malloc and\nH5C_load_entry), related to use of HDF5 1.12.0. (CVE-2021-36977)\n","status":"published","published":"2022-12-13T22:09:19Z","modified":"2026-04-16T04:43:52.831866124Z","updated_at":"2026-11-02T15:49:42.263076Z"},{"id":"openSUSE-SU-2022:10235-1","title":"Security update for matio","description":"This update for matio fixes the following issues:\n\nUpdate to version 1.5.23:\n\n  * Fixed testsuite regression from version 1.5.22.\n\nChanges from version 1.5.22:\n\n* Added support for reading large MAT file.\n* Updated cmake-conan to version 0.17.0.\n* Fixed CMake build with Conan (MATIO_USE_CONAN:BOOL=ON).\n* Fixed data type when reading 16-bit character data from HDF5\n  MAT file.\n* Fixed heap-based buffer overflows when reading (crafted) MAT\n  file (CVE-2020-36428, CVE-2021-36977).\n* Confirmed compatibility with HDF5 v1.13.0 and v1.13.1.\n* Several other fixes, for example for memory leaks.\n","status":"published","published":"2022-12-07T23:02:53Z","modified":"2026-02-04T02:53:48.677818Z","updated_at":"2026-11-02T16:58:32.653274Z"}]}}
