{"id":"CVE-2021-3403","aliases":["ALPINE-CVE-2021-3403","DEBIAN-CVE-2021-3403","EUVD-2021-26731","GHSA-4pxg-g29h-qqfc","MGASA-2022-0316","UBUNTU-CVE-2021-3403"],"status":"published","title":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a...","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01751,"percentile":0.78034,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415","CWE-416"],"published":"2021-03-04T21:10:50Z","modified":"2026-11-03T06:32:40Z","fixes":[{"ecosystem":"Alpine:v3.13","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"ytnef","fixed_in":["1.9.3-r1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libytnef","fixed_in":["1.9.3-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libytnef","fixed_in":["1.9.3-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libytnef","fixed_in":["1.9.3-3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.13","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-r1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-3"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"ytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0-1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5-6","1.5-9","1.5-9ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.2-2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.3-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.3-3","2.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0-1","2.1.2-1","2.1.2-1build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-1build2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libytnef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-1build1","2.1.2-1build2"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"redhat","product":"enterprise_linux"},{"vendor":"ytnef","product":"ytnef"},{"vendor":"ytnef_project","product":"ytnef"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1926967","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/Yeraze/ytnef/issues/85","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3403"},{"url":"https://github.com/advisories/GHSA-4pxg-g29h-qqfc"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-3403","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3403","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0316.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30735","tags":["report"]},{"url":"https://github.com/Yeraze/ytnef/releases","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-3403","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3403","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T21:10:50Z","modified":"2024-08-03T16:53:17.578Z","cwes":["CWE-416"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-26731","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T21:10:50Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-4pxg-g29h-qqfc","title":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a...","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2022-05-24T17:43:42Z","modified":"2023-01-29T05:05:56Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-415","CWE-416"],"updated_at":"2026-11-02T14:45:54.702484Z"}],"nvd":[{"id":"CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T22:15:14.577Z","modified":"2026-06-17T04:05:01.873Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-416","CWE-415"],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"ALPINE-CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T22:15:14.577Z","modified":"2026-11-03T06:32:40.496897717Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:17:02.90744Z"},{"id":"CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T22:15:14.577Z","modified":"2026-10-20T10:54:44.696410607Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T22:15:14.577Z","modified":"2026-10-23T18:03:26.864723125Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3403","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a double free which can be triggered via a crafted file.","status":"published","published":"2021-03-04T22:15:00Z","modified":"2026-10-17T12:56:20.649632859Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"MGASA-2022-0316","title":"Updated ytnef packages fix security vulnerability","description":"In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows\nremote attackers to cause a denial-of-service (and potentially code\nexecution) due to a double free which can be triggered via a crafted file.\n(CVE-2021-3403)\nIn ytnef 1.9.3, the SwapWord function in lib/ytnef.c allows remote\nattackers to cause a denial-of-service (and potentially code execution)\ndue to a heap buffer overflow which can be triggered via a crafted file.\n(CVE-2021-3404)\n","status":"published","published":"2022-09-02T19:59:37Z","modified":"2026-04-16T04:43:42.305719678Z","updated_at":"2026-11-02T15:49:42.263076Z"}]}}
