Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-12035

In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can cause an out of bounds write vulnerability in yr_execute_code in libyara/exec.c.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-12035
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:16 UTC · Revision 1

Source evidence

CVE-2018-12035

core-osv · Original source

Published 15 Jun 2018, 16:29 UTC

In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can cause an out of bounds write vulnerability in yr_execute_code in libyara/exec.c.

osv:CVE-2018-12035
Complete source record
{
  "id": "a7f9f59df5fedcbd8dbc0a4e291d2890f4c045cf3a0ad962964c2a45ea9e86d7",
  "url": "https://osv.dev/vulnerability/CVE-2018-12035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-12035",
    "summary": "In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can cause an out of bounds write vulnerability in yr_execute_code in libyara/exec.c.",
    "evidence": "osv:CVE-2018-12035",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-12035",
      "aliases": [
        "CVE-2018-12035"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/virustotal/yara",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "21d82ff7ddaf7c01e9b3a7364f4cb3820870bcb2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:virustotal:yara:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.7.1",
            "v3.7.0",
            "v3.6.0",
            "v3.4.0",
            "v3.3.0",
            "v3.2.0",
            "v3.1.0",
            "v3.0.0",
            "v2.1.0",
            "v2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12035.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:00.255227718Z",
      "provider": "osv",
      "references": [
        "https://github.com/VirusTotal/yara/issues/891",
        "https://bnbdr.github.io/posts/swisscheese/",
        "https://github.com/bnbdr/swisscheese"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-12035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381133,
  "published_at": "2018-06-15T16:29:00.373+00:00"
}