CVE-2012-1176: Buffer Overflow in PyFriBidi

pyfribidi Updated 02 Oct 2025

Summary

26/08/2012
Yes i
High
7.5

CVE-2012-1176: Buffer overflow in the fribidi_utf8_to_unicode function in PyFriBidi before 0.11.0 allows remote attackers to cause a denial of service (application crash) via a 4-byte utf-8 sequence. Affects pyfribidi across 2 version ranges.

< 0.11.0 < d2860c655357975e7b32d84e6b45e98f0dcecd7a

Fixed in d2860c655357975e7b32d84e6b45e98f0dcecd7a. How to fix ↓

Also tracked for

The same CVE-2012-1176 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

PyFriBidi is a Python library that provides Unicode Bidirectional Algorithm (UBA) functionality. It allows users to handle bidirectional text, which is commonly used in languages such as Arabic and Hebrew. This vulnerability affects versions of PyFriBidi before 0.11.0. The fribidi_utf8_to_unicode function in PyFriBidi is susceptible to a buffer overflow, which can be exploited by remote attackers. By sending a specially crafted 4-byte utf-8 sequence, an attacker can cause the application to crash, resulting in a denial of service.

Vulnerability Detail

The vulnerability in PyFriBidi arises from a buffer overflow in the fribidi_utf8_to_unicode function. This function is responsible for converting utf-8 encoded text to Unicode. By sending a maliciously crafted utf-8 sequence, an attacker can trigger a buffer overflow, leading to a crash of the application. This vulnerability can be exploited remotely, allowing an attacker to disrupt the normal operation of the affected application. It is important to note that this vulnerability only affects versions of PyFriBidi prior to 0.11.0.

How To Fix

Minimum fixed version

d2860c655357975e7b32d84e6b45e98f0dcecd7a

This is the first release that contains the fix.

pip install --upgrade "pyfribidi==d2860c655357975e7b32d84e6b45e98f0dcecd7a"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The buffer overflow vulnerability in PyFriBidi can be exploited remotely, causing a denial of service. To mitigate this issue, it is crucial to update PyFriBidi to version 0.11.0 or later. This update includes a fix for the buffer overflow. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pyfribidi →

Share this vulnerability

FAQ

PyFriBidi is a Python library that provides Unicode Bidirectional Algorithm (UBA) functionality. It allows users to handle bidirectional text, commonly used in languages such as Arabic and Hebrew.

This vulnerability allows remote attackers to cause a denial of service (application crash) by sending a specially crafted utf-8 sequence. It can disrupt the normal operation of the affected application.

Versions of PyFriBidi prior to 0.11.0 are affected by this vulnerability.

To fix this vulnerability, update PyFriBidi to version 0.11.0 or later by running the command: pip install --upgrade pyfribidi.

No specific workaround is mentioned for this vulnerability. It is recommended to update to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for pyfribidi.

How To Fix

Minimum fixed version

d2860c655357975e7b32d84e6b45e98f0dcecd7a

This is the first release that contains the fix.

pip install --upgrade "pyfribidi==d2860c655357975e7b32d84e6b45e98f0dcecd7a"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback