Skip to content
Heist/ feed
Back to feed
Medium

Memory Allocation with Excessive Size Value in SixLabors.ImageSharp

Type: advisorySources: OSV

ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation. The problem has been patched in v3.1.4 and v2.1.8.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-32035
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:08 UTC · Revision 1

Source evidence

Memory Allocation with Excessive Size Value in SixLabors.ImageSharp

core-osv · Original source

Published 15 Apr 2024, 19:59 UTC

ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation. The problem has been patched in v3.1.4 and v2.1.8.

osv:CVE-2024-32035
Complete source record
{
  "id": "05c5efa67a72e7ec7243df78dc34a37d01a2092a15e981816aa15b4c629ebbce",
  "url": "https://osv.dev/vulnerability/CVE-2024-32035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Memory Allocation with Excessive Size Value in SixLabors.ImageSharp",
    "summary": "ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation. The problem has been patched in v3.1.4 and v2.1.8.",
    "evidence": "osv:CVE-2024-32035",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-32035",
      "aliases": [
        "CVE-2024-32035",
        "GHSA-g85r-6x2q-45w7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sixlabors/imagesharp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f21d64188e59ae9464ff462056a5e29d8e618b27"
                },
                {
                  "introduced": "6ec1692ee295923d9d40956befd4417d6735507b"
                },
                {
                  "fixed": "da5f09a42513489fe359578d81cec2f15ba588ba"
                },
                {
                  "fixed": "b6b08ac3e7cea8da5ac1e90f7c0b67dd254535c3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:sixlabors:imagesharp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.1.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sixlabors:imagesharp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.1.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b6b08ac3e7cea8da5ac1e90f7c0b67dd254535c3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f21d64188e59ae9464ff462056a5e29d8e618b27"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.1.7",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v2.1.6",
            "v2.1.5",
            "v3.0.1",
            "v2.1.4",
            "v2.1.3",
            "v3.0.0",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32035.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.376220436Z",
      "provider": "osv",
      "references": [
        "https://docs.sixlabors.com/articles/imagesharp.web/processingcommands.html#securing-processing-commands",
        "https://docs.sixlabors.com/articles/imagesharp/security.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32035.json",
        "https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-g85r-6x2q-45w7",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-32035",
        "https://github.com/SixLabors/ImageSharp/commit/b6b08ac3e7cea8da5ac1e90f7c0b67dd254535c3",
        "https://github.com/SixLabors/ImageSharp/commit/f21d64188e59ae9464ff462056a5e29d8e618b27"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-789"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32035.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-32035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506512,
  "published_at": "2024-04-15T19:59:59.53+00:00"
}