Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-45960

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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-45960
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:23 UTC · Revision 1

Source evidence

CVE-2021-45960

core-osv · Original source

Published 1 Jan 2022, 19:15 UTC

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).

osv:CVE-2021-45960
Complete source record
{
  "id": "fce7c5426a1428923dee746342a9a604ba3bdf9702cfabfa2b5488a611ac8589",
  "url": "https://osv.dev/vulnerability/CVE-2021-45960",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-45960",
    "summary": "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).",
    "evidence": "osv:CVE-2021-45960",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-45960",
      "aliases": [
        "CVE-2021-45960"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libexpat/libexpat",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "57c7da69b78e3698e112a6b5da19d5109b8232d1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.4.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "R_2_4_2",
            "R_2_4_1",
            "R_2_4_0",
            "R_2_3_0",
            "R_2_2_10",
            "R_2_2_9",
            "R_2_2_8",
            "R_2_2_7",
            "R_2_2_6",
            "R_2_2_5",
            "R_2_2_4",
            "R_2_2_3",
            "R_2_2_2",
            "R_2_2_1",
            "R_2_2_0",
            "R_2_1_1",
            "R_2_1_0",
            "R_2_0_1",
            "R_2_0_0",
            "R_1_95_8",
            "R_1_95_7",
            "R_1_95_6",
            "R_1_95_5",
            "R_1_95_4",
            "R_1_95_3",
            "R_1_95_2",
            "R_1_95_0",
            "libexpat-alpha-1",
            "start",
            "sourceforge_init",
            "jclark-orig",
            "V20000512",
            "V19991013",
            "V19990728",
            "V19990709",
            "V19990626",
            "V1_1",
            "V19990425",
            "V1990307",
            "V19990109",
            "V19981231",
            "V19981122",
            "V1_0",
            "beta4",
            "beta3",
            "beta2",
            "REC1_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45960.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:12.520226945Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-484086.html",
        "https://security.gentoo.org/glsa/202209-24",
        "https://security.netapp.com/advisory/ntap-20220121-0004/",
        "https://www.tenable.com/security/tns-2022-05",
        "https://bugzilla.mozilla.org/show_bug.cgi?id=1217609",
        "https://www.debian.org/security/2022/dsa-5073",
        "https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf",
        "https://github.com/libexpat/libexpat/issues/531",
        "https://github.com/libexpat/libexpat/pull/534"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:siemens:sinema_remote_connect_server:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:sinema_remote_connect_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "3.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:tenable:nessus:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "tenable:nessus",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "8.15.3"
                  },
                  {
                    "introduced": "10.0.0"
                  },
                  {
                    "fixed": "10.1.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  },
                  {
                    "introduced": "11.0"
                  },
                  {
                    "last_affected": "11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:netapp:hci_baseboard_management_controller:h610c:*:*:*:*:*:*:*",
              "cpe:2.3:a:netapp:hci_baseboard_management_controller:h610s:*:*:*:*:*:*:*",
              "cpe:2.3:a:netapp:hci_baseboard_management_controller:h615c:*:*:*:*:*:*:*"
            ],
            "vendor_product": "netapp:hci_baseboard_management_controller",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "h610c"
                  },
                  {
                    "last_affected": "h610c"
                  },
                  {
                    "introduced": "h610s"
                  },
                  {
                    "last_affected": "h610s"
                  },
                  {
                    "introduced": "h615c"
                  },
                  {
                    "last_affected": "h615c"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45960",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384945,
  "published_at": "2022-01-01T19:15:08.03+00:00"
}