{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-21674.json"
      }
    ],
    "title": "libarchive: heap-based buffer overflow in archive_string_append_from_wcs function in archive_string.c",
    "tracking": {
      "current_release_date": "2026-11-23T17:32:11+00:00",
      "generator": {
        "date": "2026-11-23T17:32:11+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.8"
        }
      },
      "id": "CVE-2020-21674",
      "initial_release_date": "2020-01-01T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2020-01-01T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-02-02T07:28:08.904337+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-23T17:32:11+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 6",
                "product": {
                  "name": "Red Hat Enterprise Linux 6",
                  "product_id": "red_hat_enterprise_linux_6",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:6"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 6"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "category": "product_version",
            "name": "libarchive",
            "product": {
              "name": "libarchive",
              "product_id": "libarchive",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/libarchive"
              }
            }
          },
          {
            "category": "product_version",
            "name": "libarchive.src",
            "product": {
              "name": "libarchive.src",
              "product_id": "libarchive.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/libarchive?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "libarchive-devel",
            "product": {
              "name": "libarchive-devel",
              "product_id": "libarchive-devel",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/libarchive-devel"
              }
            }
          },
          {
            "category": "product_version",
            "name": "bsdcpio",
            "product": {
              "name": "bsdcpio",
              "product_id": "bsdcpio",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/bsdcpio"
              }
            }
          },
          {
            "category": "product_version",
            "name": "bsdtar",
            "product": {
              "name": "bsdtar",
              "product_id": "bsdtar",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/bsdtar"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:libarchive"
        },
        "product_reference": "libarchive",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive-devel as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:libarchive-devel"
        },
        "product_reference": "libarchive-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive.src as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:libarchive.src"
        },
        "product_reference": "libarchive.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bsdcpio as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:bsdcpio"
        },
        "product_reference": "bsdcpio",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bsdtar as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:bsdtar"
        },
        "product_reference": "bsdtar",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:libarchive"
        },
        "product_reference": "libarchive",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive-devel as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:libarchive-devel"
        },
        "product_reference": "libarchive-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:libarchive.src"
        },
        "product_reference": "libarchive.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "bsdtar as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:bsdtar"
        },
        "product_reference": "bsdtar",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:libarchive"
        },
        "product_reference": "libarchive",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive-devel as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:libarchive-devel"
        },
        "product_reference": "libarchive-devel",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libarchive.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:libarchive.src"
        },
        "product_reference": "libarchive.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2020-21674",
      "cwe": {
        "id": "CWE-787",
        "name": "Out-of-bounds Write"
      },
      "discovery_date": "2020-10-15T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_enterprise_linux_8:bsdtar",
            "red_hat_enterprise_linux_8:libarchive",
            "red_hat_enterprise_linux_8:libarchive-devel",
            "red_hat_enterprise_linux_8:libarchive.src"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1888786"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "Heap-based buffer overflow in archive_string_append_from_wcs() (archive_string.c) in libarchive-3.4.1dev allows remote attackers to cause a denial of service (out-of-bounds write in heap memory resulting into a crash) via a crafted archive file. NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "libarchive: heap-based buffer overflow in archive_string_append_from_wcs function in archive_string.c",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "Red Hat Product Security has set the Severity of this flaw to Low for libarchive as shipped with Red Hat Enterprise Linux 8 because we could not reproduce the issue and it states \"NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.\"\n\nThis flaw is out of support scope for libarchive as shipped with Red Hat Enterprise Linux 6 and 7.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_affected": [
          "red_hat_enterprise_linux_6:libarchive",
          "red_hat_enterprise_linux_6:libarchive-devel",
          "red_hat_enterprise_linux_6:libarchive.src",
          "red_hat_enterprise_linux_7:bsdcpio",
          "red_hat_enterprise_linux_7:bsdtar",
          "red_hat_enterprise_linux_7:libarchive",
          "red_hat_enterprise_linux_7:libarchive-devel",
          "red_hat_enterprise_linux_7:libarchive.src"
        ],
        "known_not_affected": [
          "red_hat_enterprise_linux_8:bsdtar",
          "red_hat_enterprise_linux_8:libarchive",
          "red_hat_enterprise_linux_8:libarchive-devel",
          "red_hat_enterprise_linux_8:libarchive.src"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2020-21674"
        },
        {
          "category": "external",
          "summary": "RHBZ#1888786",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1888786"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2020-21674",
          "url": "https://www.cve.org/CVERecord?id=CVE-2020-21674"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2020-21674",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-21674"
        }
      ],
      "release_date": "2019-12-28T00:00:00+00:00",
      "remediations": [
        {
          "category": "no_fix_planned",
          "details": "Out of support scope",
          "product_ids": [
            "red_hat_enterprise_linux_6:libarchive",
            "red_hat_enterprise_linux_6:libarchive-devel",
            "red_hat_enterprise_linux_6:libarchive.src",
            "red_hat_enterprise_linux_7:bsdcpio",
            "red_hat_enterprise_linux_7:bsdtar",
            "red_hat_enterprise_linux_7:libarchive",
            "red_hat_enterprise_linux_7:libarchive-devel",
            "red_hat_enterprise_linux_7:libarchive.src"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "red_hat_enterprise_linux_6:libarchive",
            "red_hat_enterprise_linux_6:libarchive-devel",
            "red_hat_enterprise_linux_6:libarchive.src",
            "red_hat_enterprise_linux_7:bsdcpio",
            "red_hat_enterprise_linux_7:bsdtar",
            "red_hat_enterprise_linux_7:libarchive",
            "red_hat_enterprise_linux_7:libarchive-devel",
            "red_hat_enterprise_linux_7:libarchive.src",
            "red_hat_enterprise_linux_8:bsdtar",
            "red_hat_enterprise_linux_8:libarchive",
            "red_hat_enterprise_linux_8:libarchive-devel",
            "red_hat_enterprise_linux_8:libarchive.src"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_enterprise_linux_6:libarchive",
            "red_hat_enterprise_linux_6:libarchive-devel",
            "red_hat_enterprise_linux_6:libarchive.src",
            "red_hat_enterprise_linux_7:bsdcpio",
            "red_hat_enterprise_linux_7:bsdtar",
            "red_hat_enterprise_linux_7:libarchive",
            "red_hat_enterprise_linux_7:libarchive-devel",
            "red_hat_enterprise_linux_7:libarchive.src"
          ]
        },
        {
          "category": "impact",
          "details": "Low",
          "product_ids": [
            "red_hat_enterprise_linux_8:bsdtar",
            "red_hat_enterprise_linux_8:libarchive",
            "red_hat_enterprise_linux_8:libarchive-devel",
            "red_hat_enterprise_linux_8:libarchive.src"
          ]
        }
      ],
      "title": "libarchive: heap-based buffer overflow in archive_string_append_from_wcs function in archive_string.c"
    }
  ]
}