CVE-2021-38714
High · 8.8CVSS
8.8
EPSS
2.8%
Published
Aug 24, 2021
CISA due date
—
Cloudanix analysis
A flaw in an old graphics library can let attackers take over a computer simply by getting a user to open a specially made picture file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in ssgLoadTGA() during TGA image parsing allows out-of-bounds memory access and arbitrary code execution when a malformed image is processed.
Why it matters to the business
Applications that rely on the Plib library can be compromised when users open specially crafted TGA files, leading to full system takeover, data theft, or ransomware deployment in environments still using the unpatched library.
How an attack unfolds
An attacker creates a TGA file that triggers an integer overflow inside ssgLoadTGA(), causing the library to write attacker-controlled data beyond allocated buffers. The malicious file is delivered through any application or game that uses Plib to load textures or assets; once rendered or imported, the overflow is triggered and shellcode executes with the privileges of the hosting process.
How to fix it
Remove or replace Plib with a maintained alternative; if removal is impossible, isolate applications that use it and block untrusted TGA files at the boundary. Monitor upstream repositories for any community patches that address the integer overflow.
How to confirm the fix worked
Confirm Plib is no longer present in the software bill of materials or that any remaining instances are wrapped with strict input sanitization and sandboxing; test with known malformed TGA samples in a lab environment to verify crashes or code execution are no longer possible.
Typical attack path
- Craft malicious TGA image that overflows an integer calculation in ssgLoadTGA()
- Host or send the file to a target user or system that uses Plib
- Victim opens or renders the file inside an affected application
- Overflow corrupts memory and redirects execution to attacker payload
- Attacker gains code execution and proceeds with persistence or lateral movement
How to detect it
Search application and system logs for crashes or errors during TGA file processing; look for child processes spawned immediately after image-loading routines in applications known to use Plib.
What your security team should do
- Inventory all software that links against Plib and prioritize removal or replacement
- Block inbound TGA files from untrusted sources at mail gateways and web proxies
- Add Plib to the organization's list of deprecated libraries and enforce via build pipelines
- Hunt for historical TGA loading events in application logs that may indicate prior exploitation attempts
The record
In Plib through 1.85, there is an integer overflow vulnerability that could result in arbitrary code execution. The vulnerability is found in ssgLoadTGA() function in src/ssg/ssgLoadTGA.cxx file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | plib | 0 | 1.8.5-8+deb11u1 |
| Debian:12 | plib | 0 | 1.8.5-10 |
| Debian:13 | plib | 0 | 1.8.5-10 |
| Debian:9 | plib | 0 | 1.8.5-7+deb9u1 |
| Mageia:8 | plib | 0 | 1.8.5-13.1.mga8 |
| Ubuntu:20.04:LTS | plib | 0 | 1.8.5-8ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | plib | 0 | 1.8.5-13 |
| Ubuntu:24.04:LTS | plib | 0 | 1.8.5-14 |
| Ubuntu:Pro:16.04:LTS | plib | 0 | 1.8.5-7ubuntu0.1~esm1 |
| Ubuntu:Pro:18.04:LTS | plib | 0 | 1.8.5-8ubuntu0.18.04.1~esm1 |
Related vulnerabilities
- CVE-2011-4620 Buffer overflow in the ulSetError function in util/ulError.cxx in PLIB 1.8.5, as used in… Also affects plib
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190