{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-3881 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-3881 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-3881 is a high-severity command injection vulnerability in eCharge Hardy Barth cPH2, published on 22 May 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-3881 and fix it if it is affected.\n\nWhat it is: CVE-2025-3881 is a high-severity command injection vulnerability in eCharge Hardy Barth cPH2, published on 22 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-3881 in the wild and no public exploit code.\n\nAffected product: eCharge Hardy Barth cPH2. 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-2025-3881/ (Markdown: https://insights.sbomify.com/CVE-2025-3881/index.md)","id":"CVE-2025-3881","markdown":"https://insights.sbomify.com/CVE-2025-3881/index.md","name":"CVE-2025-3881","record":{"aliases":["GHSA-56c3-5jh4-v4v3"],"analysis":{"component_type":"iot_embedded","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"EV charging station","requires_auth":"none","summary":"Network-adjacent attackers can execute arbitrary code on eCharge Hardy Barth cPH2 charging stations via command injection in the ntp parameter.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"zdi","cpe":[{"product":"cph2_echarge_firmware","vendor":"hardy-barth"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of eCharge Hardy Barth cPH2 charging stations. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the handling of the ntp parameter provided to the check_req.php endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the www-data user. Was ZDI-CAN-23113.","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":"eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability","id":"CVE-2025-3881","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"eCharge Hardy Barth cPH2 nwcheckexec.php dest Command Injection Remote Code Execution Vulnerability","id":"CVE-2025-3882"},"packages":[],"prev":{"headline":"Missing authorization in Quiz, Poll \u0026 Survey Maker by Opinion Stage","id":"CVE-2025-3880"},"products":["cPH2"],"published":"2025-05-22","related":[{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2023-46359","kev_date_added":null,"published":"2024-02-06"},{"cvss_score":8.8,"headline":"eCharge Hardy Barth cPH2 nwcheckexec.php dest Command Injection Remote Code Execution Vulnerability","id":"CVE-2025-3882","kev_date_added":null,"published":"2025-05-22"},{"cvss_score":8.8,"headline":"eCharge Hardy Barth cPH2 index.php Command Injection Remote Code Execution Vulnerability","id":"CVE-2025-3883","kev_date_added":null,"published":"2025-05-22"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2023-46360","kev_date_added":null,"published":"2024-02-06"}],"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-05-22","vendors":["eCharge Hardy Barth"]},"summary":"Network-adjacent attackers can execute arbitrary code on eCharge Hardy Barth cPH2 charging stations via command injection in the ntp parameter.","url":"https://insights.sbomify.com/CVE-2025-3881/"}