Vulnerabilities in pkg:pypi/pyfribidi

PACKAGE
Advisory Identifier: GHSA-6476-g47x-h3c7
Advisory Summary

CVE-2012-1176 is a HIGH (CVSS 7.5) pyfribidi buffer overflow vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Pyfribidi libraries in the PyPI ecosystem. The issue involves pyfribidi buffer overflow in the fribidi_utf8_to_unicode function. Remediation is available by upgrading affected packages to version 0.11.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pyfribidi

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/pyfribidi. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6476-g47x-h3c7 CVE-2012-1176 HIGH PyFriBidi Buffer overflow in the fribidi_utf8_to_unicode function

CVE-2012-1176 at a Glance

CVE Identifier CVE-2012-1176
GHSA Identifier GHSA-6476-g47x-h3c7
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Pyfribidi
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2012-1176

To remediate this vulnerability, upgrade all affected Pyfribidi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pyfribidi fixed: 0.11.0
pip install pyfribidi>=0.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pyfribidi

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2012-1176, inspect your installed packages using pip:

pip show pyfribidi

Analyze the terminal output to locate any version of Pyfribidi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.0), your application is affected.

Note: The pip show pyfribidi command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Pyfribidi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2012-1176 Affected Pyfribidi Versions

1 component(s)
Fixed Versions:
0.11.0
Product / Package Ecosystem Affected Versions Fixed Version
pyfribidi
PyPI
< 0.11.0
0.11.0

References

NVD — CVE-2012-1176 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-1176
Pyfribidi Source Repository REPOSITORY
https://github.com/pediapress/pyfribidi/issues/2
Pyfribidi Source Repository REPOSITORY
https://github.com/pediapress/pyfribidi/issues/2%29:
Security Fix Commit FIX COMMIT
https://github.com/pediapress/pyfribidi/commit/d2860c655357975e7b32d84e6b45e98f0dcecd7a
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=801896
bugzilla.wikimedia.org/show_bug.cgi WEB
https://bugzilla.wikimedia.org/show_bug.cgi?id=35055
exchange.xforce.ibmcloud.com/vulnerabilities/740... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/74001
Pyfribidi Source Repository REPOSITORY
https://github.com/pediapress/pyfribidi
Pyfribidi Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/pyfribidi/PYSEC-2012-11.yaml
Pyfribidi Security Information SECURITY
https://web.archive.org/web/20200228170815/http://www.securityfocus.com/bid/52451
bugs.debian.org/cgi-bin/bugreport.c... WEB
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663189
groups.google.com/group/linux.debian.... WEB
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/aacd036037217998/8d095f85f3665bff?lnk=raot
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-March/075293.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-March/076038.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-March/076053.html
Pyfribidi Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/03/14/4
Pyfribidi Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/03/14/9

Frequently Asked Questions

What is CVE-2012-1176?
CVE-2012-1176 is a security vulnerability in Pyfribidi involving PyFriBidi Buffer overflow in the fribidi_utf8_to_unicode function under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Pyfribidi versions are affected?
Affected versions include releases prior to 0.11.0 across affected packages: pyfribidi.
What version fixes CVE-2012-1176?
Upgrading to 0.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyfribidi affected?
Yes, pyfribidi is affected in releases prior to 0.11.0. Upgrade your dependency to 0.11.0 or later.
What is the CVSS score of CVE-2012-1176?
CVE-2012-1176 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2012-1176?
CVE-2012-1176 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check PyPI dependencies for CVE-2012-1176?
Run the dependency tree command: 'pip show pyfribidi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6476-g47x-h3c7",
  "modified" : "2024-10-21T20:03:23Z",
  "published" : "2022-05-17T01:48:25Z",
  "aliases" : [ "CVE-2012-1176" ],
  "summary" : "PyFriBidi Buffer overflow in the fribidi_utf8_to_unicode function",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyfribidi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1176"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pediapress/pyfribidi/issues/2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pediapress/pyfribidi/issues/2%29:"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pediapress/pyfribidi/commit/d2860c655357975e7b32d84e6b45e98f0dcecd7a"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=801896"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.wikimedia.org/show_bug.cgi?id=35055"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/74001"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pediapress/pyfribidi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyfribidi/PYSEC-2012-11.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228170815/http://www.securityfocus.com/bid/52451"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663189"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/aacd036037217998/8d095f85f3665bff?lnk=raot"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-March/075293.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-March/076038.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-March/076053.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/03/14/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/03/14/9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-01T11:23:15Z",
    "nvd_published_at" : "2012-08-26T20:55:00Z"
  }
}