{"answers":{"affected":"5 open source packages ship an affected version, including appwrite and appwrite-cli. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50974 exists.","fix":"Upgrade appwrite to 3.0.0 or later.","what":"CVE-2023-50974 is a medium-severity vulnerability in n/a, published on 9 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-50974 and fix it if it is affected.\n\nWhat it is: CVE-2023-50974 is a medium-severity vulnerability in n/a, published on 9 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50974 exists.\n\nAffected packages and fixed versions:\n- appwrite (PyPI): affected all versions; fixed in 3.0.0\n- appwrite (PyPI): affected all versions; fixed in 3.0.0\n- appwrite (PyPI): affected all versions; fixed in 3.0.0\n- appwrite-cli (npm): affected all versions; fixed in 3.0.0\n- appwrite-cli (npm): affected all versions; fixed in 3.0.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-2023-50974/ (Markdown: https://insights.sbomify.com/CVE-2023-50974/index.md)","id":"CVE-2023-50974","markdown":"https://insights.sbomify.com/CVE-2023-50974/index.md","name":"CVE-2023-50974","record":{"aliases":["GHSA-g777-crp9-m27g","PYSEC-2024-2"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Appwrite CLI","requires_auth":"low_privilege","summary":"Local attackers can read Appwrite user credentials from the CLI configuration file due to insecure file permissions.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"command_line_interface","vendor":"appwrite"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"}],"description":"In Appwrite CLI before 3.0.0, when using the login command, the credentials of the Appwrite user are stored in a ~/.appwrite/prefs.json file with 0644 as UNIX permissions. Any user of the local system can access those credentials.","ecosystems":["PyPI","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Apprite CLI makes Use of Hard-coded Credentials","id":"CVE-2023-50974","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"hardcoded_credentials","year":"2023"},"n_packages":5,"n_references":2,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2023-50975"},"packages":[{"ecosystem":"PyPI","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"appwrite","purl":null,"source":"GHSA-g777-crp9-m27g"},{"ecosystem":"PyPI","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"appwrite","purl":"pkg:pypi/appwrite","source":"GHSA-g777-crp9-m27g"},{"ecosystem":"PyPI","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"appwrite","purl":"pkg:pypi/appwrite","source":"PYSEC-2024-2"},{"ecosystem":"npm","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"appwrite-cli","purl":null,"source":"GHSA-g777-crp9-m27g"},{"ecosystem":"npm","fixed":["3.0.0"],"introduced":["0"],"last_affected":[],"package":"appwrite-cli","purl":"pkg:npm/appwrite-cli","source":"GHSA-g777-crp9-m27g"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2023-50969"},"products":["n/a"],"published":"2024-01-09","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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"partial"},"state":"PUBLISHED","updated":"2025-06-17","vendors":["n/a"]},"summary":"Local attackers can read Appwrite user credentials from the CLI configuration file due to insecure file permissions.","url":"https://insights.sbomify.com/CVE-2023-50974/"}