Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-19221

In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-19221
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:32 UTC · Revision 1

Source evidence

CVE-2019-19221

core-osv · Original source

Published 21 Nov 2019, 23:15 UTC

In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.

osv:CVE-2019-19221
Complete source record
{
  "id": "ceca97dfbfd4020b65b83090daa2fff4efbdded3849cb957d2e86b4c8853f786",
  "url": "https://osv.dev/vulnerability/CVE-2019-19221",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-19221",
    "summary": "In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.",
    "evidence": "osv:CVE-2019-19221",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-19221",
      "aliases": [
        "CVE-2019-19221"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libarchive/libarchive",
              "type": "GIT",
              "events": [
                {
                  "introduced": "614110e76d9dbb9ed3e159a71cbd75fa3b23efe3"
                },
                {
                  "last_affected": "614110e76d9dbb9ed3e159a71cbd75fa3b23efe3"
                },
                {
                  "fixed": "22b1db9d46654afc6f0c28f90af8cdc84a199f41"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libarchive:libarchive:3.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "last_affected": "3.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "22b1db9d46654afc6f0c28f90af8cdc84a199f41"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.4.0",
            "v3.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19221.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-19221-5e805d5f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "259493752926620651709142349362849276195",
                    "230785914983052223447961732927117151371",
                    "12217636447501291062302553513055680385",
                    "62405126494858429610787578500845061231",
                    "179463854991740435999144472805357298736",
                    "68272709789547205234125986453360853951",
                    "162410301725275465914806499663084049292",
                    "39164957372088187268497416633378961709",
                    "202682923871852641868733101080295891962",
                    "301086400055508873109432046317611991735",
                    "74546993610714974430143180538446038077",
                    "61386143541752768976266999255212136357",
                    "304739343456208653730853587197886130232",
                    "69163275847624257713894847667530878779",
                    "317680709258419472989675329879033315216",
                    "194390456970727352281349517689519873402",
                    "337761648969299792289380367460237055379",
                    "245645095900971998780157229976002940083",
                    "313689221747533615139444426067652867707",
                    "71839374558949873560356293840298277327",
                    "324202677020325561218158605561092244799",
                    "36678885239641828656854822239115902921",
                    "63456052592772401547364162085691945315",
                    "208068655965959195053039668998724809446",
                    "321372824576092357600368061492307768572",
                    "115861186337743141515360542569469183063",
                    "291243398602166245106447150619205573687",
                    "323333371442874016294651402000641868572",
                    "247288520912191146938119320438545084272",
                    "113231134948946292219430299831050015683",
                    "214748447455728673716737136207566695935",
                    "194097180572846545798744625891833564381",
                    "119524074472370788340214959067133643311"
                  ]
                },
                "source": "https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41",
                "target": {
                  "file": "libarchive/archive_string.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-19221-b74e4aa8",
                "digest": {
                  "length": 1063,
                  "function_hash": "15941912786800880371649172928636517809"
                },
                "source": "https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41",
                "target": {
                  "file": "libarchive/archive_string.c",
                  "function": "archive_wstring_append_from_mbs"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:46:43Z"
          }
        }
      ],
      "modified": "2026-10-20T13:46:43.194660382Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHFV25AVTASTWZRF3KTSL357AQ6TYHM4/",
        "https://lists.debian.org/debian-lts-announce/2022/04/msg00020.html",
        "https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html",
        "https://github.com/libarchive/libarchive/issues/1276",
        "https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41",
        "https://usn.ubuntu.com/4293-1/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "19.10"
                  },
                  {
                    "last_affected": "19.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  },
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-19221",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388231,
  "published_at": "2019-11-21T23:15:13.887+00:00"
}