{"id":"CVE-2021-40241","aliases":["DEBIAN-CVE-2021-40241","DLA-3353-1","EUVD-2021-27425","GHSA-m4gh-3245-h724","MGASA-2023-0101","UBUNTU-CVE-2021-40241"],"status":"published","title":"xfig 3.2.7 is vulnerable to Buffer Overflow.","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01159,"percentile":0.67379,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-120"],"published":"2022-10-31T00:00:00Z","modified":"2026-10-23T18:04:50Z","fixes":[{"ecosystem":"Debian:12","package":"xfig","fixed_in":["1:3.2.8a-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"xfig","fixed_in":["1:3.2.8a-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"xfig","fixed_in":["1:3.2.8a-1"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"xfig","fixed_in":["1:3.2.7a-3+deb10u1"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"xfig","fixed_in":["3.2.7b-1.1.mga8"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8a-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8a-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8a-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.7a-3+deb10u1"}]}],"versions":["1:3.2.7a-3"]},{"source":"osv","ecosystem":"Mageia:8","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.7b-1.1.mga8"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.5.c-5","1:3.2.5.c-6","1:3.2.5.c-7"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.6a-1","1:3.2.6a-2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.7a-3","1:3.2.7b-1","1:3.2.7b-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.8-3","1:3.2.8b-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.8b-2build2","1:3.2.9-1","1:3.2.9-2","1:3.2.9-2build2","1:3.2.9-2build3"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.9a-2","1:3.2.9a-3","1:3.2.9a-4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.9a-5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"xfig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.2.9a-4","1:3.2.9a-5"]}],"products":[{"vendor":"xfig_project","product":"xfig"}],"references":[{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992395","tags":["x_transferred","Exploit","Issue Tracking","Mailing List","Third Party Advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00005.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40241"},{"url":"https://github.com/advisories/GHSA-m4gh-3245-h724"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40241","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2023-0101.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31650","tags":["report"]},{"url":"https://www.debian.org/lts/security/2023/dla-3353","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-40241","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40241","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-40241","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T00:00:00Z","modified":"2025-05-07T13:43:45.932Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2021-27425","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T00:00:00Z","modified":"2025-05-07T13:43:45Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:32:53.482549Z"}],"ghsa":[{"id":"GHSA-m4gh-3245-h724","title":"xfig 3.2.7 is vulnerable to Buffer Overflow.","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T19:00:26Z","modified":"2023-03-05T21:30:15Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:54:16.644116Z"}],"nvd":[{"id":"CVE-2021-40241","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T16:15:10.547Z","modified":"2026-06-17T04:06:40.593Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:07:06.906968Z"}],"osv":[{"id":"CVE-2021-40241","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T16:15:10.547Z","modified":"2026-04-16T04:42:27.333686068Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40241","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T16:15:10.547Z","modified":"2026-10-23T18:04:50.628672248Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-40241","description":"xfig 3.2.7 is vulnerable to Buffer Overflow.","status":"published","published":"2022-10-31T16:15:00Z","modified":"2026-10-17T12:56:01.092352133Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:28.526929Z"},{"id":"DLA-3353-1","title":"xfig - security update","status":"published","published":"2023-03-05T00:00:00Z","modified":"2026-03-09T01:19:42.29801Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"MGASA-2023-0101","title":"Updated xfig packages fix security vulnerability","description":"A potential buffer overflow exists in the file src/w_help.c at line 55.\nSpecifically, the length of the string returned by getenv(\"LANG\") may\nbecome very long and cause a buffer overflow while executing the sprintf()\nfunction. This vulnerability could potentially allow an attacker to\nexecute arbitrary code or cause a denial-of-service condition.\n(CVE-2021-40241)\n","status":"published","published":"2023-03-18T22:16:28Z","modified":"2026-04-16T04:43:01.296008058Z","updated_at":"2026-11-02T15:49:42.263076Z"}]}}
