{"answers":{"affected":"4 open source packages ship an affected version, including github.com/caddyserver/caddy and github.com/caddyserver/caddy/v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-29718 in the wild and no public exploit code.","fix":"Upgrade github.com/caddyserver/caddy to 2.5.0 or later.","what":"CVE-2022-29718 is a medium-severity vulnerability in n/a, published on 2 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-29718 and fix it if it is affected.\n\nWhat it is: CVE-2022-29718 is a medium-severity vulnerability in n/a, published on 2 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-29718 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/caddyserver/caddy (Go): affected all versions; fixed in 2.5.0\n- github.com/caddyserver/caddy (Go): affected all versions; fixed in 2.5.0\n- github.com/caddyserver/caddy/v2 (Go): affected all versions; fixed in 2.5.0\n- github.com/caddyserver/caddy/v2 (Go): affected all versions; fixed in 2.5.0\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-2022-29718/ (Markdown: https://insights.sbomify.com/CVE-2022-29718/index.md)","id":"CVE-2022-29718","markdown":"https://insights.sbomify.com/CVE-2022-29718/index.md","name":"CVE-2022-29718","record":{"aliases":["GHSA-2927-hv3p-f3vp","openSUSE-SU-2022:10007-1","openSUSE-SU-2024:12132-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Caddy web server","requires_auth":"none","summary":"An open redirect in Caddy allows attackers to redirect users to malicious sites via crafted links, potentially facilitating phishing attacks.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"caddy","vendor":"caddyserver"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Caddy v2.4 was discovered to contain an open redirect vulnerability. A remote unauthenticated attacker may exploit this vulnerability to redirect users to arbitrary web URLs by tricking the victim users to click on crafted links.","ecosystems":["Go","SUSE:Package Hub 15 SP4","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Open redirect in caddy","id":"CVE-2022-29718","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"open_redirect","year":"2022"},"n_packages":7,"n_references":2,"next":{"headline":"Path traversal in n/a","id":"CVE-2022-29720"},"packages":[{"ecosystem":"Go","fixed":["2.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/caddyserver/caddy","purl":null,"source":"GHSA-2927-hv3p-f3vp"},{"ecosystem":"Go","fixed":["2.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/caddyserver/caddy","purl":"pkg:golang/github.com/caddyserver/caddy","source":"GHSA-2927-hv3p-f3vp"},{"ecosystem":"Go","fixed":["2.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/caddyserver/caddy/v2","purl":null,"source":"GHSA-2927-hv3p-f3vp"},{"ecosystem":"Go","fixed":["2.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/caddyserver/caddy/v2","purl":"pkg:golang/github.com/caddyserver/caddy/v2","source":"GHSA-2927-hv3p-f3vp"},{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["2.5.1-bp154.2.5.1"],"introduced":["0"],"last_affected":[],"package":"caddy","purl":"pkg:rpm/suse/caddy\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2022:10007-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.5.1-bp154.2.5.1"],"introduced":["0"],"last_affected":[],"package":"caddy","purl":"pkg:rpm/opensuse/caddy\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2022:10007-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.5.1-2.1"],"introduced":["0"],"last_affected":[],"package":"caddy","purl":"pkg:rpm/opensuse/caddy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12132-1"}],"prev":{"headline":"Command injection in librenms","id":"CVE-2022-29712"},"products":["n/a"],"published":"2022-06-02","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: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files","id":"CVE-2026-45135","kev_date_added":null,"published":"2026-06-23"},{"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":"SUSE","prefix":"openSUSE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An open redirect in Caddy allows attackers to redirect users to malicious sites via crafted links, potentially facilitating phishing attacks.","url":"https://insights.sbomify.com/CVE-2022-29718/"}