CVE-2021-45972
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value...
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
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
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.1
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
CVE-2021-45972- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:P - Weakness
- CWE-1284
- Updated
- 2026-11-02
CVE List No score
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
CVE-2021-45972- Updated
- 2026-11-02
EUVDEUVD-2021-32678 No score
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
EUVD-2021-32678- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mvg4-4v3q-g4xj
7.1
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value...
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
GHSA-mvg4-4v3q-g4xj- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
7.1
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
CVE-2021-45972- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-45972
7.1
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
DEBIAN-CVE-2021-45972- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-45972
7.1
The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
- Record
UBUNTU-CVE-2021-45972- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
giftransDebian:12 |
All versions, plus listed versions 1.12.2-191.12.2-201.12.2-211.12.2-22 |
None known |
giftransDebian:13 |
All versions, plus listed versions 1.12.2-201.12.2-211.12.2-22 |
None known |
giftransDebian:14 |
All versions, plus listed versions 1.12.2-201.12.2-211.12.2-22 |
None known |
giftransUbuntu:16.04:LTS |
All versions, plus listed versions 1.12.2-17ubuntu11.12.2-19 |
None known |
giftransUbuntu:18.04:LTS |
All versions, plus listed versions 1.12.2-19 |
None known |
giftransUbuntu:20.04:LTS |
All versions, plus listed versions 1.12.2-19 |
None known |
giftransUbuntu:22.04:LTS |
All versions, plus listed versions 1.12.2-19 |
None known |
giftransUbuntu:24.04:LTS |
All versions, plus listed versions 1.12.2-191.12.2-20 |
None known |
giftransUbuntu:25.10 |
All versions, plus listed versions 1.12.2-20 |
None known |
giftransUbuntu:26.10 |
All versions, plus listed versions 1.12.2-211.12.2-22 |
None known |
giftransUbuntu:26.04:LTS |
All versions, plus listed versions 1.12.2-201.12.2-21 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-45972 is a high vulnerability (CVSS 7.1) in Giftrans Project Giftrans, published January 1, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.99%, the 62nd percentile. No source names a fixed version.
References
bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002739
web.archive.org/web/20150801185019
abdn.ac.uk/tools/ibmpc/giftrans/index.hti
nvd.nist.gov/vuln/detail/CVE-2021-45972
github.com/advisories/GHSA-mvg4-4v3q-g4xj
security-tracker.debian.org/tracker/CVE-2021-45972
ubuntu.com/security/CVE-2021-45972
cve.org/CVERecord?id=CVE-2021-45972