{ "id": "CVE-2022-29184", "sourceIdentifier": "security-advisories@github.com", "published": "2022-05-20T20:15:10.073", "lastModified": "2024-11-21T06:58:39.750", "vulnStatus": "Modified", "cveTags": [], "descriptions": [ { "lang": "en", "value": "GoCD is a continuous delivery server. In GoCD versions prior to 22.1.0, it is possible for existing authenticated users who have permissions to edit or create pipeline materials or pipeline configuration repositories to get remote code execution capability on the GoCD server via configuring a malicious branch name which abuses Mercurial hooks/aliases to exploit a command injection weakness. An attacker would require access to an account with existing GoCD administration permissions to either create/edit (`hg`-based) configuration repositories; create/edit pipelines and their (`hg`-based) materials; or, where \"pipelines-as-code\" configuration repositories are used, to commit malicious configuration to such an external repository which will be automatically parsed into a pipeline configuration and (`hg`) material definition by the GoCD server. This issue is fixed in GoCD 22.1.0. As a workaround, users who do not use/rely upon Mercurial materials can uninstall/remove the `hg`/Mercurial binary from the underlying GoCD Server operating system or Docker image." }, { "lang": "es", "value": "GoCD es un servidor de entrega continua. En GoCD versiones anteriores a 22.1.0, es posible que los usuarios autenticados existentes que presentan permisos para editar o crear materiales de canalizaci\u00f3n o repositorios de configuraci\u00f3n de canalizaci\u00f3n obtengan la capacidad de ejecuci\u00f3n de c\u00f3digo remota en el servidor GoCD por medio de la configuraci\u00f3n de un nombre de rama malicioso que abusa de los ganchos/aliases de Mercurial para explotar una debilidad de inyecci\u00f3n de comandos. Un atacante necesitar\u00eda acceder a una cuenta con permisos de administraci\u00f3n de GoCD para crear/editar repositorios de configuraci\u00f3n (basados en \"hg\"); crear/editar pipelines y sus materiales (basados en \"hg\"); o, cuando son usados repositorios de configuraci\u00f3n \"pipelines-as-code\", enviar una configuraci\u00f3n maliciosa a dicho repositorio externo que ser\u00e1 analizada autom\u00e1ticamente en una configuraci\u00f3n de pipeline y una definici\u00f3n de material (\"hg\") por el servidor GoCD. Este problema ha sido corregido en GoCD versi\u00f3n 22.1.0. Como mitigaci\u00f3n, los usuarios que no usan/dependen de los materiales Mercurial pueden desinstalar/eliminar el binario \"hg\"/Mercurial del sistema operativo subyacente del servidor GoCD o de la imagen Docker" } ], "metrics": { "cvssMetricV31": [ { "source": "security-advisories@github.com", "type": "Secondary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH" }, "exploitabilityScore": 2.8, "impactScore": 5.9 }, { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH" }, "exploitabilityScore": 2.8, "impactScore": 5.9 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "2.0", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "baseScore": 6.5, "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL" }, "baseSeverity": "MEDIUM", "exploitabilityScore": 8.0, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false } ] }, "weaknesses": [ { "source": "security-advisories@github.com", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-77" }, { "lang": "en", "value": "CWE-88" } ] }, { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-77" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*", "versionEndExcluding": "22.1.0", "matchCriteriaId": "B80FC31B-2CF2-4DE9-8ADB-ADEA24124ABB" } ] } ] } ], "references": [ { "url": "https://github.com/gocd/gocd/commit/37d35115db2ada2190173f9413cfe1bc6c295ecb", "source": "security-advisories@github.com", "tags": [ "Patch", "Third Party Advisory" ] }, { "url": "https://github.com/gocd/gocd/releases/tag/22.1.0", "source": "security-advisories@github.com", "tags": [ "Release Notes", "Third Party Advisory" ] }, { "url": "https://github.com/gocd/gocd/security/advisories/GHSA-vf5r-r7j2-cf2h", "source": "security-advisories@github.com", "tags": [ "Third Party Advisory" ] }, { "url": "https://www.gocd.org/releases/#22-1-0", "source": "security-advisories@github.com", "tags": [ "Release Notes", "Vendor Advisory" ] }, { "url": "https://github.com/gocd/gocd/commit/37d35115db2ada2190173f9413cfe1bc6c295ecb", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Patch", "Third Party Advisory" ] }, { "url": "https://github.com/gocd/gocd/releases/tag/22.1.0", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Release Notes", "Third Party Advisory" ] }, { "url": "https://github.com/gocd/gocd/security/advisories/GHSA-vf5r-r7j2-cf2h", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Third Party Advisory" ] }, { "url": "https://www.gocd.org/releases/#22-1-0", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Release Notes", "Vendor Advisory" ] } ] }