Cloudanix VulnDB

CVE-2024-31837

High · 8.4

CVSS

8.4

EPSS

0.2%

Published

Apr 30, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

An outdated command-line tool for collecting online information contains a flaw that could allow someone running it locally to take control of the computer.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Improper Input Validation
Remediation
No Fix Yet
Effort
Other
Patch risk
Other

What it actually does

Format string vulnerability allows local attacker to supply malicious format specifiers that corrupt memory or execute arbitrary code within the DMitry process.

Why it matters to the business

Compromise of systems running information-gathering tools can lead to unauthorized code execution, data exposure, or lateral movement with limited operational impact due to low prevalence and exploitation likelihood.

How an attack unfolds

An attacker invokes the vulnerable binary with command-line arguments containing format specifiers such as %s, %n, or %x; the tool passes these directly to a printf-style function without sanitization, enabling memory reads or writes that achieve code execution.

How to fix it

Upgrade to a patched version of DMitry if available, or replace the tool with a maintained alternative; compile from source with format-string protections enabled and restrict execution to trusted inputs only.

How to confirm the fix worked

Verify the binary no longer accepts unsanitized format specifiers by testing with controlled inputs that previously triggered crashes or memory disclosure; confirm removal or isolation of the vulnerable binary from production environments.

Typical attack path

  1. Identify a system running DMitry 1.3a
  2. Craft malicious command-line input containing format specifiers
  3. Execute the tool with the crafted input locally
  4. Achieve memory corruption leading to arbitrary code execution

How to detect it

Review process execution logs and command-line history for invocations of the DMitry binary with unusual arguments containing percent signs or format directives; monitor for unexpected crashes or memory-related errors during tool execution.

What your security team should do

  • Remove or replace DMitry 1.3a with a supported equivalent
  • Scan for presence of the vulnerable binary across endpoints and build pipelines
  • Enforce least-privilege execution and input validation for any remaining information-gathering utilities

The record

DMitry (Deepmagic Information Gathering Tool) 1.3a has a format-string vulnerability, with a threat model similar to CVE-2017-7938.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 dmitry 0 No fix
Debian:11 dmitry 0 1.3a-1.1+deb11u1
Debian:12 dmitry 0 1.3a-1.2+deb12u1
Debian:13 dmitry 0 1.3a-5
Debian:14 dmitry 0 1.3a-5
Ubuntu:16.04:LTS dmitry 0 No fix
Ubuntu:18.04:LTS dmitry 0 No fix
Ubuntu:20.04:LTS dmitry 0 No fix
Ubuntu:22.04:LTS dmitry 0 No fix
Ubuntu:24.04:LTS dmitry 0 No fix
Ubuntu:24.10 dmitry 0 No fix
Ubuntu:25.04 dmitry 0 No fix
Ubuntu:25.10 dmitry 0 No fix
Ubuntu:Pro:16.04:LTS dmitry 0 No fix
Ubuntu:Pro:18.04:LTS dmitry 0 No fix
Ubuntu:Pro:20.04:LTS dmitry 0 No fix

Related vulnerabilities