{"id":"CVE-2026-49987","state":"PUBLISHED","title":"Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection","description":"Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1.","publishedAt":"2026-07-15T18:06:27.018Z","updatedAt":"2026-07-15T19:40:40.723Z","severity":{"score":7.5,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["yamadashy repomix"],"affected":[{"vendor":"yamadashy","product":"repomix","versions":[{"version":"< 1.14.1","status":"affected"}]}],"references":["https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","https://github.com/yamadashy/repomix/releases/tag/v1.14.1"],"weaknesses":["CWE-88"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49987.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49987","state":"PUBLISHED","datePublished":"2026-07-15T18:06:27.018Z","dateUpdated":"2026-07-15T19:40:40.723Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-02T18:30:51.282Z"},"containers":{"cna":{"title":"Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection","descriptions":[{"lang":"en","value":"Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1."}],"affected":[{"vendor":"yamadashy","product":"repomix","versions":[{"version":"< 1.14.1","status":"affected"}]}],"references":[{"url":"https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","name":"https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","name":"https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","tags":["x_refsource_MISC"]},{"url":"https://github.com/yamadashy/repomix/releases/tag/v1.14.1","name":"https://github.com/yamadashy/repomix/releases/tag/v1.14.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-88","lang":"en","description":"CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-15T18:06:27.018Z"},"source":{"advisory":"GHSA-9mm9-rqhj-j5mx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-15T19:40:25.260913Z","id":"CVE-2026-49987","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-15T19:40:40.723Z"}}]}}}