CVE-2023-36308: Github.com/disintegration/imaging Crash When Processing Crafted TIFF Vulnerability
LOWCVE-2023-36308 is a LOW crash when processing crafted tiff vulnerability (CWE-129: Improper Validation of Array Index) affecting Github.com/disintegration/imaging libraries in the Go ecosystem. The issue involves crash when processing crafted tiff files. Remediation is available in the latest vendor maintenance releases.
CVE-2023-36308 at a Glance
How to Fix CVE-2023-36308
To remediate this vulnerability, upgrade all affected Github.com/disintegration/imaging 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 github.com/disintegration/imaging to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/disintegration/imaging
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-36308, inspect your project dependencies for Github.com/disintegration/imaging:
inspect dependencies for github.com/disintegration/imaging
Analyze the terminal output to locate any version of Github.com/disintegration/imaging in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-129: Improper Validation of Array Index, where the product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array. In Github.com/disintegration/imaging, 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-36308 Affected Github.com/disintegration/imaging Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/disintegration/imaging
|
Go |
≤ 1.6.2
|
|
References
Frequently Asked Questions
What is CVE-2023-36308?
Which Github.com/disintegration/imaging versions are affected?
What version fixes CVE-2023-36308?
Is github.com/disintegration/imaging affected?
What CWE is associated with CVE-2023-36308?
How can I check Go dependencies for CVE-2023-36308?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q7pp-wcgr-pffx",
"modified" : "2024-03-21T18:57:46Z",
"published" : "2023-09-05T06:30:14Z",
"aliases" : [ "CVE-2023-36308" ],
"summary" : "Crash when processing crafted TIFF files",
"details" : "Disintegration Imaging 1.6.2 allows attackers to cause a panic (because of an integer index out of range during a Grayscale call) via a crafted TIFF file to the scan function of scanner.go. NOTE: it is unclear whether there are common use cases in which this panic could have any security consequence",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/disintegration/imaging"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.6.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-36308"
}, {
"type" : "WEB",
"url" : "https://github.com/disintegration/imaging/issues/165"
}, {
"type" : "WEB",
"url" : "https://github.com/disintegration/imaging/releases/tag/v1.6.2"
}, {
"type" : "PACKAGE",
"url" : "github.com/disintegration/imaging"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-129" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-21T18:57:46Z",
"nvd_published_at" : "2023-09-05T04:15:08Z"
}
}