VYPR
Unrated severityNVD Advisory· Published Feb 27, 2023· Updated Mar 11, 2025

CVE-2023-23109

CVE-2023-23109

Description

In crasm 1.8-3, invalid input validation, specific files passed to the command line application, can lead to a divide by zero fault in the function opdiv.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A divide-by-zero vulnerability in crasm 1.8-3 allows denial of service via crafted assembly files.

Vulnerability

The vulnerability exists in the opdiv function in src/operator.c of crasm version 1.8-3 (and earlier commits). The function performs division presult->value /= parg->value; without checking if parg->value is zero. When a crafted assembly file is processed, this leads to a floating-point exception (divide by zero). The issue is classified as CWE-369 (Divide By Zero) and CWE-233 (Improper Handling of Parameters). [1]

Exploitation

An attacker can trigger the vulnerability by providing a specially crafted assembly file to the crasm command-line tool. No authentication or special privileges are required; the attacker only needs to convince a user to process the malicious file. The crash occurs during the assembly process when the opdiv function is called with a zero divisor. [1]

Impact

Successful exploitation results in a denial of service (DoS) due to the program crashing with a floating-point exception. The impact is limited to availability; no data confidentiality or integrity is compromised. The CVSS base score is 1.7 (low severity). [1]

Mitigation

A fix has been merged into the source repository via pull request #7 [2], which adds a check for parg->value != 0 before performing the division. However, as of the publication date, the version available in Ubuntu (22.10 and 22.04) remains vulnerable. Users should update to a patched version or apply the patch manually. No workaround is available other than avoiding processing untrusted assembly files. [1][2]

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • crasm/crasmdescription
  • crasm/crasmllm-create
    Range: = 1.8-3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.