{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-2158 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-2158 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-2158 is a critical vulnerability in Synopsys Code Dx, published on 27 Apr 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-2158 and fix it if it is affected.\n\nWhat it is: CVE-2023-2158 is a critical vulnerability in Synopsys Code Dx, published on 27 Apr 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-2158 in the wild and no public exploit code.\n\nAffected product: Synopsys Code Dx. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2158/ (Markdown: https://insights.sbomify.com/CVE-2023-2158/index.md)","id":"CVE-2023-2158","markdown":"https://insights.sbomify.com/CVE-2023-2158/index.md","name":"CVE-2023-2158","record":{"aliases":["GHSA-7w8f-q3m3-pfj7"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Code Dx web application","requires_auth":"none","summary":"Attackers can impersonate users and gain account access by exploiting a hard-coded cipher in the Remember Me token generation mechanism.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"SNPS","cpe":[{"product":"code_dx","vendor":"synopsys"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"},{"id":"CWE-321","name":"Use of Hard-coded Cryptographic Key"}],"description":"Code Dx versions prior to 2023.4.2 are vulnerable to user impersonation attack where a malicious actor is able to gain access to another user's account by crafting a custom \"Remember Me\" token. This is possible due to the use of a hard-coded cipher which was used when generating the token. A malicious actor who creates this token can supply it to a separate Code Dx system, provided they know the username they want to impersonate, and impersonate the user.  Score 6.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:P/RL:O/RC:C","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Impersonation through User-Controlled Token","id":"CVE-2023-2158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"hardcoded_credentials","year":"2023"},"n_packages":0,"n_references":1,"next":{"headline":"CMP – Coming Soon \u0026 Maintenance \u003c= 4.1.7 - Maintenance Mode Bypass","id":"CVE-2023-2159"},"packages":[],"prev":{"headline":"Memory corruption in ImageMagick","id":"CVE-2023-2157"},"products":["Code Dx"],"published":"2023-04-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-31","vendors":["Synopsys"]},"summary":"Attackers can impersonate users and gain account access by exploiting a hard-coded cipher in the Remember Me token generation mechanism.","url":"https://insights.sbomify.com/CVE-2023-2158/"}