dnsmasq up to 2.73rc6 Config File src/util.c parse_hex i heap-based overflow ⚔ [Disputed]
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.4 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical was found in dnsmasq up to 2.73rc6. Affected by this vulnerability is the function parse_hex of the file src/util.c of the component Config File Handler. The manipulation of the argument i results in heap-based overflow.
This vulnerability was named CVE-2025-12198. The attack needs to be approached locally. In addition, an exploit is available.
It is still unclear if this vulnerability genuinely exists.
Based on the analysis by MITRE and review of community feedback, the reported conditions represent expected and intentional behavior within dnsmasq's documented design, rather than security vulnerabilities. The vendor was contacted early about this disclosure but did not respond in any way.
Details
A vulnerability classified as critical has been found in dnsmasq up to 2.73rc6. Affected is the function parse_hex of the file src/util.c of the component Config File Handler. The manipulation of the argument i with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). This is going to have an impact on confidentiality, integrity, and availability.
The advisory is shared for download at shimo.im. This vulnerability is traded as CVE-2025-12198. The exploitability is told to be easy. The attack needs to be approached locally. Technical details and a public exploit are known. dnsmasq might be started as root, but not everybody interacting with dnsmasq might be or shall remain root. For example if dnsmask is configured or used via a web frontend which shall limit the capabilities of influence. If in this case a malicious dnsmasq admin is able to execute arbitrary code, this might allow for unwanted escalation of capabilities.
The exploit is shared for download at shimo.im. It is declared as proof-of-concept. The real existence of this vulnerability is still doubted at the moment. The vendor was contacted early about this disclosure but did not respond in any way. Based on the analysis by MITRE and review of community feedback, the reported conditions represent expected and intentional behavior within dnsmasq's documented design, rather than security vulnerabilities. The vulnerability scanner Nessus provides a plugin with the ID 276816 (Linux Distros Unpatched Vulnerability : CVE-2025-12198 (deprecated)), which helps to determine the existence of the flaw in a target environment.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
The vulnerability is also documented in the databases at Tenable (276816) and EUVD (EUVD-2025-36061). Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 7.8VulDB Meta Temp Score: 7.4
VulDB Base Score: 7.8
VulDB Temp Score: 7.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.8
CNA 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: 🔍
Exploiting
Class: Heap-based overflowCWE: CWE-122 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 276816
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-12198 (deprecated)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔒
Timeline
10/25/2025 Advisory disclosed10/25/2025 VulDB entry created
11/28/2025 VulDB entry last update
Sources
Advisory: shimo.imStatus: Not defined
Disputed: 🔍
CVE: CVE-2025-12198 (🔒)
GCVE (CVE): GCVE-0-2025-12198
GCVE (VulDB): GCVE-100-329868
EUVD: 🔒
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 10/25/2025 08:27Updated: 11/28/2025 17:27
Changes: 10/25/2025 08:27 (58), 10/27/2025 04:57 (30), 10/28/2025 04:29 (1), 11/03/2025 19:16 (3), 11/03/2025 23:50 (1), 11/17/2025 17:38 (1), 11/28/2025 17:27 (2)
Complete: 🔍
Submitter: zh_vul
Cache ID: 216::103
Submit
Accepted
- Submit #673138: dnsmasq dnsmasq v2.73rc6 Heap-based Buffer Overflow (by zh_vul)
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.