
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-22777 is a CRLF Injection vulnerability (CWE-93) in ComfyUI-Manager, an extension for the ComfyUI AI image generation platform. It allows unauthenticated remote attackers to inject special characters into HTTP query parameters, enabling arbitrary configuration values to be written to the config.ini file. Affected versions include all ComfyUI-Manager releases prior to 3.39.2 (v3.x branch) and versions 4.0.0 through 4.0.4 (v4.x branch). The vulnerability was published on January 10, 2026, with patches released the same day. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Security Advisory).
The root cause is improper neutralization of CRLF sequences (CWE-93) in the write_config() function within glob/manager_core.py. When HTTP query parameters are passed to this function without sanitization, an attacker can embed carriage return (\r) and line feed (\n) characters to inject new key-value pairs into the INI-format config.ini file, as Python's ConfigParser treats these as record delimiters. Exploitation requires no authentication or user interaction, but is primarily relevant when ComfyUI is launched with the --listen option, exposing the manager's HTTP API to remote clients. The patch added explicit stripping of \r, \n, and null (\x00) characters from all string values before writing to the config file (Patch Commit, GitHub Advisory).
Successful exploitation allows an unauthenticated attacker to tamper with security settings or modify application behavior by injecting arbitrary key-value pairs into config.ini. This primarily affects integrity — confidentiality and availability are not directly impacted per the CVSS assessment. Depending on which configuration values are overwritten or injected, an attacker could potentially disable security controls, alter trust levels, or manipulate ComfyUI-Manager's operational behavior in ways that could facilitate further compromise of the host system (Security Advisory, GitHub Advisory).
No public proof-of-concept exploit code was known at the time of disclosure, and there is no evidence of in-the-wild exploitation as of the reporting date. The EPSS score is approximately 0.009% (1st percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack requires no authentication, no user interaction, and low complexity, making it straightforward to exploit against internet-exposed instances. A PoC repository (github.com/wcnmwcis/CVE-2026-22777) appeared in late January 2026, and Vulhub added a related environment in early 2026 (GitHub Advisory, Feedly).
--listen flag using tools like Shodan or Censys, targeting the ComfyUI-Manager HTTP API (typically on port 8188). Confirm the ComfyUI-Manager version is below 3.39.2 or between 4.0.0 and 4.0.4.write_config() function (e.g., configuration-setting endpoints).%0D%0A) followed by a new INI key-value pair, such as: ?param=value%0D%0Amalicious_key=malicious_value.write_config() function writes the parameter value — including the injected CRLF and new key — directly into config.ini via Python's ConfigParser.config.ini. Depending on the injected key, this could disable security restrictions, alter trust levels, or modify application behavior to enable further actions (Security Advisory, Patch Commit).%0D%0A, %0A, %0D) in query parameters; inbound connections to port 8188 from untrusted external IP addresses.config.ini file of the ComfyUI-Manager installation directory; modification timestamps on config.ini that do not correspond to legitimate user activity.manager_server.py referencing invalid snapshot targets (post-patch indicator of attempted path traversal).Update ComfyUI-Manager to version 3.39.2 (v3.x branch) or 4.0.5 (v4.x branch), which add sanitization logic to the write_config() function to strip CRLF and null characters from all string values. If immediate upgrading is not possible, apply the following workarounds: run ComfyUI without the --listen option (localhost only), restrict external access via firewall rules, or run only on trusted internal networks. Administrators should also review config.ini for any unauthorized configuration changes that may have occurred prior to patching (Security Advisory, GitHub Advisory).
The vulnerability was reported by four independent researchers: 李存义, D0n9 Li, Swings, and Osword from SGLAB of Legendsec at Qi'anxin Group, indicating coordinated responsible disclosure. The CISA vulnerability bulletin for the week of January 5, 2026 referenced this CVE. Social media coverage appeared on Bluesky and Mastodon (TheHackerWire), and security aggregators including Vulners, VulDB, and CVEFeed.io picked up the advisory shortly after publication. A technical write-up was published by CertCube Labs (GitHub Advisory, CISA Bulletin).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."