{"id":"CVE-2024-39904","summary":"Code Execution Vulnerability via Local File Path Traversal in Vnote","details":"VNote is a note-taking platform. Prior to 3.18.1, a code execution vulnerability existed in VNote, which allowed an attacker to execute arbitrary programs on the victim's system. A crafted URI can be used in a note to perform this attack using file:/// as a link. For example, file:///C:/WINDOWS/system32/cmd.exe. This allows attackers to execute arbitrary programs by embedding a reference to a local executable file such as file:///C:/WINDOWS/system32/cmd.exe and file:///C:/WINDOWS/system32/calc.exe. This vulnerability can be exploited by creating and sharing specially crafted notes. An attacker could send a crafted note file and perform further attacks. This vulnerability is fixed in 3.18.1.","aliases":["GHSA-vhh5-8wcv-68gj"],"modified":"2026-04-12T10:34:55.963744Z","published":"2024-07-11T15:37:08.305Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39904.json","cwe_ids":["CWE-73"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39904.json"},{"type":"ADVISORY","url":"https://github.com/vnotex/vnote/security/advisories/GHSA-vhh5-8wcv-68gj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39904"},{"type":"FIX","url":"https://github.com/vnotex/vnote/commit/3477469b669708ff547037fda9fc2817870428aa"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vnotex/vnote","events":[{"introduced":"0"},{"fixed":"3477469b669708ff547037fda9fc2817870428aa"}]},{"type":"GIT","repo":"https://github.com/vnotex/vnote","events":[{"introduced":"0"},{"fixed":"3477469b669708ff547037fda9fc2817870428aa"}]}],"versions":["2.4","3.11.0","v1.0","v1.1","v1.10","v1.11","v1.11.1","v1.12","v1.13","v1.14","v1.15","v1.16","v1.17","v1.18","v1.19","v1.2","v1.20","v1.21","v1.22","v1.3","v1.4","v1.5","v1.6","v1.7","v1.8","v1.9","v2.0","v2.1","v2.10","v2.2","v2.3","v2.4","v2.5","v2.6","v2.7","v2.7.1","v2.7.2","v2.8","v2.8.1","v2.8.2","v2.9","v2.9.1","v3.0.0-beta.1","v3.0.0-beta.10","v3.0.0-beta.11","v3.0.0-beta.2","v3.0.0-beta.3","v3.0.0-beta.4","v3.0.0-beta.5","v3.0.0-beta.6","v3.0.0-beta.7","v3.0.0-beta.8","v3.0.0-beta.9","v3.0.1","v3.1.0","v3.10.0","v3.10.1","v3.11.0","v3.12.0","v3.12.888","v3.13.0","v3.13.1","v3.14.0","v3.15.0","v3.15.1","v3.16.0","v3.17.0","v3.18.0","v3.2.0","v3.3.0","v3.4.0","v3.5.0","v3.5.1","v3.6.0","v3.7.0","v3.8.0","v3.8.1","v3.9.0"],"database_specific":{"vanir_signatures_modified":"2026-04-12T10:34:55Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39904.json","vanir_signatures":[{"signature_version":"v1","deprecated":false,"source":"https://github.com/vnotex/vnote/commit/3477469b669708ff547037fda9fc2817870428aa","signature_type":"Function","target":{"file":"src/utils/widgetutils.cpp","function":"WidgetUtils::openUrlByDesktop"},"digest":{"length":105,"function_hash":"161011639681160019755919320285911296633"},"id":"CVE-2024-39904-3b64bd35"},{"signature_version":"v1","deprecated":false,"source":"https://github.com/vnotex/vnote/commit/3477469b669708ff547037fda9fc2817870428aa","signature_type":"Line","target":{"file":"src/utils/widgetutils.cpp"},"digest":{"threshold":0.9,"line_hashes":["330178138588258818445776921831144656651","124721176872878059454518684875103052379","42251772664261607524591250489979987275","88438539364376623365291727085908671609","141751952401183798561753819810752445713","191134948664513230284102637037101750661","185418810088572224651891186828626223205","90746088955982217713941860732744342395"]},"id":"CVE-2024-39904-6d829bd5"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}