{"id":"CVE-2021-45960","state":"PUBLISHED","title":"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, o","description":"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).","publishedAt":"2022-01-01T18:47:46.000Z","updatedAt":"2026-10-14T12:03:11.369Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/libexpat/libexpat/issues/531","https://github.com/libexpat/libexpat/pull/534","https://bugzilla.mozilla.org/show_bug.cgi?id=1217609","http://www.openwall.com/lists/oss-security/2022/01/17/3","https://security.netapp.com/advisory/ntap-20220121-0004/","https://www.tenable.com/security/tns-2022-05","https://www.debian.org/security/2022/dsa-5073","https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf","https://security.gentoo.org/glsa/202209-24","https://cert-portal.siemens.com/productcert/html/ssa-484086.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-682"],"ingestedAt":"2026-10-29T19:49:13.309Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/45xxx/CVE-2021-45960.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-45960","state":"PUBLISHED","datePublished":"2022-01-01T18:47:46.000Z","dateUpdated":"2026-10-14T12:03:11.369Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2022-01-01T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/libexpat/libexpat/issues/531","tags":["x_refsource_MISC"]},{"url":"https://github.com/libexpat/libexpat/pull/534","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1217609","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/17/3","name":"[oss-security] 20220117 Expat 2.4.3 released, includes 8 security fixes","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0004/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.tenable.com/security/tns-2022-05","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2022/dsa-5073","name":"DSA-5073","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/202209-24","name":"GLSA-202209-24","tags":["vendor-advisory","x_refsource_GENTOO"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2022-09-29T16:07:13.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-45960","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/libexpat/libexpat/issues/531","refsource":"MISC","url":"https://github.com/libexpat/libexpat/issues/531"},{"name":"https://github.com/libexpat/libexpat/pull/534","refsource":"MISC","url":"https://github.com/libexpat/libexpat/pull/534"},{"name":"https://bugzilla.mozilla.org/show_bug.cgi?id=1217609","refsource":"MISC","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1217609"},{"name":"[oss-security] 20220117 Expat 2.4.3 released, includes 8 security fixes","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2022/01/17/3"},{"name":"https://security.netapp.com/advisory/ntap-20220121-0004/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20220121-0004/"},{"name":"https://www.tenable.com/security/tns-2022-05","refsource":"CONFIRM","url":"https://www.tenable.com/security/tns-2022-05"},{"name":"DSA-5073","refsource":"DEBIAN","url":"https://www.debian.org/security/2022/dsa-5073"},{"name":"https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf","refsource":"CONFIRM","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf"},{"name":"GLSA-202209-24","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202209-24"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/libexpat/libexpat/issues/531","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/libexpat/libexpat/pull/534","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1217609","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/17/3","name":"[oss-security] 20220117 Expat 2.4.3 released, includes 8 security fixes","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0004/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.tenable.com/security/tns-2022-05","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5073","name":"DSA-5073","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202209-24","name":"GLSA-202209-24","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T04:54:31.123Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.8,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-04-23T13:29:38.168960Z","id":"CVE-2021-45960","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-682","type":"CWE","lang":"en","description":"CWE-682 Incorrect Calculation"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-05T16:45:11.487Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-484086.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T12:03:11.369Z"},"x_adpType":"supplier"}]}}}