{"id":"CVE-2021-45960","details":"In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).","modified":"2026-04-02T07:36:45.580421Z","published":"2022-01-01T19:15:08.030Z","related":["ALSA-2022:0951","MGASA-2022-0031","SUSE-SU-2022:0178-1","SUSE-SU-2022:0179-1","SUSE-SU-2022:14878-1","openSUSE-SU-2022:0178-1","openSUSE-SU-2024:11762-1"],"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-24"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220121-0004/"},{"type":"ADVISORY","url":"https://www.tenable.com/security/tns-2022-05"},{"type":"REPORT","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1217609"},{"type":"REPORT","url":"https://www.debian.org/security/2022/dsa-5073"},{"type":"FIX","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/issues/531"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/534"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2022/01/17/3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libexpat/libexpat","events":[{"introduced":"0"},{"fixed":"57c7da69b78e3698e112a6b5da19d5109b8232d1"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.4.3"}]}}],"versions":["REC1_0","R_1_95_0","R_1_95_2","R_1_95_3","R_1_95_4","R_1_95_5","R_1_95_6","R_1_95_7","R_1_95_8","R_2_0_0","R_2_0_1","R_2_1_0","R_2_1_1","R_2_2_0","R_2_2_1","R_2_2_10","R_2_2_2","R_2_2_3","R_2_2_4","R_2_2_5","R_2_2_6","R_2_2_7","R_2_2_8","R_2_2_9","R_2_3_0","R_2_4_0","R_2_4_1","R_2_4_2","V1990307","V19981122","V19981231","V19990109","V19990425","V19990626","V19990709","V19990728","V19991013","V1_0","V1_1","V20000512","beta2","beta3","beta4","jclark-orig","libexpat-alpha-1","sourceforge_init","start"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"8.15.3"}]},{"events":[{"introduced":"10.0.0"},{"fixed":"10.1.1"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]},{"events":[{"introduced":"0"},{"last_affected":"11.0"}]},{"events":[{"introduced":"0"},{"fixed":"3.1"}]},{"events":[{"introduced":"0"},{"last_affected":"h610c"}]},{"events":[{"introduced":"0"},{"last_affected":"h610s"}]},{"events":[{"introduced":"0"},{"last_affected":"h615c"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45960.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}