A heap-based buffer overflow flaw was found in the Fribidi package, affecting the `fribidi cap rtl to unicode()` function. This flaw allows an attacker to pass a specially crafted file to the Fribidi application with the '--caprtl' option, leading to a crash and causing a denial of service. The exploitation of this flaw may also allow a remote attacker to execute arbitrary code.