{"answers":{"affected":"2 open source packages ship an affected version, including cachethq/cachet. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-39165 exists.","fix":"No fix has been published for CVE-2021-39165 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-39165 is a high-severity SQL injection vulnerability in fiveai Cachet, published on 26 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-39165 and fix it if it is affected.\n\nWhat it is: CVE-2021-39165 is a high-severity SQL injection vulnerability in fiveai Cachet, published on 26 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-39165 exists.\n\nAffected packages and fixed versions:\n- cachethq/cachet (Packagist): affected all versions up to 2.3.18; no fix listed\n- cachethq/cachet (Packagist): affected all versions up to 2.3.18; 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-2021-39165/ (Markdown: https://insights.sbomify.com/CVE-2021-39165/index.md)","id":"CVE-2021-39165","markdown":"https://insights.sbomify.com/CVE-2021-39165/index.md","name":"CVE-2021-39165","record":{"aliases":["GHSA-79mg-4w23-4fqc"],"analysis":{"component_type":"web_application","fix_type":"no_fix_stated","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Cachet status page","requires_auth":"low_privilege","summary":"Unauthenticated attackers can exploit SQL injection in Cachet to exfiltrate sensitive database information, including administrator credentials.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cachet","vendor":"chachethq"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-287","name":"Improper Authentication"}],"description":"Cachet is an open source status page. With Cachet prior to and including 2.3.18, there is a SQL injection which is in the `SearchableTrait#scopeSearch()`. Attackers without authentication can utilize this vulnerability to exfiltrate sensitive data from the database such as administrator's password and session. The original repository of Cachet \u003chttps://github.com/CachetHQ/Cachet\u003e is not active, the stable version 2.3.18 and it's developing 2.4 branch is affected.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2022-03-15","github_poc":2,"max_poc_stars":21,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-03-15T18:14:46Z","kind":"github_poc","ref":"https://github.com/W0rty/CVE-2021-39165","stars":21,"title":"Github repository which contains a functional exploit for CVE-2021-39165"},{"date":"2023-09-20T22:19:55Z","kind":"github_poc","ref":"https://github.com/manbolq/CVE-2021-39165","stars":0,"title":"Python3 POC for CVE-2021-39165 in CachetHQ"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-39165.yaml","stars":null,"title":"Cachet \u003c=2.3.18 - SQL Injection"}],"tier":"weaponised"},"has_fix":false,"headline":"Unauthenticated SQL Injection","id":"CVE-2021-39165","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Improper Neutralization of Text-Values in Object Version Preview","id":"CVE-2021-39166"},"packages":[{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["2.3.18"],"package":"cachethq/cachet","purl":null,"source":"GHSA-79mg-4w23-4fqc"},{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["2.3.18"],"package":"cachethq/cachet","purl":"pkg:composer/cachethq/cachet","source":"GHSA-79mg-4w23-4fqc"}],"prev":{"headline":"Improper authorisation of /members discloses room membership to non-members","id":"CVE-2021-39164"},"products":["Cachet"],"published":"2021-08-26","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":"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["fiveai"]},"summary":"Unauthenticated attackers can exploit SQL injection in Cachet to exfiltrate sensitive database information, including administrator credentials.","url":"https://insights.sbomify.com/CVE-2021-39165/"}