GCVE-1-2026-20443 (CVE-2026-135250)

Vulnerability from gna-1 – Published: 2026-11-23 15:38 – Updated: 2026-11-23 15:43
VLAI
Title
MISP: Denial of Service via Unbounded Image Decoding in Attachment Thumbnails and Event Graphs
Summary
MISP contains a denial-of-service vulnerability in its image processing pipeline. When generating attachment thumbnails or rendering event graph preview images, the application decodes user-supplied image data using the GD library without first validating the declared pixel dimensions in the image header. Because GD allocates its pixel buffers outside the scope of PHP's memory_limit directive, a crafted image with an extremely large declared resolution (for example, 20000 x 20000 pixels) can trigger a multi-gigabyte memory allocation during the decode step, exhausting available system memory and causing the PHP worker process or the host to become unresponsive. Preconditions: - An authenticated MISP user with permission to upload attachments or to create/view event graphs. - The ability to supply a crafted image file (e.g., a PNG with a valid header declaring oversized dimensions). Impact: - Denial of service: memory exhaustion leading to process crash or host unavailability. - No confidentiality or integrity impact is indicated by the evidence. Affected versions: MISP prior to 2.5.52.
SSVC
Exploitation: none Automatable: yes Technical Impact: total
Supplier · CNA (v2.0.3)
Decision recorded 2026-11-23 09:46 UTC
CWE
  • CWE-400 - Uncontrolled Resource Consumption
  • CWE-770 - Allocation of Resources Without Limits or Throttling
Assigner
CIRCL GNA GNA-1
GNA scorecard A 93/100 over 349 records in the last 180 days details
References
Impacted products
Vendor Product Version CPE status
MISP MISP Affected: 0 , < 2.5.52 (semver)
    cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*
Create a notification for this product.
GCVE extensions
bcp-05-x-01
AI-assisted vulnerability information annotation
GCVE-BCP-05-X-01
Whole record AI-generated Human-reviewed GNA-1

Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.

ai-computer-assisted:llm-generatedai-computer-assisted:classification
Model Source Identifier
qwen3.8:27b ollama qwen3.8:27b
bcp-05-x-02
Patch-to-vulnerability generation provenance
GCVE-BCP-05-X-02
Generator
patch2vuln.py on 2026-11-23 09:46
Model
qwen3.8:27b
Input
https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9 c89ecb052555…
Confidence
high
Commit Subject Patch SHA-256
ec1cb6e0bb6b fix: [security] Images are decoded only when their header c89ecb052555…
Fix summary

The fix introduces a dimension guard before any GD decode operation. The image header is parsed first to extract the declared width and height; if the product of the two exceeds a 50-megapixel threshold (or is zero/negative), the decode is skipped and an error is returned. This prevents GD from allocating its out-of-memory_limit pixel buffer for oversized images. The guard is applied in both the attachment thumbnail resize path and the event graph picture rendering path.

Patch summary

Added a MAX_IMAGE_PIXELS constant (50,000,000) and a new static method createImageFromString() in AttachmentTool that calls getimagesizefromstring() to read header dimensions and rejects images exceeding the limit before invoking imagecreatefromstring(). The resizeImage() method now calls createImageFromString() instead of imagecreatefromstring() directly. EventGraph::getPictureData() was updated to delegate to AttachmentTool::createImageFromString() via a new protected createImage() wrapper, with an explicit false-check and exception. A new PHPUnit test file (AttachmentToolImageSizeTest.php) verifies that oversized headers are rejected without triggering a decode, zero-dimension images are rejected, and small valid images still process correctly in both code paths.

CVSS rationale

AV:N - MISP is a network-accessible web application. AC:L - Crafting a PNG with a large IHDR dimension is trivial and requires no special conditions. AT:N - No prior tampering of system data is needed. PR:L - The user must be authenticated and have permission to upload attachments or create event graphs; unauthenticated users cannot trigger the code path. UI:N - No victim interaction beyond the attacker's own request is required. VC:N, VI:N - No confidentiality or integrity impact is evidenced. VA:H - Memory exhaustion can crash the PHP worker or the host, causing a complete loss of availability for all users of that instance. SC:N, SI:N, SA:N - No secondary component impact is indicated.

Weakness rationale
  • CWE-400 The application processes a user-supplied image without bounding the memory that the GD decode step will allocate. The declared pixel dimensions in the image header are attacker-controlled and are not validated before the decode, allowing an attacker to trigger unbounded memory allocation. This is a classic uncontrolled resource consumption (memory) issue.
  • CWE-770 The GD library allocates a pixel buffer proportional to the declared image dimensions without any application-level limit. The patch adds a 50-megapixel cap, confirming that no prior limit existed. This is a specific instance of allocating resources without limits.
