{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5685 exists.","fix":"No fix has been published for CVE-2025-5685 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-5685 is a high-severity memory corruption vulnerability in Tenda CH22, published on 5 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-5685 and fix it if it is affected.\n\nWhat it is: CVE-2025-5685 is a high-severity memory corruption vulnerability in Tenda CH22, published on 5 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5685 exists.\n\nAffected product: Tenda CH22. 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-5685/ (Markdown: https://insights.sbomify.com/CVE-2025-5685/index.md)","id":"CVE-2025-5685","markdown":"https://insights.sbomify.com/CVE-2025-5685/index.md","name":"CVE-2025-5685","record":{"aliases":["GHSA-xcpr-3f8f-3c77"],"analysis":{"component_type":"network_device","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Tenda CH22 router","requires_auth":"low_privilege","summary":"A remote attacker can trigger a stack-based buffer overflow in the Tenda CH22 router's Natlimit form, potentially leading to arbitrary code execution.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"ch22_firmware","vendor":"tenda"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"A vulnerability, which was classified as critical, was found in Tenda CH22 1.0.0.1. This affects the function formNatlimit of the file /goform/Natlimit. The manipulation of the argument page leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":null,"headline":"Tenda CH22 Natlimit formNatlimit stack-based overflow","id":"CVE-2025-5685","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2025"},"n_packages":0,"n_references":5,"next":{"headline":"Paged Gallery \u003c= 0.7 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2025-5686"},"packages":[],"prev":{"headline":"MetForm \u003c= 4.0.1 - Authenticated(Contributor+) Stored Cross-Site Scripting via `mf-template` DOM Element","id":"CVE-2025-5684"},"products":["CH22"],"published":"2025-06-05","related":[{"cvss_score":9.3,"headline":"Tenda CH22 HTTP Request AdvSetWrlsafeset formWrlsafeset stack-based overflow","id":"CVE-2025-11418","kev_date_added":null,"published":"2025-10-08"},{"cvss_score":9.3,"headline":"Tenda CH22 SafeEmailFilter formSafeEmailFilter memory corruption","id":"CVE-2025-11423","kev_date_added":null,"published":"2025-10-08"},{"cvss_score":8.7,"headline":"Tenda CH22 Parameter CertLocalPrecreate formCertLocalPrecreate stack-based overflow","id":"CVE-2026-5604","kev_date_added":null,"published":"2026-04-05"},{"cvss_score":8.7,"headline":"Tenda CH22 WrlExtraSet formWrlExtraSet stack-based overflow","id":"CVE-2026-5605","kev_date_added":null,"published":"2026-04-05"},{"cvss_score":8.7,"headline":"Tenda CH22 Parameter webtypelibrary formWebTypeLibrary stack-based overflow","id":"CVE-2026-5204","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":8.7,"headline":"Tenda CH22 createFileName formCreateFileName stack-based overflow","id":"CVE-2026-5152","kev_date_added":null,"published":"2026-03-30"},{"cvss_score":8.7,"headline":"Tenda CH22 Parameter setcfm fromSetCfm stack-based overflow","id":"CVE-2026-5154","kev_date_added":null,"published":"2026-03-30"}],"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":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-06-06","vendors":["Tenda"]},"summary":"A remote attacker can trigger a stack-based buffer overflow in the Tenda CH22 router's Natlimit form, potentially leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2025-5685/"}