Injection de commande OS dans @argos-ci/core (CVE-2026-59960)
Résumé
Injection de commande OS dans @argos-ci/core (CVE-2026-59960). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via GET /v2/project. Atténuation : mise à jour vers 6.2.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
CI Branch Name OS Command Injection in @argos-ci/core
Summary
@argos-ci/core@6.2.0 passes attacker-controlled CI branch/ref strings directly into an execSync() template literal in packages/core/src/ci-environment/git.ts:89. When a CI project has hasRemoteContentAccess: false, the Argos upload flow calls getMergeBaseCommitSha(), which invokes gitFetch() with the unsanitized branch name. Because execSync() passes the command string to /bin/sh -c, shell metacharacters such as $() command substitution are evaluated before git runs, enabling an attacker who can influence the branch name (e.g., via a pull request) to execute arbitrary OS commands on the CI runner. CVSS Base Score: 7.5 (High).
Details
The vulnerable sink is in packages/core/src/ci-environment/git.ts:87-90:
function gitFetch(input: { ref: string; depth: number; target: string }) {
execSync(
`git fetch --force --update-head-ok --depth ${input.depth} origin ${input.ref}:${input.target}`,
);
}
execSync() with a template-literal string invokes /bin/sh -c "". The shell expands $(), backticks, ;, and other metacharacters before spawning git, so any special characters present in input.ref or input.target are interpreted as shell instructions.
A secondary sink exists at packages/core/src/ci-environment/git.ts:67:
execSync(`git merge-base ${input.head} ${input.base}`)
Complete data flow (source → sink):
- `packages/core/src/ci-environm…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-59960 a été découverte dans @argos-ci/core.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /v2/project à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 7.5/10.
Action : mettez à jour @argos-ci/core vers 6.2.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « @argos-ci/core CVE-2026-59960 » sur le site de l'éditeur.
CVE-2026-59960 (@argos-ci/core) — CWE-78 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : GET /v2/project / GET /v2/project / POST /v2/builds / POST /builds.
Correctif : 6.2.1 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une injection de commande OS (CWE-78) affecte @argos-ci/core. Les attaquants atteignent le code vulnérable via GET /v2/project.
Consultez l'avis de l'éditeur pour les versions affectées de @argos-ci/core. Surface d'attaque : GET /v2/project / GET /v2/project / POST /v2/builds / POST /builds..
Gravité : Élevée (CVSS 7.5/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 6.2.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers GET /v2/project (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver @argos-ci/core.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r '@argos-ci/core' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@argos-ci/coreを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'GET /v2/project' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /v2/projectへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade @argos-ci/core to 6.2.1ステージング環境で 6.2.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against GET /v2/project on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web security-advisories@github.com
- web github.com
- web github.com
- web github.com