Attack pattern rationale
  • CAPEC-124 The attacker supplies a single crafted image whose header declares an extremely large resolution. When the server decodes it, GD allocates a correspondingly large buffer outside PHP's memory_limit, exhausting system memory. This matches the Resource Exhaustion pattern: a single request with a large payload exhausts a finite resource (memory). The mapping is confident because the commit message explicitly references GD buffers bypassing memory_limit and the tests demonstrate a 20000x20000 header triggering the issue.
Assumptions to verify
  • PR:L assumes that uploading attachments or creating event graphs requires an authenticated MISP user with appropriate permissions; the patch does not explicitly state the authentication model, but MISP is a role-based threat-intelligence platform and these are authenticated operations.
  • VA:H assumes that memory exhaustion from a single oversized image decode can crash the PHP worker process or the host, rendering the MISP instance unavailable. The commit message confirms GD buffers bypass memory_limit, supporting this assumption.
  • The 50-megapixel threshold is the developer-chosen limit; the exact memory impact of a 20000x20000 image (approximately 1.6 GB for a 32-bit RGBA buffer) is inferred from GD's 4-bytes-per-pixel allocation noted in the patch comment.
  • CAPEC-124 (Resource Exhaustion) is the closest standard attack pattern; no CAPEC specifically covers 'crafted image header causing out-of-band memory allocation in a library', so this is the best available match.
  • The affected version range starts at 0 (all prior versions) because the explicit context specifies affected_version as '0' and fixed_version as '2.5.52'; no earlier introduction commit is identified in the patch.
Model comparison

Selected qwen3.8:27b by deterministic-consensus-v1
The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.

Model Score Agreement Confidence Assumptions
qwen3.8:27b 8 11 high 5
bcp-05-x-03
Vulnerability handling and disclosure timeline
GCVE-BCP-05-X-03
  1. 2026-11-16 23:23 UTC Fix developed Corrective change authored (ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9): fix: [security] Images are decoded only when their header https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9
  2. 2026-11-23 09:46 UTC Fix available Patch retrieved from the supplied URL; retrieval time is used as the default availability time. https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9

