Critical
Security advisory
A use-after-free in the _zip_dirent_read function of zip_dirent.c in libzip 1.2.0 allows attackers to have an unspecified impact by attempting to unzip a malformed ZIP archive. NOTE: the discoverer states "This use-after-free is triggered prior to the double free reported in CVE-2017-12858."
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-17582
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:28 UTC · Revision 1
Source evidence
A use-after-free in the _zip_dirent_read function of zip_dirent.c in libzip 1.2.0 allows attackers to have an unspecified impact by attempting to unzip a malformed ZIP archive. NOTE: the discoverer states "This use-after-free is triggered prior to the double free reported in CVE-2017-12858."
osv:CVE-2019-17582
Complete source record
{
"id": "481ff3f51c07e85b1cee2f9d170a56ac5ed85c4e1cd028db66ede4d373ea881a",
"url": "https://osv.dev/vulnerability/CVE-2019-17582",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-17582",
"summary": "A use-after-free in the _zip_dirent_read function of zip_dirent.c in libzip 1.2.0 allows attackers to have an unspecified impact by attempting to unzip a malformed ZIP archive. NOTE: the discoverer states \"This use-after-free is triggered prior to the double free reported in CVE-2017-12858.\"",
"evidence": "osv:CVE-2019-17582",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2019-17582",
"aliases": [
"CVE-2019-17582"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nih-at/libzip",
"type": "GIT",
"events": [
{
"introduced": "a23ac8a766c556827255111eb35ba928641efbc8"
},
{
"last_affected": "a23ac8a766c556827255111eb35ba928641efbc8"
},
{
"fixed": "2217022b7d1142738656d891e00b3d2d9179b796"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libzip:libzip:1.2.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.2.0"
},
{
"last_affected": "1.2.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "2217022b7d1142738656d891e00b3d2d9179b796"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.2.0",
"rel-1-2-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-17582.json",
"vanir_signatures": [
{
"id": "CVE-2019-17582-11de36c1",
"digest": {
"length": 5237,
"function_hash": "247741707400283749085108019441784905923"
},
"source": "https://github.com/nih-at/libzip/commit/2217022b7d1142738656d891e00b3d2d9179b796",
"target": {
"file": "lib/zip_dirent.c",
"function": "_zip_dirent_read"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2019-17582-f2d51449",
"digest": {
"threshold": 0.9,
"line_hashes": [
"126407887668340329650951841643656814806",
"79489290485161336371396243068446216870",
"103867276804264513481566455227706953226",
"200745644596356662579889932048953027052",
"18703439355701899585658934728937768609",
"10360732491339512210894939584152610856"
]
},
"source": "https://github.com/nih-at/libzip/commit/2217022b7d1142738656d891e00b3d2d9179b796",
"target": {
"file": "lib/zip_dirent.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:40:57Z"
}
}
],
"modified": "2026-10-20T13:40:57.109915841Z",
"provider": "osv",
"references": [
"https://github.com/nih-at/libzip/issues/5",
"https://libzip.org/libzip-discuss/",
"https://github.com/nih-at/libzip/commit/2217022b7d1142738656d891e00b3d2d9179b796"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-17582",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387955,
"published_at": "2021-02-09T19:15:12.553+00:00"
}