Skip to content
Heist/ feed
Back to feed
Medium

mina, mina2 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-58624

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.

Products
mina, mina2
Affected versions
1.1.7.dfsg-11, 1.1.7.dfsg-12, 1.1.7.dfsg-13, 1.1.7.dfsg-13ubuntu1, 2.0.16-2, 2.0.19-2, 2.0.7+dfsg-2, 2.0.9-1, 2.0.9-2, 2.1.4-2, 2.1.5-1, 2.1.5-1ubuntu0.1~esm1, 2.2.1-3, 2.2.1-3ubuntu0.1~esm1, 2.2.1-4, 2.2.1-4ubuntu0.1~esm1, 2.2.1-4ubuntu1, 2.2.9-1
Fixed versions
Not specified
CVEs
CVE-2026-58624
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:48 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-58624

core-osv · Original source

Published 20 Jul 2026, 21:16 UTC

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.

osv:UBUNTU-CVE-2026-58624

mina

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina2

Fixed versions: Not specified

mina2

Fixed versions: Not specified

Complete source record
{
  "id": "38af9a3fbf31c5a89b1828507cc412607c7f2177b3817c180ebca2c5169cea1a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-58624",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-58624",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-58624",
    "products": [
      {
        "name": {
          "value": "mina",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.7.dfsg-11",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.7+dfsg-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.0.9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.0.9-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.7.dfsg-11",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.7.dfsg-12",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.16-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.7.dfsg-13",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.19-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.7.dfsg-13",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.4-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.1.5-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.1.5-1ubuntu0.1~esm1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.7.dfsg-13",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "1.1.7.dfsg-13ubuntu1",
            "evidence": "/affected/8/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.1-3",
            "evidence": "/affected/9/versions"
          },
          {
            "value": "2.2.1-3ubuntu0.1~esm1",
            "evidence": "/affected/9/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.1-4",
            "evidence": "/affected/10/versions"
          },
          {
            "value": "2.2.1-4ubuntu1",
            "evidence": "/affected/10/versions"
          },
          {
            "value": "2.2.9-1",
            "evidence": "/affected/10/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mina2",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.1-4",
            "evidence": "/affected/11/versions"
          },
          {
            "value": "2.2.1-4ubuntu0.1~esm1",
            "evidence": "/affected/11/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-58624",
      "aliases": [
        "UBUNTU-CVE-2026-58624"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina",
            "purl": "pkg:deb/ubuntu/mina?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.1.7.dfsg-11"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina-java",
                "binary_version": "1.1.7.dfsg-11"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.0.7+dfsg-2",
            "2.0.9-1",
            "2.0.9-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.0.9-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina",
            "purl": "pkg:deb/ubuntu/mina?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.1.7.dfsg-11",
            "1.1.7.dfsg-12"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina-java",
                "binary_version": "1.1.7.dfsg-12"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.0.16-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.0.16-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina",
            "purl": "pkg:deb/ubuntu/mina?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.1.7.dfsg-13"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina-java",
                "binary_version": "1.1.7.dfsg-13"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.0.19-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.0.19-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina",
            "purl": "pkg:deb/ubuntu/mina?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.1.7.dfsg-13"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina-java",
                "binary_version": "1.1.7.dfsg-13"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "2.1.4-2",
            "2.1.5-1",
            "2.1.5-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.1.5-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina",
            "purl": "pkg:deb/ubuntu/mina?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.1.7.dfsg-13",
            "1.1.7.dfsg-13ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina-java",
                "binary_version": "1.1.7.dfsg-13ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "2.2.1-3",
            "2.2.1-3ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.2.1-3ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.2.1-4",
            "2.2.1-4ubuntu1",
            "2.2.9-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.2.9-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mina2",
            "purl": "pkg:deb/ubuntu/mina2?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "2.2.1-4",
            "2.2.1-4ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58624.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmina2-java",
                "binary_version": "2.2.1-4ubuntu0.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:14.118563279Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-58624"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-58624",
        "https://www.cve.org/CVERecord?id=CVE-2026-58624",
        "https://www.openwall.com/lists/oss-security/2026/07/20/18"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-58624",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359501,
  "published_at": "2026-07-20T21:16:00+00:00"
}