{"answers":{"affected":"3 open source packages ship an affected version, including github.com/caddyserver/caddy/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45135 exists.","fix":"Upgrade github.com/caddyserver/caddy/v2 to 2.11.3 or later.","what":"CVE-2026-45135 is a high-severity code injection vulnerability in caddyserver caddy, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-45135 and fix it if it is affected.\n\nWhat it is: CVE-2026-45135 is a high-severity code injection vulnerability in caddyserver caddy, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45135 exists.\n\nAffected packages and fixed versions:\n- github.com/caddyserver/caddy/v2 (Go): affected from 2.7.0; fixed in 2.11.3\n- github.com/caddyserver/caddy/v2 (Go): affected from 2.7.0; fixed in 2.11.3\n- github.com/caddyserver/caddy/v2 (Go): affected from 2.7.0; fixed in 2.11.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45135/ (Markdown: https://insights.sbomify.com/CVE-2026-45135/index.md)","id":"CVE-2026-45135","markdown":"https://insights.sbomify.com/CVE-2026-45135/index.md","name":"CVE-2026-45135","record":{"aliases":["CLEANSTART-2026-CJ43596","DEBIAN-CVE-2026-45135","GHSA-m675-2p33-xv9g","GO-2026-5492","MINI-8qh5-r8h3-45gp","UBUNTU-CVE-2026-45135"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Caddy web server","requires_auth":"none","summary":"Attackers can execute arbitrary code by exploiting unsafe Unicode handling in Caddy's FastCGI module to bypass script extension checks.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"caddy","vendor":"caddyserver"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"},{"id":"CWE-176","name":"Improper Handling of Unicode Encoding"}],"description":"Caddy is an extensible server platform that uses TLS by default. From 2.7.0 until 2.11.3, the FastCGI transport's splitPos() in modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go misuses golang.org/x/text/search with search.IgnoreCase when the request path contains a non-ASCII byte. Two distinct flaws in that fallback let an attacker mislead Caddy's FastCGI splitting into treating a non-.php (or other configured split_path extension) file as a script. In any deployment where the attacker can place content into a file served via FastCGI (uploads, file storage, etc.), this can be escalated to remote code execution by crafting a URL whose path triggers either flaw. This vulnerability is fixed in 2.11.3.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files","id":"CVE-2026-45135","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"claude-code-cache-fix: Local code execution via Python triple-quote injection in tools/quota-statusline.sh","id":"CVE-2026-45136"},"packages":[{"ecosystem":"Go","fixed":["2.11.3"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/caddyserver/caddy/v2","purl":null,"source":"GHSA-m675-2p33-xv9g"},{"ecosystem":"Go","fixed":["2.11.3"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/caddyserver/caddy/v2","purl":"pkg:golang/github.com/caddyserver/caddy/v2","source":"GHSA-m675-2p33-xv9g"},{"ecosystem":"Go","fixed":["2.11.3"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/caddyserver/caddy/v2","purl":"pkg:golang/github.com/caddyserver/caddy/v2","source":"GO-2026-5492"}],"prev":{"headline":"LangSmith Client SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning","id":"CVE-2026-45134"},"products":["caddy"],"published":"2026-06-23","related":[{"cvss_score":9.8,"headline":"Caddy vulnerable to Authentication Bypass due to mishandling of TLS client authentication","id":"CVE-2018-21246","kev_date_added":null,"published":"2020-06-15"},{"cvss_score":8.9,"headline":"Caddy: Unicode case-folding length expansion causes incorrect split_path index in FastCGI transport","id":"CVE-2026-27590","kev_date_added":null,"published":"2026-02-24"},{"cvss_score":8.8,"headline":"Caddy's mTLS client authentication silently fails open when CA certificate file is missing or malformed","id":"CVE-2026-27586","kev_date_added":null,"published":"2026-02-24"},{"cvss_score":8.1,"headline":"Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`","id":"CVE-2026-52845","kev_date_added":null,"published":"2026-06-23"},{"cvss_score":8.1,"headline":"Caddy forward_auth copy_headers Does Not Strip Client-Supplied Headers, Allowing Identity Injection and Privilege Escalation","id":"CVE-2026-30851","kev_date_added":null,"published":"2026-03-07"},{"cvss_score":7.7,"headline":"Caddy: MatchPath %xx (escaped-path) branch skips case normalization, enabling path-based route/auth bypass","id":"CVE-2026-27587","kev_date_added":null,"published":"2026-02-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["caddyserver"]},"summary":"Attackers can execute arbitrary code by exploiting unsafe Unicode handling in Caddy's FastCGI module to bypass script extension checks.","url":"https://insights.sbomify.com/CVE-2026-45135/"}