{"answers":{"affected":"3 open source packages ship an affected version, including github.com/nektos/act. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22726 exists.","fix":"Upgrade github.com/nektos/act to 0.2.40 or later.","what":"CVE-2023-22726 is a high-severity path traversal vulnerability in nektos act, published on 20 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-22726 and fix it if it is affected.\n\nWhat it is: CVE-2023-22726 is a high-severity path traversal vulnerability in nektos act, published on 20 Jan 2023. Any signed-in user can exploit it over the 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-2023-22726 exists.\n\nAffected packages and fixed versions:\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.40\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.40\n- github.com/nektos/act (Go): affected all versions; fixed in 0.2.40\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-22726/ (Markdown: https://insights.sbomify.com/CVE-2023-22726/index.md)","id":"CVE-2023-22726","markdown":"https://insights.sbomify.com/CVE-2023-22726/index.md","name":"CVE-2023-22726","record":{"aliases":["GHSA-pc99-qmg4-rcff","GO-2023-1504"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions runner","requires_auth":"low_privilege","summary":"Attackers can exploit path traversal in the artifact server to overwrite arbitrary files, leading to privilege escalation on the host.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"act","vendor":"act_project"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"act is a project which allows for local running of github actions. The artifact server that stores artifacts from Github Action runs does not sanitize path inputs. This allows an attacker to download and overwrite arbitrary files on the host from a Github Action. This issue may lead to privilege escalation. The /upload endpoint is vulnerable to path traversal as filepath is user controlled, and ultimately flows into os.Mkdir and os.Open. The /artifact endpoint is vulnerable to path traversal as the path is variable is user controlled, and the specified file is ultimately returned by the server. This has been addressed in version 0.2.40. Users are advised to upgrade. Users unable to upgrade may, during implementation of Open and OpenAtEnd for FS, ensure to use ValidPath() to check against path traversal or clean the user-provided paths manually.","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":"Unrestricted file upload leading to privilege escalation in act","id":"CVE-2023-22726","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":7,"next":{"headline":"Database Query::offset() and limit() vulnerable to SQL injection in cakephp","id":"CVE-2023-22727"},"packages":[{"ecosystem":"Go","fixed":["0.2.40"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":null,"source":"GHSA-pc99-qmg4-rcff"},{"ecosystem":"Go","fixed":["0.2.40"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":"pkg:golang/github.com/nektos/act","source":"GHSA-pc99-qmg4-rcff"},{"ecosystem":"Go","fixed":["0.2.40"],"introduced":["0"],"last_affected":[],"package":"github.com/nektos/act","purl":"pkg:golang/github.com/nektos/act","source":"GO-2023-1504"}],"prev":{"headline":"glpi vulnerable to XSS on external links","id":"CVE-2023-22725"},"products":["act"],"published":"2023-01-20","related":[],"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":"2025-03-10","vendors":["nektos"]},"summary":"Attackers can exploit path traversal in the artifact server to overwrite arbitrary files, leading to privilege escalation on the host.","url":"https://insights.sbomify.com/CVE-2023-22726/"}