CVE-2023-42447: Blurhash Blurhash Panics On Parsing Crafted Vulnerability
HIGHCVE-2023-42447 is a HIGH (CVSS 8.6) blurhash panics on parsing crafted vulnerability (CWE-392: Missing Report of Error Condition) affecting Blurhash libraries in the crates.io ecosystem. The issue involves blurhash panics on parsing crafted inputs. Remediation is available by upgrading affected packages to version 0.2.0.
CVE-2023-42447 at a Glance
Security Impact
CVSS: 8.6
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:C/C:N/I:N/A:H).
How to Fix CVE-2023-42447
To remediate this vulnerability, upgrade all affected Blurhash dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade blurhash to 0.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for blurhash
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-42447, inspect your project dependencies for Blurhash:
inspect dependencies for blurhash
Analyze the terminal output to locate any version of Blurhash in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-392: Missing Report of Error Condition, where the product encounters an error but does not provide a status code or return value to indicate that an error has occurred. In Blurhash, 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-2023-42447 Affected Blurhash Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
blurhash
|
crates.io |
≥ 0.1.1
< 0.2.0
All 1 versions
0.1.1
|
0.2.0
|
References
Frequently Asked Questions
What is CVE-2023-42447?
Which Blurhash versions are affected?
What version fixes CVE-2023-42447?
Is blurhash affected?
What is the CVSS score of CVE-2023-42447?
What CWE is associated with CVE-2023-42447?
How can I check crates.io dependencies for CVE-2023-42447?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cxvp-82cq-57h2",
"modified" : "2023-09-21T17:10:22Z",
"published" : "2023-09-21T17:10:22Z",
"aliases" : [ "CVE-2023-42447" ],
"summary" : "blurhash panics on parsing crafted inputs",
"details" : "### Impact\nThe blurhash parsing code may panic due to multiple panic-guarded out-of-bounds accesses on untrusted input.\n\nIn a typical deployment, this may get triggered by feeding a maliciously crafted blurhashes over the network. These may include:\n- UTF-8 compliant strings containing multi-byte UTF-8 characters\n\n### Patches\nThe patches will be released under version 0.2.0, which requires user intervention because of slight API churn.\n\n### Workarounds\nn.a.\n\n### References\nn.a.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "blurhash"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.1"
}, {
"fixed" : "0.2.0"
} ]
} ],
"versions" : [ "0.1.1" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/whisperfish/blurhash-rs/security/advisories/GHSA-cxvp-82cq-57h2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42447"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/whisperfish/blurhash-rs"
}, {
"type" : "WEB",
"url" : "https://github.com/whisperfish/blurhash-rs/releases/tag/v0.2.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1284", "CWE-392" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T17:10:22Z",
"nvd_published_at" : "2023-09-19T15:15:57Z"
}
}