Every CVE Search/ Get API key

CVE-2021-45972

The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value...

7.1 High

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

0.99%Up 0.2 points since Jan 2, 2022
90%50%10%1%

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 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
CVSS 2.0
5.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
giftrans
Debian:12
All versions, plus listed versions
1.12.2-191.12.2-201.12.2-211.12.2-22
None known
giftrans
Debian:13
All versions, plus listed versions
1.12.2-201.12.2-211.12.2-22
None known
giftrans
Debian:14
All versions, plus listed versions
1.12.2-201.12.2-211.12.2-22
None known
giftrans
Ubuntu:16.04:LTS
All versions, plus listed versions
1.12.2-17ubuntu11.12.2-19
None known
giftrans
Ubuntu:18.04:LTS
All versions, plus listed versions
1.12.2-19
None known
giftrans
Ubuntu:20.04:LTS
All versions, plus listed versions
1.12.2-19
None known
giftrans
Ubuntu:22.04:LTS
All versions, plus listed versions
1.12.2-19
None known
giftrans
Ubuntu:24.04:LTS
All versions, plus listed versions
1.12.2-191.12.2-20
None known
giftrans
Ubuntu:25.10
All versions, plus listed versions
1.12.2-20
None known
giftrans
Ubuntu:26.10
All versions, plus listed versions
1.12.2-211.12.2-22
None known
giftrans
Ubuntu:26.04:LTS
All versions, plus listed versions
1.12.2-201.12.2-21
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open