Every CVE Search/ Get API key

CVE-2021-30498

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead...

7.8 HighFix available

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.35%Up 0.8 points since May 27, 2021
90%50%10%1%

What each source reports

NVD Score used 7.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
CVE-2021-30498
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
CVE-2021-30498
Weakness
CWE-787
Updated
2026-11-02
EUVDEUVD-2021-17419 No score

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
EUVD-2021-17419
Updated
2026-11-02
GitHub AdvisoriesGHSA-hg8v-gh24-gpf4 9.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead...

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
GHSA-hg8v-gh24-gpf4
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119, CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2021-30498 7.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
ALPINE-CVE-2021-30498
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSV 7.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
CVE-2021-30498
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2021-30498 7.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
DEBIAN-CVE-2021-30498
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-30498 7.8

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences.

Record
UBUNTU-CVE-2021-30498
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2021-0496 No score

Updated libcaca packages fix security vulnerability

A flaw was found in libcaca. A heap buffer overflow in export.c in function export_tga might lead to memory corruption and other potential consequences. (CVE-2021-30498)

A flaw was found in libcaca. A buffer overflow of export.c in function export_troff might lead to memory corruption and other potential consequences. (CVE-2021-30499)

Record
MGASA-2021-0496
Updated
2026-11-02
OSVopenSUSE-SU-2022:0769-1 No score

Security update for libcaca

