yara — security advisory
An invalid pointer release vulnerability exists in YARA 4.5.8 during deserialization of compiled .yrc rule files. The vulnerability is caused by insufficient validation of external-variable pointers, which may lead to invalid free in yr_rules_destroy() or wild pointer access in yr_object_create(). An attacker can provide a specially crafted .yrc file that causes memory corruption and application crash.
- Products
- yara
- Affected versions
- 3.4.0+dfsg-2, 3.4.0+dfsg-2build1, 3.4.0+dfsg-2ubuntu0.1~esm1, 3.6.3+dfsg-1ubuntu1, 3.7.1-1ubuntu1, 3.7.1-1ubuntu2, 3.7.1-1ubuntu2+esm1, 3.9.0-1, 3.9.0-1ubuntu0.1~esm1, 4.1.0-1, 4.1.3-1, 4.1.3-1build1, 4.1.3-1ubuntu0.1~esm1, 4.3.2-1, 4.4.0-1, 4.5.0-1, 4.5.0-1build1, 4.5.0-1build2, 4.5.4-1, 4.5.5-1, 4.5.7-1, 4.5.8-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-88340
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:30 UTC · Revision 1
Source evidence
An invalid pointer release vulnerability exists in YARA 4.5.8 during deserialization of compiled .yrc rule files. The vulnerability is caused by insufficient validation of external-variable pointers, which may lead to invalid free in yr_rules_destroy() or wild pointer access in yr_object_create(). An attacker can provide a specially crafted .yrc file that causes memory corruption and application crash.
osv:UBUNTU-CVE-2026-88340
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
yara
Fixed versions: Not specified
Complete source record
{
"id": "336aa7114416a5b4d286ab0e87500e8738cfea6ae56e4a143e588b4a4e33b1af",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-88340",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-88340",
"summary": "An invalid pointer release vulnerability exists in YARA 4.5.8 during deserialization of compiled .yrc rule files. The vulnerability is caused by insufficient validation of external-variable pointers, which may lead to invalid free in yr_rules_destroy() or wild pointer access in yr_object_create(). An attacker can provide a specially crafted .yrc file that causes memory corruption and application crash.",
"evidence": "osv:UBUNTU-CVE-2026-88340",
"products": [
{
"name": {
"value": "yara",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.4.0+dfsg-2build1",
"evidence": "/affected/0/versions"
},
{
"value": "3.4.0+dfsg-2ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.6.3+dfsg-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.1-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.1-1ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.1-1ubuntu2+esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.9.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "3.9.0-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.1.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.1.3-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.1.3-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.1.3-1ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.3.2-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.4.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.5.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.5.0-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "4.5.0-1build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.5.5-1",
"evidence": "/affected/5/versions"
},
{
"value": "4.5.7-1",
"evidence": "/affected/5/versions"
},
{
"value": "4.5.8-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "yara",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.5.4-1",
"evidence": "/affected/6/versions"
},
{
"value": "4.5.5-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-88340",
"aliases": [
"UBUNTU-CVE-2026-88340"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"3.4.0+dfsg-2",
"3.4.0+dfsg-2build1",
"3.4.0+dfsg-2ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara3",
"binary_version": "3.4.0+dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "python-yara",
"binary_version": "3.4.0+dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "python3-yara",
"binary_version": "3.4.0+dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "yara",
"binary_version": "3.4.0+dfsg-2ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"3.6.3+dfsg-1ubuntu1",
"3.7.1-1ubuntu1",
"3.7.1-1ubuntu2",
"3.7.1-1ubuntu2+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara3",
"binary_version": "3.7.1-1ubuntu2+esm1"
},
{
"binary_name": "yara",
"binary_version": "3.7.1-1ubuntu2+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"3.9.0-1",
"3.9.0-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara3",
"binary_version": "3.9.0-1ubuntu0.1~esm1"
},
{
"binary_name": "yara",
"binary_version": "3.9.0-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"4.1.0-1",
"4.1.3-1",
"4.1.3-1build1",
"4.1.3-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara8",
"binary_version": "4.1.3-1ubuntu0.1~esm1"
},
{
"binary_name": "yara",
"binary_version": "4.1.3-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.3.2-1",
"4.4.0-1",
"4.5.0-1",
"4.5.0-1build1",
"4.5.0-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara10",
"binary_version": "4.5.0-1build2"
},
{
"binary_name": "yara",
"binary_version": "4.5.0-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.5.5-1",
"4.5.7-1",
"4.5.8-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara10",
"binary_version": "4.5.8-1"
},
{
"binary_name": "yara",
"binary_version": "4.5.8-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/ubuntu/yara?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.5.4-1",
"4.5.5-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88340.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libyara10",
"binary_version": "4.5.5-1"
},
{
"binary_name": "yara",
"binary_version": "4.5.5-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:15.552133575Z",
"provider": "osv",
"upstream": [
"CVE-2026-88340"
],
"references": [
"https://ubuntu.com/security/CVE-2026-88340",
"https://www.cve.org/CVERecord?id=CVE-2026-88340",
"https://github.com/VirusTotal/yara/issues/2239",
"https://github.com/VirusTotal/yara/pull/2244",
"https://github.com/VirusTotal/yara/pull/2244/changes/8d7bef643ee5fa2381e235bcedf80170a6b00d3b"
]
},
"related_cves": [
{
"value": "CVE-2026-88340",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361402,
"published_at": "2026-09-22T20:17:00+00:00"
}