{"answers":{"affected":"3 open source packages ship an affected version, including github.com/wolfi-dev/wolfictl.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35183 exists.","fix":"Upgrade github.com/wolfi-dev/wolfictl to 0.16.10 or later.","what":"CVE-2024-35183 is a medium-severity vulnerability in wolfi-dev wolfictl, published on 15 May 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-35183 and fix it if it is affected.\n\nWhat it is: CVE-2024-35183 is a medium-severity vulnerability in wolfi-dev wolfictl, published on 15 May 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-35183 exists.\n\nAffected packages and fixed versions:\n- github.com/wolfi-dev/wolfictl (Go): affected all versions; fixed in 0.16.10\n- github.com/wolfi-dev/wolfictl (Go): affected all versions; fixed in 0.16.10\n- github.com/wolfi-dev/wolfictl (Go): affected all versions; fixed in 0.16.10\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-35183/ (Markdown: https://insights.sbomify.com/CVE-2024-35183/index.md)","id":"CVE-2024-35183","markdown":"https://insights.sbomify.com/CVE-2024-35183/index.md","name":"CVE-2024-35183","record":{"aliases":["GHSA-8fg7-hp93-qhvr","GO-2024-2863"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Go CLI tool","requires_auth":"low_privilege","summary":"wolfictl may leak GitHub tokens to non-GitHub servers when accessing external repositories, exposing credentials to unauthorized parties.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"wolfictl is a command line tool for working with Wolfi. A git authentication issue in versions prior to 0.16.10 allows a local user’s GitHub token to be sent to remote servers other than `github.com`. Most git-dependent functionality in wolfictl relies on its own `git` package, which contains centralized logic for implementing interactions with git repositories. Some of this functionality requires authentication in order to access private repositories. A central function `GetGitAuth` looks for a GitHub token in the environment variable `GITHUB_TOKEN` and returns it as an HTTP basic auth object to be used with the `github.com/go-git/go-git/v5` library. Most callers (direct or indirect) of `GetGitAuth` use the token to authenticate to github.com only; however, in some cases callers were passing this authentication without checking that the remote git repository was hosted on github.com. This behavior has existed in one form or another since commit 0d06e1578300327c212dda26a5ab31d09352b9d0 - committed January 25, 2023. This impacts anyone who ran the `wolfictl check update` commands with a Melange configuration that included a `git-checkout` directive step that referenced a git repository not hosted on github.com. This also impacts anyone who ran `wolfictl update \u003curl\u003e` with a remote URL outside of github.com. Additionally, these subcommands must have run with the `GITHUB_TOKEN` environment variable set to a valid GitHub token. Users should upgrade to version 0.16.10 to receive a patch.","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":"wolfictl leaks GitHub tokens to remote non-GitHub git servers","id":"CVE-2024-35183","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":6,"next":{"headline":"paperless-ngx's remote user auth via header works even when disabling it for API","id":"CVE-2024-35184"},"packages":[{"ecosystem":"Go","fixed":["0.16.10"],"introduced":["0"],"last_affected":[],"package":"github.com/wolfi-dev/wolfictl","purl":null,"source":"GHSA-8fg7-hp93-qhvr"},{"ecosystem":"Go","fixed":["0.16.10"],"introduced":["0"],"last_affected":[],"package":"github.com/wolfi-dev/wolfictl","purl":"pkg:golang/github.com/wolfi-dev/wolfictl","source":"GHSA-8fg7-hp93-qhvr"},{"ecosystem":"Go","fixed":["0.16.10"],"introduced":["0"],"last_affected":[],"package":"github.com/wolfi-dev/wolfictl","purl":"pkg:golang/github.com/wolfi-dev/wolfictl","source":"GO-2024-2863"}],"prev":{"headline":"GHSL-2024-014 Meshery SQL Injection vulnerability","id":"CVE-2024-35182"},"products":["wolfictl"],"published":"2024-05-15","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["wolfi-dev"]},"summary":"wolfictl may leak GitHub tokens to non-GitHub servers when accessing external repositories, exposing credentials to unauthorized parties.","url":"https://insights.sbomify.com/CVE-2024-35183/"}