YARA up to 3.7.1 Compiled Rule File libyara/exec.c yr_execute_code out-of-bounds write
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.2 | $0-$5k | 0.00 |
Summary
A vulnerability identified as critical has been detected in YARA up to 3.7.1. This affects the function yr_execute_code of the file libyara/exec.c of the component Compiled Rule File Handler. Performing a manipulation results in out-of-bounds write.
This vulnerability was named CVE-2018-12035. The attack needs to be approached locally. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability classified as critical has been found in YARA up to 3.7.1. This affects the function yr_execute_code of the file libyara/exec.c of the component Compiled Rule File Handler. The manipulation with an unknown input leads to a out-of-bounds write vulnerability. CWE is classifying the issue as CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
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.
The bug was discovered 06/08/2018. The weakness was presented 06/15/2018 (GitHub Repository). It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2018-12035 since 06/07/2018. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. It demands that the victim is doing some kind of user interaction. Technical details of the vulnerability are known, but there is no available exploit.
The vulnerability was handled as a non-public zero-day exploit for at least 7 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 117300 (Fedora 27 : yara (2018-7626df1731)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 277495 (Fedora Security Update for yara (FEDORA-2018-8344cb89ac)).
Upgrading eliminates this vulnerability. A possible mitigation has been published 3 months after the disclosure of the vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (117300). See VDB-119582 for similar entry. Be aware that VulDB is the high quality source for vulnerability data.
Product
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.2
VulDB Base Score: 5.3
VulDB Temp Score: 4.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Out-of-bounds writeCWE: CWE-787 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 117300
Nessus Name: Fedora 27 : yara (2018-7626df1731)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Timeline
06/07/2018 🔍06/08/2018 🔍
06/15/2018 🔍
06/15/2018 🔍
06/15/2018 🔍
09/06/2018 🔍
09/06/2018 🔍
03/27/2023 🔍
Sources
Advisory: FEDORA-2018-7626df1731Status: Not defined
Confirmation: 🔍
CVE: CVE-2018-12035 (🔍)
GCVE (CVE): GCVE-0-2018-12035
GCVE (VulDB): GCVE-100-119583
See also: 🔍
Entry
Created: 06/15/2018 22:59Updated: 03/27/2023 14:42
Changes: 06/15/2018 22:59 (72), 02/19/2020 17:19 (4), 03/27/2023 14:40 (4), 03/27/2023 14:42 (1)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.