CVE-2021-30498
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.
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
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 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV: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 Critical
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libcacaAlpine:v3.15 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.16 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.17 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.18 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.19 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.20 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.21 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.22 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.23 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
libcacaAlpine:v3.24 |
before 0.99_beta20-r0 | 0.99_beta20-r0 |
Show 54 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libcacaDebian:12 |
before 0.99.beta19-3 | 0.99.beta19-3 |
libcacaDebian:13 |
before 0.99.beta19-3 | 0.99.beta19-3 |
libcacaDebian:14 |
before 0.99.beta19-3 | 0.99.beta19-3 |
libcacaDebian: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 |
libcacaDebian: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 |
libcacaMageia:8 From an advisory covering 2 CVEs |
before 0.99-0.beta19.5.2.mga8 | 0.99-0.beta19.5.2.mga8 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE:Enterprise Storage 6 From an advisory covering 3 CVEs |
before 0.99.beta19.git20171003-3.8.1 | 0.99.beta19.git20171003-3.8.1 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE:Enterprise Storage 7 From an advisory covering 2 CVEs |
before 0.99.beta19.git20171003-11.3.1 | 0.99.beta19.git20171003-11.3.1 |
libcacaSUSE:HPE Helion OpenStack 8 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE:OpenStack Cloud 8 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE:OpenStack Cloud 9 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE:OpenStack Cloud Crowbar 8 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE:OpenStack Cloud Crowbar 9 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 2 CVEs |
before 0.99.beta18-14.6.1 | 0.99.beta18-14.6.1 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaSUSE: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 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaUbuntu:22.04:LTS |
before 0.99.beta19-2.2ubuntu3, plus listed versions 0.99.beta19-2.2ubuntu2 |
0.99.beta19-2.2ubuntu3 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaUbuntu: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 |
libcacaopenSUSE:Leap 15.3 From an advisory covering 2 CVEs |
before 0.99.beta19.git20171003-11.3.1 | 0.99.beta19.git20171003-11.3.1 |
libcacaopenSUSE:Tumbleweed From an advisory covering 6 CVEs |
before 0.99.beta19.git20171003-8.3 | 0.99.beta19.git20171003-8.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE 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
github.com/cacalabs/libcaca/issues/53
bugzilla.redhat.com/show_bug.cgi?id=1948675
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WFGYICNTMNDNMDDUV4G2RYFB5HNJCOV
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PC7EGOEQ5C4OD66ZUJJIIYEXBTZOCMZX
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZSBCRN6EGQJUVOSD4OEEQ6XORHEM2CUL
lists.debian.org/debian-lts-announce/2024/04/msg00004.html
Show 29 moreShow less
lists.debian.org/debian-lts-announce/2025/07/msg00019.html
nvd.nist.gov/vuln/detail/CVE-2021-30498
lists.fedoraproject.org/archives/list/[email protected]/message/6WFGYICNTMNDNMDDUV4G2RYFB5HNJCOV
lists.fedoraproject.org/archives/list/[email protected]/message/PC7EGOEQ5C4OD66ZUJJIIYEXBTZOCMZX
lists.fedoraproject.org/archives/list/[email protected]/message/ZSBCRN6EGQJUVOSD4OEEQ6XORHEM2CUL
github.com/advisories/GHSA-hg8v-gh24-gpf4
security.alpinelinux.org/vuln/CVE-2021-30498
security-tracker.debian.org/tracker/CVE-2021-30498
advisories.mageia.org/MGASA-2021-0496.html
bugs.mageia.org/show_bug.cgi?id=29575
ubuntu.com/security/notices/USN-5119-1
suse.com/support/update/announcement/2022/suse-su-20220754-1
bugzilla.suse.com/1182731
bugzilla.suse.com/1184751
bugzilla.suse.com/1184752
suse.com/security/cve/CVE-2021-30498
suse.com/security/cve/CVE-2021-30499
suse.com/security/cve/CVE-2021-3410
suse.com/support/update/announcement/2022/suse-su-20220769-1
suse.com/support/update/announcement/2022/suse-su-20220820-1
suse.com/support/update/announcement/2022/suse-su-202214909-1
ubuntu.com/security/CVE-2021-30498
cve.org/CVERecord?id=CVE-2021-30498
ubuntu.com/security/CVE-2021-30499
lists.opensuse.org/archives/list/[email protected]/thread/SRWTKUG6M4N5W7U2DBAJ4MTXKVSEHRXW
suse.com/security/cve/CVE-2018-20544
suse.com/security/cve/CVE-2018-20545
suse.com/security/cve/CVE-2018-20546
suse.com/security/cve/CVE-2018-20549