dnsmasq up to 2.73rc6 Config File src/util.c parse_hex i heap-based overflow ⚔ [Disputed]

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.4$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 7.8
VulDB 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: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Heap-based overflow
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 276816
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-12198 (deprecated)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔒

Timelineinfo

10/25/2025 Advisory disclosed
10/25/2025 +0 days VulDB entry created
11/28/2025 +34 days VulDB entry last update

Sourcesinfo

Advisory: shimo.im
Status: 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

Entryinfo

Created: 10/25/2025 08:27
Updated: 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

Submitinfo

Accepted

  • Submit #673138: dnsmasq dnsmasq v2.73rc6 Heap-based Buffer Overflow (by zh_vul)

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!