Skip to content
Heist/ feed
Back to feed
MediumFix available

libssh — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-6004

A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.

Products
libssh
Affected versions
0.10.5-2, 0.10.5-3, 0.10.5-3+hurd.1
Fixed versions
0.10.6-0+deb12u1, 0.10.6-1
CVEs
CVE-2023-6004
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 16:31 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-6004

core-osv · Original source

Published 3 Jan 2024, 17:15 UTC

A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.

osv:DEBIAN-CVE-2023-6004

libssh

Fixed versions: 0.10.6-0+deb12u1

libssh

Fixed versions: 0.10.6-1

libssh

Fixed versions: 0.10.6-1

Complete source record
{
  "id": "b79c08cfe5dcf0bd5f973f3936051d8d36ec280929785fa8cf33875631f97ba2",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-6004",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-6004",
    "summary": "A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.",
    "evidence": "osv:DEBIAN-CVE-2023-6004",
    "products": [
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.6-0+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.10.5-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.5-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.5-3+hurd.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.6-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.6-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-6004",
      "aliases": [
        "DEBIAN-CVE-2023-6004"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.6-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.10.5-2",
            "0.10.5-3",
            "0.10.5-3+hurd.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-6004.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.6-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-6004.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.6-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-6004.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:03:10.293664803Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-6004"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-6004"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-6004",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 457973,
  "published_at": "2024-01-03T17:15:11.623+00:00"
}