This update for libcaca fixes the following issues:

  • CVE-2021-30498, CVE-2021-30499: If an image has a size of 0x0, when exporting, no data is written and space is allocated for the header only, not taking into account that sprintf appends a NUL byte (bsc#1184751, bsc#1184752).
Record
openSUSE-SU-2022:0769-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10927-1 No score

caca-utils-0.99.beta19.git20171003-8.3 on GA media

These are all security issues fixed in the caca-utils-0.99.beta19.git20171003-8.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10927-1
Updated
2026-11-02
OSVSUSE-SU-2022:0754-1 No score

Security update for libcaca

This update for libcaca fixes the following issues:

  • CVE-2021-30499: Fixed a memory corruption issue when exporting troff sources (bsc#1184751).
  • CVE-2021-30498: Fixed a memory corruption issue when exporting TGA images (bsc#1184752).
  • CVE-2021-3410: Fixed an illegal WRITE memory access (bsc#1182731).
Record
SUSE-SU-2022:0754-1
Updated
2026-11-02
OSVSUSE-SU-2022:0769-1 No score

Security update for libcaca

This update for libcaca fixes the following issues:

  • CVE-2021-30498, CVE-2021-30499: If an image has a size of 0x0, when exporting, no data is written and space is allocated for the header only, not taking into account that sprintf appends a NUL byte (bsc#1184751, bsc#1184752).
Record
SUSE-SU-2022:0769-1
Updated
2026-11-02
OSVSUSE-SU-2022:0820-1 No score

Security update for libcaca

This update for libcaca fixes the following issues:

  • CVE-2021-30498, CVE-2021-30499: If an image has a size of 0x0, when exporting, no data is written and space is allocated for the header only, not taking into account that sprintf appends a NUL byte (bsc#1184751, bsc#1184752).
Record
SUSE-SU-2022:0820-1
Updated
2026-11-02
OSVSUSE-SU-2022:14909-1 No score

Security update for libcaca

This update for libcaca fixes the following issues:

  • CVE-2021-30499: Fixed a memory corruption issue when exporting troff sources (bsc#1184751).
  • CVE-2021-30498: Fixed a memory corruption issue when exporting TGA images (bsc#1184752).
Record
SUSE-SU-2022:14909-1
Updated
2026-11-02
OSVUSN-5119-1 No score

libcaca vulnerabilities

It was discovered that libcaca incorrectly handled certain images. An attacker could possibly use this issue to cause a crash. (CVE-2021-30498, CVE-2021-30499)

Record
USN-5119-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libcaca
Alpine:v3.15
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.16
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.17
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.18
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.19
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.20
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.21
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.22
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.23
before 0.99_beta20-r0
0.99_beta20-r0
libcaca
Alpine:v3.24
before 0.99_beta20-r0
0.99_beta20-r0
Show 54 moreShow less
Affected packages
PackageAffectedFixed
libcaca
Debian:12
before 0.99.beta19-3
0.99.beta19-3
libcaca
Debian:13
before 0.99.beta19-3
0.99.beta19-3
libcaca
Debian:14
before 0.99.beta19-3
0.99.beta19-3
libcaca
Debian:10
From an advisory covering 2 CVEs
before 0.99.beta19-2.1+deb10u1, plus listed versions
0.99.beta19-2.1
0.99.beta19-2.1+deb10u1
libcaca
Debian:11
From an advisory covering 2 CVEs
before 0.99.beta19-2.2+deb11u1, plus listed versions
0.99.beta19-2.2
0.99.beta19-2.2+deb11u1
libcaca
Mageia:8
From an advisory covering 2 CVEs
before 0.99-0.beta19.5.2.mga8
0.99-0.beta19.5.2.mga8
libcaca
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise High Performance Computing 15-LTSS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Server 15-LTSS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Server 15 SP1-BCL
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Server 15 SP1-LTSS
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 15
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Enterprise Storage 6
From an advisory covering 3 CVEs
before 0.99.beta19.git20171003-3.8.1
0.99.beta19.git20171003-3.8.1
libcaca
SUSE:Linux Enterprise Module for Basesystem 15 SP3
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise Real Time 15 SP2
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise Server 15 SP2-BCL
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise Server 15 SP2-LTSS
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Manager Proxy 4.1
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Manager Retail Branch Server 4.1
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Manager Server 4.1
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:Enterprise Storage 7
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
SUSE:HPE Helion OpenStack 8
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:OpenStack Cloud 8
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:OpenStack Cloud 9
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:OpenStack Cloud Crowbar 8
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:OpenStack Cloud Crowbar 9
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server 12 SP2-BCL
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server 12 SP3-LTSS
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server 12 SP3-BCL
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server 12 SP4-LTSS
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 2 CVEs
before 0.99.beta18-14.6.1
0.99.beta18-14.6.1
libcaca
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 2 CVEs
before 0.99.beta13b-49.3.1
0.99.beta13b-49.3.1
libcaca
SUSE:Linux Enterprise Server 11 SP4-LTSS
From an advisory covering 2 CVEs
before 0.99.beta13b-49.3.1
0.99.beta13b-49.3.1
libcaca
Ubuntu:Pro:14.04:LTS
before 0.99.beta18-1ubuntu5.1+esm2, plus listed versions
0.99.beta18-1ubuntu20.99.beta18-1ubuntu30.99.beta18-1ubuntu40.99.beta18-1ubuntu50.99.beta18-1ubuntu5.10.99.beta18-1ubuntu5.1+esm1
0.99.beta18-1ubuntu5.1+esm2
libcaca
Ubuntu:Pro:16.04:LTS
before 0.99.beta19-2ubuntu0.16.04.2+esm1, plus listed versions
0.99.beta19-2build2~gcc5.10.99.beta19-2build2~gcc5.20.99.beta19-2ubuntu0.16.04.10.99.beta19-2ubuntu0.16.04.2
0.99.beta19-2ubuntu0.16.04.2+esm1
libcaca
Ubuntu:18.04:LTS
before 0.99.beta19-2ubuntu0.18.04.3, plus listed versions
0.99.beta19-2build2~gcc5.20.99.beta19-2build2~gcc5.30.99.beta19-2ubuntu0.18.04.10.99.beta19-2ubuntu0.18.04.2
0.99.beta19-2ubuntu0.18.04.3
libcaca
Ubuntu:20.04:LTS
before 0.99.beta19-2.1ubuntu1.20.04.2, plus listed versions
0.99.beta19-2.10.99.beta19-2.1ubuntu10.99.beta19-2.1ubuntu1.20.04.1
0.99.beta19-2.1ubuntu1.20.04.2
libcaca
Ubuntu:22.04:LTS
before 0.99.beta19-2.2ubuntu3, plus listed versions
0.99.beta19-2.2ubuntu2
0.99.beta19-2.2ubuntu3
libcaca
Ubuntu:Pro:14.04:LTS
From an advisory covering 2 CVEs
before 0.99.beta18-1ubuntu5.1+esm2, plus listed versions
0.99.beta18-1ubuntu20.99.beta18-1ubuntu30.99.beta18-1ubuntu40.99.beta18-1ubuntu50.99.beta18-1ubuntu5.10.99.beta18-1ubuntu5.1+esm1
0.99.beta18-1ubuntu5.1+esm2
libcaca
Ubuntu:Pro:16.04:LTS
From an advisory covering 2 CVEs
before 0.99.beta19-2ubuntu0.16.04.2+esm1, plus listed versions
0.99.beta19-2build2~gcc5.10.99.beta19-2build2~gcc5.20.99.beta19-2ubuntu0.16.04.10.99.beta19-2ubuntu0.16.04.2
0.99.beta19-2ubuntu0.16.04.2+esm1
libcaca
Ubuntu:18.04:LTS
From an advisory covering 2 CVEs
before 0.99.beta19-2ubuntu0.18.04.3, plus listed versions
0.99.beta19-2build2~gcc5.20.99.beta19-2build2~gcc5.30.99.beta19-2ubuntu0.18.04.10.99.beta19-2ubuntu0.18.04.2
0.99.beta19-2ubuntu0.18.04.3
libcaca
Ubuntu:20.04:LTS
From an advisory covering 2 CVEs
before 0.99.beta19-2.1ubuntu1.20.04.2, plus listed versions
0.99.beta19-2.10.99.beta19-2.1ubuntu10.99.beta19-2.1ubuntu1.20.04.1
0.99.beta19-2.1ubuntu1.20.04.2
libcaca
openSUSE:Leap 15.3
From an advisory covering 2 CVEs
before 0.99.beta19.git20171003-11.3.1
0.99.beta19.git20171003-11.3.1
libcaca
openSUSE:Tumbleweed
From an advisory covering 6 CVEs
before 0.99.beta19.git20171003-8.3
0.99.beta19.git20171003-8.3

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-30498 is a high vulnerability (CVSS 7.8) in Cacalabs Libcaca, published May 26, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.35%, the 71st percentile. Fixed in libcaca 0.99_beta20-r0.

References

Show 29 moreShow less
MoveEnter Open