Remote code execution via EXIF styles eval
Published Sep 1, 2026 · Updated Sep 2, 2026
Code injection in lllyasviel Fooocus 2.1.854 through 2.5.5 allows remote attackers to execute Python code via crafted image EXIF metadata. The get_list function in modules/meta_parser.py passes the untrusted styles value from imported EXIF metadata directly to eval(). Execution occurs when an operator imports the crafted image and applies its metadata, granting the payload the Fooocus process's privileges.
Summary
What happened
Code injection in lllyasviel Fooocus 2.1.854 through 2.5.5 allows remote attackers to execute Python code via crafted image EXIF metadata. The get_list function in modules/meta_parser.py passes the untrusted styles value from imported EXIF metadata directly to eval(). Execution occurs when an operator imports the crafted image and applies its metadata, granting the payload the Fooocus process's privileges.
The record
- CVE
- CVE-2026-51974
- Published
- Sep 1, 2026
- Updated
- Sep 2, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- T1059.006
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 1, 2026CVE publishedPublication date reported by the CVE source.
- Sep 2, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
No CVSS assessment is available in this record.
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Fooocus EXIF styles eval proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo