{"id":"CVE-2021-45972","aliases":["DEBIAN-CVE-2021-45972","EUVD-2021-32678","GHSA-mvg4-4v3q-g4xj","UBUNTU-CVE-2021-45972"],"status":"published","title":"The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value...","description":"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.","severity":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00992,"percentile":0.62814,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1284","CWE-787"],"published":"2022-01-01T20:36:57Z","modified":"2026-10-23T18:04:18Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19","1.12.2-20","1.12.2-21","1.12.2-22"]},{"source":"osv","ecosystem":"Debian:13","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20","1.12.2-21","1.12.2-22"]},{"source":"osv","ecosystem":"Debian:14","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20","1.12.2-21","1.12.2-22"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-17ubuntu1","1.12.2-19"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-19","1.12.2-20"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-21","1.12.2-22"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"giftrans","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.2-20","1.12.2-21"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"giftrans_project","product":"giftrans"}],"references":[{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002739","tags":["x_refsource_MISC","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence","report"]},{"url":"http://web.archive.org/web/20150801185019/","tags":["x_refsource_MISC","x_transferred","Broken Link","web","report"]},{"url":"https://www.abdn.ac.uk/tools/ibmpc/giftrans/index.hti","tags":["x_refsource_MISC","x_transferred","Broken Link","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45972"},{"url":"https://github.com/advisories/GHSA-mvg4-4v3q-g4xj"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-45972","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-45972","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-45972","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-45972","description":"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.","status":"published","published":"2022-01-01T20:36:57Z","modified":"2024-08-04T04:54:31.513Z","updated_at":"2026-11-02T14:33:02.580561Z"}],"euvd":[{"id":"EUVD-2021-32678","description":"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.","status":"published","published":"2022-01-01T20:36:57Z","modified":"2024-08-04T04:54:31Z","updated_at":"2026-11-03T03:08:25.222984Z"}],"ghsa":[{"id":"GHSA-mvg4-4v3q-g4xj","title":"The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value...","description":"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.","status":"published","published":"2022-01-02T00:00:45Z","modified":"2023-08-08T15:31:29Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:54:44.111289Z"}],"nvd":[{"id":"CVE-2021-45972","description":"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.","status":"published","published":"2022-01-01T21:15:07.73Z","modified":"2026-06-17T04:14:20.85Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-1284"],"updated_at":"2026-11-02T14:07:02.977492Z"}],"osv":[{"id":"CVE-2021-45972","description":"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.","status":"published","published":"2022-01-01T21:15:07.73Z","modified":"2026-03-15T22:42:33.600619Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:22.18434Z"},{"id":"DEBIAN-CVE-2021-45972","description":"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.","status":"published","published":"2022-01-01T21:15:07.73Z","modified":"2026-10-23T18:04:18.055136927Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"UBUNTU-CVE-2021-45972","description":"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.","status":"published","published":"2022-01-01T21:15:00Z","modified":"2026-10-17T12:57:14.323348458Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:30.277322Z"}]}}
