7.8high
libcaca: Heap OOB write in canvas import functions caused by int overflow
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
libcaca is a colour ASCII art library. In 0.99.beta20 and earlier, an integer overflow vulnerability in libcaca's canvas import functionality allows an attacker to cause a controlled heap out-of-bounds write (heap overflow) by supplying a crafted file in the "caca" format. Depending on the build configuration and memory allocator, this may lead to memory corruption or remote code execution. This is the same vulnerability as CVE-2021-3410 but the fix at that time was not fully correct. Commit fb77acff9ba6bb01d53940da34fb10f20b156a23 fixes this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cacalabs libcaca | <= 0.99.beta20 | CVE List |
Classification
What each source says
CVE List
libcaca is a colour ASCII art library. In 0.99.beta20 and earlier, an integer overflow vulnerability in libcaca's canvas import functionality allows an attacker to cause a controlled heap out-of-bounds write (heap overflow) by supplying a crafted file in the "caca" format. Depending on the build configuration and memory allocator, this may lead to memory corruption or remote code execution. This is the same vulnerability as CVE-2021-3410 but the fix at that time was not fully correct. Commit fb77acff9ba6bb01d53940da34fb10f20b156a23 fixes this vulnerability.
NVD (es)
libcaca es una biblioteca de arte ASCII a color. En 0.99.beta20 y versiones anteriores, una vulnerabilidad de desbordamiento de entero en la funcionalidad de importación de lienzo de libcaca permite a un atacante causar una escritura controlada fuera de límites en el montículo (desbordamiento de montículo) al proporcionar un archivo manipulado en el formato ’caca’. Dependiendo de la configuración de compilación y el asignador de memoria, esto puede conducir a corrupción de memoria o ejecución remota de código. Esta es la misma vulnerabilidad que CVE-2021-3410, pero la corrección en ese momento no era completamente correcta. El commit fb77acff9ba6bb01d53940da34fb10f20b156a23 corrige esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42046 changed 2026-05-12 | CVE Terms of Use |
| NVD | CVE-2026-42046 changed 2026-10-26 | Public domain |