{"answers":{"affected":"2 open source packages ship an affected version, including angular-base64-upload.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42640 exists.","fix":"Upgrade angular-base64-upload to 0.1.21 or later.","what":"CVE-2024-42640 is a critical vulnerability in n/a, published on 11 Oct 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-42640 and fix it if it is affected.\n\nWhat it is: CVE-2024-42640 is a critical vulnerability in n/a, published on 11 Oct 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-42640 exists.\n\nAffected packages and fixed versions:\n- angular-base64-upload (npm): affected all versions; fixed in 0.1.21\n- angular-base64-upload (npm): affected all versions; fixed in 0.1.21\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-42640/ (Markdown: https://insights.sbomify.com/CVE-2024-42640/index.md)","id":"CVE-2024-42640","markdown":"https://insights.sbomify.com/CVE-2024-42640/index.md","name":"CVE-2024-42640","record":{"aliases":["GHSA-vgxq-6rcf-qwrw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Angular base64 upload library","requires_auth":"none","summary":"Unauthenticated attackers can upload arbitrary files to the server via the demo script, leading to remote code execution.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"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-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"angular-base64-upload prior to v0.1.21 is vulnerable to unauthenticated remote code execution via demo/server.php. Exploiting this vulnerability allows an attacker to upload arbitrary content to the server, which can subsequently be accessed through demo/uploads. This leads to the execution of previously uploaded content and enables the attacker to achieve code execution on the server. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.","ecosystems":["npm"],"exploits":{"exploitdb":2,"first_seen":"2024-10-09","github_poc":2,"max_poc_stars":27,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-10-09T14:35:06Z","kind":"github_poc","ref":"https://github.com/rvzsec/CVE-2024-42640","stars":27,"title":"Unauthenticated Remote Code Execution via Angular-Base64-Upload Library "},{"date":"2024-11-19T23:54:30Z","kind":"github_poc","ref":"https://github.com/KTN1990/CVE-2024-42640","stars":2,"title":"Unauthenticated Remote Code Execution via Angular-Base64-Upload Library (npm:bower)"},{"date":"2025-04-04","kind":"exploitdb","ref":"52121","stars":null,"title":"Angular-Base64-Upload Library 0.1.20 - Remote Code Execution (RCE)"},{"date":"2025-04-17","kind":"exploitdb","ref":"52253","stars":null,"title":"Angular-Base64-Upload Library 0.1.21 - Unauthenticated Remote Code Execution (RCE)"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-42640.yaml","stars":null,"title":"Angular-Base64-Upload - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"angular-base64-upload vulnerable to unauthenticated remote code execution","id":"CVE-2024-42640","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"file_upload","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Memory corruption in n/a","id":"CVE-2024-42642"},"packages":[{"ecosystem":"npm","fixed":["0.1.21"],"introduced":["0"],"last_affected":[],"package":"angular-base64-upload","purl":null,"source":"GHSA-vgxq-6rcf-qwrw"},{"ecosystem":"npm","fixed":["0.1.21"],"introduced":["0"],"last_affected":[],"package":"angular-base64-upload","purl":"pkg:npm/angular-base64-upload","source":"GHSA-vgxq-6rcf-qwrw"}],"prev":{"headline":"Hardcoded credentials in n/a","id":"CVE-2024-42639"},"products":["n/a"],"published":"2024-10-11","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-15","vendors":["n/a"]},"summary":"Unauthenticated attackers can upload arbitrary files to the server via the demo script, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2024-42640/"}