CVE-2021-23158CWE-415

A flaw was found in htmldoc in v1.9.12

published March 16, 2022

CVSS
—
EPSS
2%
Percentile
84.2
In the wild
Unconfirmed
What it is

⚠️ A double-free flaw in htmldoc v1.9.12 is like a chef accidentally giving away the same ingredient twice — it leads to messy consequences! Imagine a restaurant where the chef mistakenly orders two shipments of the same ingredient, causing confusion and a really chaotic kitchen. Similarly, this double-free issue in `pspdf_export()` allows unwanted access to areas of memory, leading to potential chaos in the system. An attacker could exploit this vulnerability to execute arbitrary code, which could lead to unauthorized actions and even crash the service — a real recipe for disaster! Imagine a rogue chef creating their own menu without permission—yikes!

Put simply

Imagine a restaurant where the chef mistakenly orders two shipments of the same ingredient, causing confusion and a really chaotic kitchen. Similarly, this double-free issue in `pspdf_export()` allows unwanted access to areas of memory, leading to potential chaos in the system. The flaw arises from a double-free in the `pspdf_export()` function within `ps-pdf.cxx`, which can create a write-what-where condition, opening the door for arbitrary code execution or denial of service.

What to do

An attacker could exploit this vulnerability to execute arbitrary code, which could lead to unauthorized actions and even crash the service — a real recipe for disaster! Imagine a rogue chef creating their own menu without permission—yikes! To protect against this, it's recommended to patch htmldoc to version 1.9.13 or later, where this flaw has been addressed. Regularly audit your software components for vulnerabilities to stay ahead of potential threats. You’ve got this! With these steps, you'll keep your systems safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02436 · 84.2th percentile
Weakness
CWE-415 · Double Free
Published
2022-03-16T14:12Z
EPSS history
Timeline
  • 16 MAR 14:12Z
    A flaw was found in htmldoc in v1.9.12
    cvelistv5