{
  "containers": {
    "cna": {
      "affected": [
        {
          "cpes": [
            "cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "AttachmentTool (attachment thumbnail generation)",
            "EventGraph (event graph preview rendering)"
          ],
          "product": "MISP",
          "programFiles": [
            "app/Lib/Tools/AttachmentTool.php",
            "app/Model/EventGraph.php"
          ],
          "repo": "https://github.com/MISP/MISP",
          "vendor": "MISP",
          "versions": [
            {
              "lessThan": "2.5.52",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "ENISA"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "iglocska"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Claude Opus 5.5"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "MISP contains a denial-of-service vulnerability in its image processing pipeline. When generating attachment thumbnails or rendering event graph preview images, the application decodes user-supplied image data using the GD library without first validating the declared pixel dimensions in the image header.\n\nBecause GD allocates its pixel buffers outside the scope of PHP\u0027s memory_limit directive, a crafted image with an extremely large declared resolution (for example, 20000 x 20000 pixels) can trigger a multi-gigabyte memory allocation during the decode step, exhausting available system memory and causing the PHP worker process or the host to become unresponsive.\n\nPreconditions:\n- An authenticated MISP user with permission to upload attachments or to create/view event graphs.\n- The ability to supply a crafted image file (e.g., a PNG with a valid header declaring oversized dimensions).\n\nImpact:\n- Denial of service: memory exhaustion leading to process crash or host unavailability.\n- No confidentiality or integrity impact is indicated by the evidence.\n\nAffected versions: MISP prior to 2.5.52."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-124",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-124 Resource Exhaustion"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "attackVector": "NETWORK",
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "privilegesRequired": "LOW",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        },
        {
          "format": "SSVC",
          "other": {
            "content": {
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "role": "Supplier",
              "timestamp": "2026-11-23T09:46:36Z",
              "version": "2.0.3"
            },
            "type": "SSVC"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-400",
              "description": "CWE-400 Uncontrolled Resource Consumption",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-770",
              "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "00000000-0000-4000-8000-000000000000"
      },
      "references": [
        {
          "name": "Security patch",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "The fix introduces a dimension guard before any GD decode operation. The image header is parsed first to extract the declared width and height; if the product of the two exceeds a 50-megapixel threshold (or is zero/negative), the decode is skipped and an error is returned. This prevents GD from allocating its out-of-memory_limit pixel buffer for oversized images. The guard is applied in both the attachment thumbnail resize path and the event graph picture rendering path."
        }
      ],
      "title": "MISP: Denial of Service via Unbounded Image Decoding in Attachment Thumbnails and Event Graphs",
      "x_gcve": [
        {
          "extensions": {
            "bcp-05-x-01": {
              "ai_annotations": [
                {
                  "ai_level": "generated",
                  "description": "Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.",
                  "gna_source": 1,
                  "models": [
                    {
                      "gna_source": 1,
                      "identifier": "qwen3.8:27b",
                      "name": "qwen3.8:27b",
                      "source": "ollama"
                    }
                  ],
                  "review_status": "full",
                  "scope": "record",
                  "tags": [
                    "ai-computer-assisted:llm-generated",
                    "ai-computer-assisted:classification"
                  ]
                }
              ]
            },
            "bcp-05-x-02": {
              "x_patch2vuln": {
                "assumptions": [
                  "PR:L assumes that uploading attachments or creating event graphs requires an authenticated MISP user with appropriate permissions; the patch does not explicitly state the authentication model, but MISP is a role-based threat-intelligence platform and these are authenticated operations.",
                  "VA:H assumes that memory exhaustion from a single oversized image decode can crash the PHP worker process or the host, rendering the MISP instance unavailable. The commit message confirms GD buffers bypass memory_limit, supporting this assumption.",
                  "The 50-megapixel threshold is the developer-chosen limit; the exact memory impact of a 20000x20000 image (approximately 1.6 GB for a 32-bit RGBA buffer) is inferred from GD\u0027s 4-bytes-per-pixel allocation noted in the patch comment.",
                  "CAPEC-124 (Resource Exhaustion) is the closest standard attack pattern; no CAPEC specifically covers \u0027crafted image header causing out-of-band memory allocation in a library\u0027, so this is the best available match.",
                  "The affected version range starts at 0 (all prior versions) because the explicit context specifies affected_version as \u00270\u0027 and fixed_version as \u00272.5.52\u0027; no earlier introduction commit is identified in the patch."
                ],
                "capecRationale": [
                  {
                    "capecId": "CAPEC-124",
                    "rationale": "The attacker supplies a single crafted image whose header declares an extremely large resolution. When the server decodes it, GD allocates a correspondingly large buffer outside PHP\u0027s memory_limit, exhausting system memory. This matches the Resource Exhaustion pattern: a single request with a large payload exhausts a finite resource (memory). The mapping is confident because the commit message explicitly references GD buffers bypassing memory_limit and the tests demonstrate a 20000x20000 header triggering the issue."
                  }
                ],
                "commit": "ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9",
                "confidence": "high",
                "credits": [
                  {
                    "lang": "en",
                    "type": "reporter",
                    "value": "ENISA"
                  },
                  {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "iglocska"
                  },
                  {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Claude Opus 5.5"
                  },
                  {
                    "lang": "en",
                    "type": "tool",
                    "value": "Claude Opus 5.5"
                  }
                ],
                "cvssRationale": "AV:N - MISP is a network-accessible web application. AC:L - Crafting a PNG with a large IHDR dimension is trivial and requires no special conditions. AT:N - No prior tampering of system data is needed. PR:L - The user must be authenticated and have permission to upload attachments or create event graphs; unauthenticated users cannot trigger the code path. UI:N - No victim interaction beyond the attacker\u0027s own request is required. VC:N, VI:N - No confidentiality or integrity impact is evidenced. VA:H - Memory exhaustion can crash the PHP worker or the host, causing a complete loss of availability for all users of that instance. SC:N, SI:N, SA:N - No secondary component impact is indicated.",
                "fixSummary": "The fix introduces a dimension guard before any GD decode operation. The image header is parsed first to extract the declared width and height; if the product of the two exceeds a 50-megapixel threshold (or is zero/negative), the decode is skipped and an error is returned. This prevents GD from allocating its out-of-memory_limit pixel buffer for oversized images. The guard is applied in both the attachment thumbnail resize path and the event graph picture rendering path.",
                "generatedAt": "2026-11-23T09:46:36.747304Z",
                "generator": "patch2vuln.py",
                "model": "qwen3.8:27b",
                "modelComparison": {
                  "potentialErrors": [],
                  "rankings": [
                    {
                      "agreementScore": 11,
                      "assumptionCount": 5,
                      "confidence": "high",
                      "model": "qwen3.8:27b",
                      "score": 8
                    }
                  ],
                  "selectedModel": "qwen3.8:27b",
                  "selectionMethod": "deterministic-consensus-v1",
                  "selectionNotice": "The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required."
                },
                "patchSha256": "c89ecb05255524f7c20f1dfda8c93e79c1eab6b008c497ccb53b2463439b78ac",
                "patchSummary": "Added a MAX_IMAGE_PIXELS constant (50,000,000) and a new static method createImageFromString() in AttachmentTool that calls getimagesizefromstring() to read header dimensions and rejects images exceeding the limit before invoking imagecreatefromstring(). The resizeImage() method now calls createImageFromString() instead of imagecreatefromstring() directly. EventGraph::getPictureData() was updated to delegate to AttachmentTool::createImageFromString() via a new protected createImage() wrapper, with an explicit false-check and exception. A new PHPUnit test file (AttachmentToolImageSizeTest.php) verifies that oversized headers are rejected without triggering a decode, zero-dimension images are rejected, and small valid images still process correctly in both code paths.",
                "patchTruncated": false,
                "patches": [
                  {
                    "commit": "ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9",
                    "date": "Tue, 17 Nov 2026 00:23:09 +0100",
                    "patchSha256": "c89ecb05255524f7c20f1dfda8c93e79c1eab6b008c497ccb53b2463439b78ac",
                    "retrievedAt": "2026-11-23T09:46:08.475752Z",
                    "source": "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9",
                    "sourceUrl": "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9",
                    "subject": "fix: [security] Images are decoded only when their header"
                  }
                ],
                "source": "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9",
                "ssvc": {
                  "options": [
                    {
                      "Exploitation": "none"
                    },
                    {
                      "Automatable": "yes"
                    },
                    {
                      "Technical Impact": "total"
                    }
                  ],
                  "role": "Supplier",
                  "timestamp": "2026-11-23T09:46:36Z",
                  "version": "2.0.3"
                },
                "subject": "fix: [security] Images are decoded only when their header",
                "weaknessRationale": [
                  {
                    "cweId": "CWE-400",
                    "rationale": "The application processes a user-supplied image without bounding the memory that the GD decode step will allocate. The declared pixel dimensions in the image header are attacker-controlled and are not validated before the decode, allowing an attacker to trigger unbounded memory allocation. This is a classic uncontrolled resource consumption (memory) issue."
                  },
                  {
                    "cweId": "CWE-770",
                    "rationale": "The GD library allocates a pixel buffer proportional to the declared image dimensions without any application-level limit. The patch adds a 50-megapixel cap, confirming that no prior limit existed. This is a specific instance of allocating resources without limits."
                  }
                ]
              }
            },
            "bcp-05-x-03": {
              "x_timeline": {
                "events": [
                  {
                    "description": "Corrective change authored (ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9): fix: [security] Images are decoded only when their header",
                    "id": "evt-fix-developed-1",
                    "references": [
                      "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9"
                    ],
                    "timestamp": "2026-11-16T23:23:09Z",
                    "type": "fix-developed"
                  },
                  {
                    "description": "Patch retrieved from the supplied URL; retrieval time is used as the default availability time.",
                    "id": "evt-fix-available-1",
                    "references": [
                      "https://github.com/MISP/MISP/commit/ec1cb6e0bb6b8a910020bc22b881560e3eecb8a9"
                    ],
                    "timestamp": "2026-11-23T09:46:08.475752Z",
                    "type": "fix-available"
                  }
                ]
              }
            }
          },
          "recordType": "advisory",
          "vulnId": "GCVE-1-2026-20443"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "00000000-0000-4000-8000-000000000000",
    "cveId": "CVE-2026-135250",
    "datePublished": "2026-11-23T15:38:42.185413Z",
    "dateReserved": "2026-11-23T15:43:07.677Z",
    "dateUpdated": "2026-11-23T15:43:07.827313Z",
    "state": "PUBLISHED",
    "vulnId": "GCVE-1-2026-20443"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Solutions

CNA
The fix introduces a dimension guard before any GD decode operation. The image header is parsed first to extract the declared width and height; if the product of the two exceeds a 50-megapixel threshold (or is zero/negative), the decode is skipped and an error is returned. This prevents GD from allocating its out-of-memory_limit pixel buffer for oversized images. The guard is applied in both the attachment thumbnail resize path and the event graph picture rendering path.

Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.