{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1731 exists.","fix":"No fix has been published for CVE-2025-1731 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-1731 is a high-severity vulnerability in Zyxel USG FLEX H series uOS firmware, published on 22 Apr 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-1731 and fix it if it is affected.\n\nWhat it is: CVE-2025-1731 is a high-severity vulnerability in Zyxel USG FLEX H series uOS firmware, published on 22 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1731 exists.\n\nAffected product: Zyxel USG FLEX H series uOS firmware. 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-1731/ (Markdown: https://insights.sbomify.com/CVE-2025-1731/index.md)","id":"CVE-2025-1731","markdown":"https://insights.sbomify.com/CVE-2025-1731/index.md","name":"CVE-2025-1731","record":{"aliases":["GHSA-2w3x-653c-q4pc"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Zyxel USG FLEX H","requires_auth":"low_privilege","summary":"Authenticated low-privilege users can escalate to administrator access and execute code via incorrect permission assignments in Zyxel USG FLEX H firmware.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Zyxel","cpe":[{"product":"uos","vendor":"zyxel"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"description":"An incorrect permission assignment vulnerability in the PostgreSQL commands of the Zyxel USG FLEX H series uOS firmware versions from V1.20 through V1.31 could allow an authenticated local attacker with low privileges to gain access to the Linux shell and escalate their privileges by crafting malicious scripts or modifying system configurations with administrator-level access through a stolen token. Modifying the system configuration is only possible if the administrator has not logged out and the token remains valid.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2025-05-18","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-05-18","kind":"exploitdb","ref":"52293","stars":null,"title":"Zyxel USG FLEX H series uOS 1.31 - Privilege Escalation"}],"tier":"weaponised"},"has_fix":null,"headline":"Privilege escalation in USG FLEX H series uOS firmware","id":"CVE-2025-1731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Privilege escalation in USG FLEX H series uOS firmware","id":"CVE-2025-1732"},"packages":[],"prev":{"headline":"Simple Download Counter \u003c= 2.0 - Authenticated (Author+) Arbitrary File Read","id":"CVE-2025-1730"},"products":["USG FLEX H series uOS firmware"],"published":"2025-04-22","related":[{"cvss_score":6.7,"headline":"Privilege escalation in USG FLEX H series uOS firmware","id":"CVE-2025-1732","kev_date_added":null,"published":"2025-04-22"},{"cvss_score":5.5,"headline":"Information disclosure in USG FLEX H series uOS firmware","id":"CVE-2024-9677","kev_date_added":null,"published":"2024-10-22"}],"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":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Zyxel"]},"summary":"Authenticated low-privilege users can escalate to administrator access and execute code via incorrect permission assignments in Zyxel USG FLEX H firmware.","url":"https://insights.sbomify.com/CVE-2025-1731/"}