{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31156 exists.","fix":"No fix has been published for CVE-2026-31156 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-31156 is a medium-severity path traversal vulnerability in n/a, published on 13 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-31156 and fix it if it is affected.\n\nWhat it is: CVE-2026-31156 is a medium-severity path traversal vulnerability in n/a, published on 13 May 2026. 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-2026-31156 exists.\n\nAffected product: n/a. 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-2026-31156/ (Markdown: https://insights.sbomify.com/CVE-2026-31156/index.md)","id":"CVE-2026-31156","markdown":"https://insights.sbomify.com/CVE-2026-31156/index.md","name":"CVE-2026-31156","record":{"aliases":["GHSA-p6vg-5mm7-744x"],"analysis":{"component_type":"ics_ot","fix_type":"no_fix_stated","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenPLC","requires_auth":"low_privilege","summary":"An attacker can read arbitrary files by exploiting a path injection vulnerability in OpenPLC's command-line file operations.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"openplc_v3_firmware","vendor":"openplcproject"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A path injection vulnerability exists in OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) as the binary program compiled from glue_generator.cpp does not perform any validation on the file path parameters passed via the command line. The user-controlled input parameters are directly passed to the underlying file operation functions (fopen/ifstream/ofstream) for file reading and writing. An attacker can exploit this vulnerability by constructing a malicious path to read arbitrary readable files.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-05-13","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-13T08:34:45Z","kind":"github_poc","ref":"https://github.com/unicorn-hyh/CVE-2026-31156","stars":0,"title":"There is a path injection vulnerability in OpenPLC-v3, which arises from the program not performing any validity checks on the file path parameters passed in from the command line. Attackers can read any readable file by constructing malicious paths, posing a risk of information leakage."}],"tier":"weaponised"},"has_fix":null,"headline":"Path traversal in n/a","id":"CVE-2026-31156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"SQL Injection vulnerability in CRM SOFTTRADE Infotech (aka softtradeindia) 1.0 allows a remote attacker to execute arbitrary code via the Lo","id":"CVE-2026-31158"},"packages":[],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2026-31153"},"products":["n/a"],"published":"2026-05-13","related":[{"cvss_score":9.2,"headline":"Initialization of a resource with an insecure default in OpenPLC_V3","id":"CVE-2026-28205","kev_date_added":null,"published":"2026-04-09"},{"cvss_score":9.2,"headline":"Plaintext storage of a password in OpenPLC_V3","id":"CVE-2026-35556","kev_date_added":null,"published":"2026-04-09"},{"cvss_score":9,"headline":"Memory corruption in OpenPLC v3","id":"CVE-2024-34026","kev_date_added":null,"published":"2024-09-18"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2021-31630","kev_date_added":null,"published":"2021-08-03"},{"cvss_score":8.7,"headline":"Missing Authorization in OpenPLC_V3","id":"CVE-2026-35063","kev_date_added":null,"published":"2026-04-09"},{"cvss_score":7.5,"headline":"Denial of service in OpenPLC v3","id":"CVE-2024-36980","kev_date_added":null,"published":"2024-09-18"},{"cvss_score":7.5,"headline":"Denial of service in OpenPLC v3","id":"CVE-2024-36981","kev_date_added":null,"published":"2024-09-18"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-05","vendors":["n/a"]},"summary":"An attacker can read arbitrary files by exploiting a path injection vulnerability in OpenPLC's command-line file operations.","url":"https://insights.sbomify.com/CVE-2026-31156/"}