{"answers":{"affected":"3 open source packages ship an affected version, including github.com/woodpecker-ci/woodpecker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-40034 in the wild and no public exploit code.","fix":"Upgrade github.com/woodpecker-ci/woodpecker to 1.0.2 or later.","what":"CVE-2023-40034 is a high-severity vulnerability in woodpecker-ci woodpecker, published on 16 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-40034 and fix it if it is affected.\n\nWhat it is: CVE-2023-40034 is a high-severity vulnerability in woodpecker-ci woodpecker, published on 16 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-40034 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/woodpecker-ci/woodpecker (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/woodpecker-ci/woodpecker (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/woodpecker-ci/woodpecker (Go): affected from 1.0.0; fixed in 1.0.2\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-2023-40034/ (Markdown: https://insights.sbomify.com/CVE-2023-40034/index.md)","id":"CVE-2023-40034","markdown":"https://insights.sbomify.com/CVE-2023-40034/index.md","name":"CVE-2023-40034","record":{"aliases":["GHSA-4gcf-5m39-98mc","GO-2023-2014"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"CI/CD server","requires_auth":"none","summary":"Attackers can take over repositories by sending malformed webhook data if the CI system is publicly accessible.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"woodpecker","vendor":"woodpecker-ci"}],"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"}],"description":"Woodpecker is a community fork of the Drone CI system. In affected versions an attacker can post malformed webhook data witch lead to an update of the repository data that can e.g. allow the takeover of an repo. This is only critical if the CI is configured for public usage and connected to a forge witch is also in public usage. This issue has been addressed in version 1.0.2. Users are advised to upgrade. Users unable to upgrade should secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall.","ecosystems":["Go"],"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":"Repositoty takeover in woodpecker-ci","id":"CVE-2023-40034","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"business_logic","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Craft CMS vulnerable to Remote Code Execution via validatePath bypass","id":"CVE-2023-40035"},"packages":[{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/woodpecker-ci/woodpecker","purl":null,"source":"GHSA-4gcf-5m39-98mc"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/woodpecker-ci/woodpecker","purl":"pkg:golang/github.com/woodpecker-ci/woodpecker","source":"GHSA-4gcf-5m39-98mc"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/woodpecker-ci/woodpecker","purl":"pkg:golang/github.com/woodpecker-ci/woodpecker","source":"GO-2023-2014"}],"prev":{"headline":"Server-Side Request Forgery via Avatar upload in flarum","id":"CVE-2023-40033"},"products":["woodpecker"],"published":"2023-08-16","related":[{"cvss_score":8.8,"headline":"Custom workspace allow to overwrite plugin entrypoint executable in Woodpecker","id":"CVE-2024-41121","kev_date_added":null,"published":"2024-07-19"},{"cvss_score":7.5,"headline":"Custom environment variables allow to alter execution flow of plugins in Woodpecker","id":"CVE-2024-41122","kev_date_added":null,"published":"2024-07-19"},{"cvss_score":6.1,"headline":"Woodpecker allows cross-site scripting (XSS) via build logs","id":"CVE-2022-29947","kev_date_added":null,"published":"2022-04-29"}],"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-02","vendors":["woodpecker-ci"]},"summary":"Attackers can take over repositories by sending malformed webhook data if the CI system is publicly accessible.","url":"https://insights.sbomify.com/CVE-2023-40034/"}