{"answers":{"affected":"5 open source packages ship an affected version, including github.com/projectdiscovery/nuclei/v3, github.com/projectdiscovery/nuclei and github.com/projectdiscovery/nuclei/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43405 exists.","fix":"Upgrade github.com/projectdiscovery/nuclei/v3 to 3.3.2 or later.","what":"CVE-2024-43405 is a high-severity code injection vulnerability in projectdiscovery nuclei, published on 4 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-43405 and fix it if it is affected.\n\nWhat it is: CVE-2024-43405 is a high-severity code injection vulnerability in projectdiscovery nuclei, published on 4 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43405 exists.\n\nAffected packages and fixed versions:\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.3.2\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.3.2\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.3.2\n- github.com/projectdiscovery/nuclei (Go): affected all versions; no fix listed\n- github.com/projectdiscovery/nuclei/v2 (Go): affected all versions; no fix listed\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-2024-43405/ (Markdown: https://insights.sbomify.com/CVE-2024-43405/index.md)","id":"CVE-2024-43405","markdown":"https://insights.sbomify.com/CVE-2024-43405/index.md","name":"CVE-2024-43405","record":{"aliases":["GHSA-7h5p-mmpp-hgmm","GO-2024-3114"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Vulnerability scanner","requires_auth":"none","summary":"Attackers can bypass signature verification to execute malicious code via custom templates in Nuclei, affecting CLI and SDK users.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nuclei","vendor":"projectdiscovery"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Nuclei is a vulnerability scanner powered by YAML based templates. Starting in version 3.0.0 and prior to version 3.3.2, a vulnerability in Nuclei's template signature verification system could allow an attacker to bypass the signature check and possibly execute malicious code via custom code template. The vulnerability is present in the template signature verification process, specifically in the `signer` package. The vulnerability stems from a discrepancy between how the signature verification process and the YAML parser handle newline characters, combined with the way multiple signatures are processed. This allows an attacker to inject malicious content into a template while maintaining a valid signature for the benign part of the template. CLI users are affected if they execute custom code templates from unverified sources. This includes templates authored by third parties or obtained from unverified repositories. SDK Users are affected if they are developers integrating Nuclei into their platforms, particularly if they permit the execution of custom code templates by end-users. The vulnerability is addressed in Nuclei v3.3.2. Users are strongly recommended to update to this version to mitigate the security risk. As an interim measure, users should refrain from using custom templates if unable to upgrade immediately. Only trusted, verified templates should be executed. Those who are unable to upgrade Nuclei should disable running custom code templates as a workaround.","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":"Nuclei Template Signature Verification Bypass","id":"CVE-2024-43405","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"LF Edge eKuiper has a SQL Injection in sqlKvStore","id":"CVE-2024-43406"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei","purl":"pkg:golang/github.com/projectdiscovery/nuclei","source":"GO-2024-3114"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v2","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v2","source":"GO-2024-3114"},{"ecosystem":"Go","fixed":["3.3.2"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":null,"source":"GHSA-7h5p-mmpp-hgmm"},{"ecosystem":"Go","fixed":["3.3.2"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v3","source":"GHSA-7h5p-mmpp-hgmm"},{"ecosystem":"Go","fixed":["3.3.2"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v3","source":"GO-2024-3114"}],"prev":{"headline":"Remote Code Execution Vulnerability in MEGABOT","id":"CVE-2024-43404"},"products":["nuclei"],"published":"2024-09-04","related":[{"cvss_score":7.5,"headline":"Nuclei Path Traversal vulnerability","id":"CVE-2023-37896","kev_date_added":null,"published":"2023-08-04"},{"cvss_score":7.4,"headline":"Unsigned code template execution through workflows in projectdiscovery/nuclei","id":"CVE-2024-27920","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":5.5,"headline":"Nuclei: Local File Read via require() Module Loader Bypass","id":"CVE-2026-41646","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":5.3,"headline":"Nuclei: Environment variable disclosure via Response-Derived DSL Expressions","id":"CVE-2026-41645","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":4,"headline":"Code injection in Nuclei","id":"CVE-2026-41282","kev_date_added":null,"published":"2026-04-20"}],"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":"2024-09-04","vendors":["projectdiscovery"]},"summary":"Attackers can bypass signature verification to execute malicious code via custom templates in Nuclei, affecting CLI and SDK users.","url":"https://insights.sbomify.com/CVE-2024-43405/"}