Skip to content
Heist/ feed
Back to feed
HighFix available

libcaca — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-42046

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.

Products
libcaca
Affected versions
0.99.beta20-3, 0.99.beta20-5, 0.99.beta20-6
Fixed versions
0.99.beta20-3+deb12u1, 0.99.beta20-5+deb13u1, 0.99.beta20-7
CVEs
CVE-2026-42046
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:48 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-42046

core-osv · Original source

Published 11 May 2026, 22:22 UTC

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.

osv:DEBIAN-CVE-2026-42046

libcaca

Fixed versions: 0.99.beta20-3+deb12u1

libcaca

Fixed versions: 0.99.beta20-5+deb13u1

libcaca

Fixed versions: 0.99.beta20-7

Complete source record
{
  "id": "ba3bee04e2aeb7786855fc9d6dd0d662492fa773a378a92c8fa08aee5e0feef3",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-42046",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-42046",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-42046",
    "products": [
      {
        "name": {
          "value": "libcaca",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.99.beta20-3+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.99.beta20-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcaca",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.99.beta20-5+deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.99.beta20-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcaca",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.99.beta20-7",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.99.beta20-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.99.beta20-6",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-42046",
      "aliases": [
        "DEBIAN-CVE-2026-42046"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.99.beta20-3+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libcaca",
            "purl": "pkg:deb/debian/libcaca?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.99.beta20-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42046.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.99.beta20-5+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libcaca",
            "purl": "pkg:deb/debian/libcaca?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "0.99.beta20-5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42046.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.99.beta20-7"
                }
              ]
            }
          ],
          "package": {
            "name": "libcaca",
            "purl": "pkg:deb/debian/libcaca?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "0.99.beta20-5",
            "0.99.beta20-6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42046.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:40.846250964Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-42046"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-42046"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-42046",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461253,
  "published_at": "2026-05-11T22:22:11.13+00:00"
}