{"id":"CVE-2026-25499","aliases":["CVE-2026-25499","GHSA-gwch-7m8v-7544","GO-2026-4395"],"related":[],"kind":"vulnerability","state":"published","title":"terraform-provider-proxmox has insecure sudo recommendation in the documentation","summary":"Terraform / OpenTofu Provider adds support for Proxmox Virtual Environment. Prior to version 0.93.1, in the SSH configuration documentation, the sudoer line suggested is insecure and can result in escaping the folder using ../, allowing any files on the system to be edited. This issue has been patched in version 0.93.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Terraform / OpenTofu Provider adds support for Proxmox Virtual Environment. Prior to version 0.93.1, in the SSH configuration documentation, the sudoer line suggested is insecure and can result in escaping the folder using ../, allowing any files on the system to be edited. This issue has been patched in version 0.93.1.","source":"cvelist"},{"lang":"en","text":"> Note: It is uncertain whether this constitutes a vulnerability or should be filed as an issue instead.\n\n### Summary\n\nIn the SSH configuration documentation, the sudoer line that was suggested can be escalated to edit any files in the system.\n\n### Details\n\nThe following line were suggested for addition in the sudoers file:\n\n```bash\nterraform ALL=(root) NOPASSWD: /usr/bin/tee /var/lib/vz/*\n```\n\nBut this is highly insecure as  the folder can be escaped using `../` and any files can be edited on the system.\n\n### PoC\n\nUsing a `terraform` user with the previously mentioned line in the `/etc/sudoers` file, a `/etc/sudoers.d/sudo` file can be added using this command:\n\n`echo \"ALL=(ALL) NOPASSWD:ALL\" | tee /var/lib/vz/../../../etc/sudoers.d/sudo`\n\nThis grants access to the full root of the node.\n\n### Impact\n\nThis breaches the access limits of the Terraform user.\n\n### Suggested workaround\n\nUse a strict regex on the command to allow only the names that should be pushed by this user.\n\nExample for cloudinit yaml files:\n\n```bash\nterraform ALL=(root) NOPASSWD: /usr/bin/tee /var/lib/vz/snippets/[A-Za-z0-9-]*\\\\.yaml\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"terraform-provider-proxmox has insecure sudo recommendation in the documentation in github.com/bpg/terraform-provider-proxmox","format":"markdown","source":"go"},{"lang":"es","text":"El Proveedor de Terraform / OpenTofu añade soporte para Proxmox Virtual Environment. Antes de la versión 0.93.1, en la documentación de configuración SSH, la línea sudoer sugerida es insegura y puede resultar en escapar de la carpeta usando ../, permitiendo que cualquier archivo en el sistema sea editado. Este problema ha sido parcheado en la versión 0.93.1.","source":"nvd"}],"published":"2026-02-02T20:25:53.000Z","modified":"2026-06-17T10:24:44.737Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22","CWE-1188"],"affected":[{"ranges":[{"version":"< 0.93.1","status":"affected"}],"vendor":"bpg","product":"terraform-provider-proxmox","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.93.1"}],"ecosystem":"Go","package":"github.com/bpg/terraform-provider-proxmox","purl":"pkg:golang/github.com/bpg/terraform-provider-proxmox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.93.1"}],"ecosystem":"Go","package":"github.com/bpg/terraform-provider-proxmox","purl":"pkg:golang/github.com/bpg/terraform-provider-proxmox","source":"go"},{"ranges":[{"status":"affected","fixed":"0.93.1"}],"vendor":"bpg","product":"terraform_provider","cpe":"cpe:2.3:a:bpg:terraform_provider:*:*:*:*:*:proxmox_virtual_environment:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bpg/terraform-provider-proxmox/security/advisories/GHSA-gwch-7m8v-7544","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/bpg/terraform-provider-proxmox/commit/bd604c41a31e2a55dd6acc01b0608be3ea49c023","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25499","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/bpg/terraform-provider-proxmox","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-02-05T21:05:26.324Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25499","url":"https://www.cve.org/CVERecord?id=CVE-2026-25499","licence":"CVE Terms of Use","modified":"2026-02-05T21:05:30.910Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gwch-7m8v-7544","url":"https://github.com/advisories/GHSA-gwch-7m8v-7544","licence":"CC-BY-4.0","modified":"2026-02-05T06:56:04.104Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4395","url":"https://pkg.go.dev/vuln/GO-2026-4395","licence":"CC-BY-4.0","modified":"2026-02-05T06:56:04.104Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25499","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25499","licence":"Public domain","modified":"2026-06-17T10:24:44.737Z"}],"updatedAt":"2026-11-25T22:59:13.504Z","epss":{"score":0.00588,"percentile":0.42112,"date":"2026-11-30T12:00:22.000Z"}}