Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · net nu 119 bronnen 1 kritiek 2 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-58624

MEDIUM · 5.4 CVSS Gepubliceerd: CWE-20

Beschrijving NL

Onjuiste invoervalidatie in sshd-git in Apache MINA SSHD. Apache MINA SSHD is een Java-bibliotheek voor SSH aan client- en serverzijde. Component org.apache.sshd:sshd-git biedt hoewel zijn GitPgmCommandFactory een manier om een Apache MINA SSHD-SERVER ZODANIG te configureren dat SSH-clients git-opdrachten op afstand kunnen uitvoeren via de JGit-bibliotheek op git-repositories die op de server zijn opgeslagen. Met deze GitPgmCommandFactory kon een gebruiker die via SSH was geverifieerd elk JGit-commando uitvoeren dat beschikbaar was, inclusief commando's die bestanden konden schrijven op willekeurige plaatsen zoals git archive met de optie --output. Getroffen zijn SSH-servers die zijn geïmplementeerd met Apache MINA SSHD en de GitPgmCommandFactory gebruiken. Als de GitPgmCommandFactory niet op de server is geconfigureerd, heeft dit geen invloed op de server. Het wordt aanbevolen om de betreffende servers te upgraden naar Apache MINA SSHD 2.19.0 of 3.0.0-M5, waarmee dit probleem wordt opgelost. Het probleem wordt opgelost door de beschikbare commando's te beperken tot een kleine witte lijst met onkritische commando's (zoals git log). git-archief is ook toegestaan, maar het argument --output wordt genegeerd en het archief wordt altijd via het SSH-kanaal naar de client verzonden.

Origineel (Engels) tonen

Improper input validation in sshd-git in Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.

Component org.apache.sshd:sshd-git provides though its GitPgmCommandFactory a way to configure an Apache MINA SSHD server such that SSH clients can remotely execute git commands via the JGit library on git repositories stored on the server.

This GitPgmCommandFactory allowed a user authenticated via SSH to run any JGit command available, including commands that could write files at arbitrary places such as git archive with the --output option.

Affected are SSH servers implemented with Apache MINA SSHD and using the GitPgmCommandFactory. If the GitPgmCommandFactory is not configured on the server, the server is not affected.

It is recommended to upgrade affected servers to Apache MINA SSHD 2.19.0 or 3.0.0-M5, which fix this issue.

The issue is fixed by restricting the available commands to a small whitelist of uncritical commands (such as git log). git archive is also allowed, but its --output argument is ignored and the archive is always sent through the SSH channel to the client.

Vendors

Apache

Affected products

Mina Sshd

References