{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38353 exists.","fix":"No fix has been published for CVE-2024-38353 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-38353 is a medium-severity missing authorization vulnerability in hackmdio codimd, published on 10 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38353 and fix it if it is affected.\n\nWhat it is: CVE-2024-38353 is a medium-severity missing authorization vulnerability in hackmdio codimd, published on 10 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38353 exists.\n\nAffected product: hackmdio codimd. 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-2024-38353/ (Markdown: https://insights.sbomify.com/CVE-2024-38353/index.md)","id":"CVE-2024-38353","markdown":"https://insights.sbomify.com/CVE-2024-38353/index.md","name":"CVE-2024-38353","record":{"aliases":["GHSA-2764-jppc-p2hm"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CodiMD collaborative notes","requires_auth":"none","summary":"Unauthenticated attackers can access uploaded images in CodiMD due to missing access controls and predictable filenames, exposing sensitive data.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"codimd","vendor":"hackmd"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"description":"CodiMD allows realtime collaborative markdown notes on all platforms. CodiMD before 2.5.4 is missing authentication and access control vulnerability allowing an unauthenticated attacker to gain unauthorised access to image data uploaded to CodiMD. CodiMD does not require valid authentication to access uploaded images or to upload new image data. An attacker who can determine an uploaded image's URL can gain unauthorised access to uploaded image data. Due to the insecure random filename generation in the underlying Formidable library, an attacker can determine the filenames for previously uploaded images and the likelihood of this issue being exploited is increased. This vulnerability is fixed in 2.5.4.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-38353.yaml","stars":null,"title":"CodiMD \u003c2.5.4 - Insecure Filename Randomization"}],"tier":"weaponised"},"has_fix":false,"headline":"CodiMD - Missing Image Access Controls and Unauthorized Image Access","id":"CVE-2024-38353","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","id":"CVE-2024-38354"},"packages":[],"prev":{"headline":"CVE was assigned in error.","id":"CVE-2024-38352"},"products":["codimd"],"published":"2024-07-10","related":[{"cvss_score":8.1,"headline":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","id":"CVE-2024-38354","kev_date_added":null,"published":"2024-07-10"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2024-22778","kev_date_added":null,"published":"2024-02-21"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2019-15499","kev_date_added":null,"published":"2019-08-23"},{"cvss_score":4.9,"headline":"Cross-site scripting in CodiMD","id":"CVE-2025-46654","kev_date_added":null,"published":"2025-04-26"}],"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["hackmdio"]},"summary":"Unauthenticated attackers can access uploaded images in CodiMD due to missing access controls and predictable filenames, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2024-38353/"}