CVE-2024-32036: SixLabors.ImageSharp SixLabors.ImageSharp Vulnerable To Data Leakage Vulnerability

MODERATE
Advisory Identifier: GHSA-5x7m-6737-26cr
CVSS 5.3
CWE-212 CWE-226
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-32036
GHSA Identifier GHSA-5x7m-6737-26cr
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
Affected Product SixLabors.ImageSharp
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

SixLabors.ImageSharp fixed: 2.1.8
Upgrade SixLabors.ImageSharp to 2.1.8
SixLabors.ImageSharp fixed: 3.1.4
Upgrade SixLabors.ImageSharp to 3.1.4
Verify Direct and Transitive Dependencies

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

### Impact A 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. ### Patches The problem has been patched. All users are advised to upgrade to v3.1.4 or v2.1.8. ### Workarounds None ### References None

CVE-2024-32036 Affected SixLabors.ImageSharp Versions

2 component(s)
Fixed Versions:
2.1.83.1.4
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?
CVE-2024-32036 is a security vulnerability in SixLabors.ImageSharp involving SixLabors.ImageSharp vulnerable to data leakage under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer.
Which SixLabors.ImageSharp versions are affected?
Affected versions include releases prior to 2.1.8, 3.1.4 across affected packages: SixLabors.ImageSharp.
What version fixes CVE-2024-32036?
Upgrading to 2.1.8, 3.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is SixLabors.ImageSharp affected?
Yes, SixLabors.ImageSharp is affected in releases prior to 2.1.8, 3.1.4. Upgrade your dependency to 2.1.8, 3.1.4 or later.
What is the CVSS score of CVE-2024-32036?
CVE-2024-32036 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-32036?
CVE-2024-32036 is classified under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer (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.).
How can I check NuGet dependencies for CVE-2024-32036?
Run the dependency tree command: 'inspect dependencies for SixLabors.ImageSharp'. 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-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"
  }
}