{"id":"UBUNTU-CVE-2021-45972","details":"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.","modified":"2026-05-20T16:05:24.588914904Z","published":"2022-01-01T21:15:00Z","upstream":["CVE-2021-45972"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-45972"},{"type":"REPORT","url":"http://web.archive.org/web/20150801185019/"},{"type":"REPORT","url":"https://www.abdn.ac.uk/tools/ibmpc/giftrans/index.hti"},{"type":"REPORT","url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002739"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-45972"}],"affected":[{"package":{"name":"giftrans","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-17ubuntu1","1.12.2-19"],"ecosystem_specific":{"binaries":[{"binary_name":"giftrans","binary_version":"1.12.2-19"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"],"ecosystem_specific":{"binaries":[{"binary_name":"giftrans","binary_version":"1.12.2-19"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12.2-19","binary_name":"giftrans"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"],"ecosystem_specific":{"binaries":[{"binary_name":"giftrans","binary_version":"1.12.2-19"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19","1.12.2-20"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12.2-20","binary_name":"giftrans"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20"],"ecosystem_specific":{"binaries":[{"binary_name":"giftrans","binary_version":"1.12.2-20"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}},{"package":{"name":"giftrans","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/giftrans?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20","1.12.2-21"],"ecosystem_specific":{"binaries":[{"binary_name":"giftrans","binary_version":"1.12.2-21"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45972.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}