CVE-2024-32036: SixLabors.ImageSharp SixLabors.ImageSharp Vulnerable To Data Leakage Vulnerability
MODERATECVE-2024-32036 is a MODERATE (CVSS 5.3) sixlabors.imagesharp vulnerable to data leakage vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting SixLabors.ImageSharp libraries in the NuGet ecosystem. The issue involves sixlabors.imagesharp vulnerable to data leakage. Remediation is available by upgrading affected packages to version 2.1.8, 3.1.4.
CVE-2024-32036 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-32036
To remediate this vulnerability, upgrade all affected SixLabors.ImageSharp 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 SixLabors.ImageSharp to 2.1.8
Upgrade SixLabors.ImageSharp to 3.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for SixLabors.ImageSharp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-32036, inspect your project dependencies for SixLabors.ImageSharp:
inspect dependencies for SixLabors.ImageSharp
Analyze the terminal output to locate any version of SixLabors.ImageSharp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.8), 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-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. In SixLabors.ImageSharp, 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-2024-32036 Affected SixLabors.ImageSharp Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
SixLabors.ImageSharp
|
NuGet |
< 2.1.8
|
2.1.8
|
|
SixLabors.ImageSharp
|
NuGet |
≥ 3.0.0
< 3.1.4
|
3.1.4
|
References
Frequently Asked Questions
What is CVE-2024-32036?
Which SixLabors.ImageSharp versions are affected?
What version fixes CVE-2024-32036?
Is SixLabors.ImageSharp affected?
What is the CVSS score of CVE-2024-32036?
What CWE is associated with CVE-2024-32036?
How can I check NuGet dependencies for CVE-2024-32036?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5x7m-6737-26cr",
"modified" : "2025-01-09T18:56:34Z",
"published" : "2024-04-15T20:24:06Z",
"aliases" : [ "CVE-2024-32036" ],
"summary" : "SixLabors.ImageSharp vulnerable to data leakage",
"details" : "### Impact\nA data leakage flaw was found in ImageSharp's JPEG and TGA decoders. This vulnerability is triggered when an attacker passes a specially crafted JPEG or TGA image file to a software using ImageSharp, potentially disclosing sensitive information from other parts of the software in the resulting image buffer.\n\n### Patches\nThe problem has been patched. All users are advised to upgrade to v3.1.4 or v2.1.8.\n\n### Workarounds\nNone\n\n### References\nNone\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "SixLabors.ImageSharp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "SixLabors.ImageSharp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-5x7m-6737-26cr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32036"
}, {
"type" : "WEB",
"url" : "https://github.com/SixLabors/ImageSharp/commit/8f0b4d3e680e78d479a88e7b1472bccd8f096d68"
}, {
"type" : "WEB",
"url" : "https://github.com/SixLabors/ImageSharp/commit/da5f09a42513489fe359578d81cec2f15ba588ba"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SixLabors/ImageSharp"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-212", "CWE-226" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-15T20:24:06Z",
"nvd_published_at" : "2024-04-15T20:15:11Z"
}
}