giftrans — security advisory
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.
- Products
- giftrans
- Affected versions
- 1.12.2-17ubuntu1, 1.12.2-19, 1.12.2-20, 1.12.2-21, 1.12.2-22
- Fixed versions
- Not specified
- CVEs
- CVE-2021-45972
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:38 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2021-45972
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
giftrans
Fixed versions: Not specified
Complete source record
{
"id": "d2896c9559e00c62f38e3ce8bf0b29938fd49ee205312bb83442bc51f452f0c5",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-45972",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-45972",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2021-45972",
"products": [
{
"name": {
"value": "giftrans",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-17ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.12.2-19",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-19",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-19",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-19",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-19",
"evidence": "/affected/4/versions"
},
{
"value": "1.12.2-20",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-20",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-21",
"evidence": "/affected/6/versions"
},
{
"value": "1.12.2-22",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "giftrans",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.2-20",
"evidence": "/affected/7/versions"
},
{
"value": "1.12.2-21",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-45972",
"aliases": [
"UBUNTU-CVE-2021-45972"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "low"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.12.2-17ubuntu1",
"1.12.2-19"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-19"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.12.2-19"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-19"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.12.2-19"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-19"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.12.2-19"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-19"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.12.2-19",
"1.12.2-20"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-20"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.12.2-20"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-20"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.12.2-21",
"1.12.2-22"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-22"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "giftrans",
"purl": "pkg:deb/ubuntu/giftrans?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.12.2-20",
"1.12.2-21"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "giftrans",
"binary_version": "1.12.2-21"
}
]
}
}
],
"modified": "2026-10-17T12:57:14.323348458Z",
"provider": "osv",
"upstream": [
"CVE-2021-45972"
],
"references": [
"https://ubuntu.com/security/CVE-2021-45972",
"https://www.abdn.ac.uk/tools/ibmpc/giftrans/index.hti",
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002739",
"https://www.cve.org/CVERecord?id=CVE-2021-45972"
]
},
"related_cves": [
{
"value": "CVE-2021-45972",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356988,
"published_at": "2022-01-01T21:15:00+00:00"
}