Vulnerabilities in pkg:pypi/pyfribidi
PACKAGECVE-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.
pkg:pypi/pyfribidi
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
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).
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.
pip install pyfribidi>=0.11.0
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
CVE-2012-1176 Affected Pyfribidi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyfribidi
|
PyPI |
< 0.11.0
|
0.11.0
|
References
Frequently Asked Questions
What is CVE-2012-1176?
Which Pyfribidi versions are affected?
What version fixes CVE-2012-1176?
Is pyfribidi affected?
What is the CVSS score of CVE-2012-1176?
What CWE is associated with CVE-2012-1176?
How can I check PyPI dependencies for CVE-2012-1176?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}