{
  "document": {
    "aggregate_severity": {
      "text": "Important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Cloud Linux Inc. and provide a link to the original.",
        "title": "Terms of Use"
      },
      {
        "category": "details",
        "text": "* SECURITY UPDATE: out-of-bounds read in sftp_handle function\n     - debian/patches/CVE-2025-5318.patch: fix possible buffer overrun by\n       changing '> SFTP_HANDLES' to '>= SFTP_HANDLES'\n     - CVE-2025-5318",
        "title": "Details"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/ubuntu18.04els/advisories/2025/clsa-2025_1757662564.json"
      },
      {
        "category": "self",
        "summary": "https://cve.tuxcare.com/els/releases/CLSA-2025:1757662564",
        "url": "https://cve.tuxcare.com/els/releases/CLSA-2025:1757662564"
      }
    ],
    "tracking": {
      "current_release_date": "2025-09-12T07:36:41Z",
      "generator": {
        "date": "2025-09-12T07:36:41Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CLSA-2025:1757662564",
      "initial_release_date": "2025-09-12T07:36:41Z",
      "revision_history": [
        {
          "date": "2025-09-12T07:36:41Z",
          "number": "1",
          "summary": "Initial version"
        }
      ],
      "status": "final",
      "version": "1"
    },
    "title": "Fix CVE(s): CVE-2025-5318"
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Ubuntu 18.04",
                "product": {
                  "name": "Ubuntu 18.04",
                  "product_id": "Ubuntu-18",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Ubuntu"
          }
        ],
        "category": "vendor",
        "name": "Canonical Ltd."
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                "product": {
                  "name": "libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_id": "libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libssh-dev@0.8.0~20170825.94fa1e38-1ubuntu0.7%2Btuxcare.els2?arch=amd64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                "product": {
                  "name": "libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_id": "libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libssh-gcrypt-dev@0.8.0~20170825.94fa1e38-1ubuntu0.7%2Btuxcare.els2?arch=amd64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                "product": {
                  "name": "libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_id": "libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libssh-4@0.8.0~20170825.94fa1e38-1ubuntu0.7%2Btuxcare.els2?arch=amd64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                "product": {
                  "name": "libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_id": "libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libssh-gcrypt-4@0.8.0~20170825.94fa1e38-1ubuntu0.7%2Btuxcare.els2?arch=amd64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "amd64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
                "product": {
                  "name": "libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
                  "product_id": "libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libssh-doc@0.8.0~20170825.94fa1e38-1ubuntu0.7%2Btuxcare.els2?arch=all"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "all"
          }
        ],
        "category": "vendor",
        "name": "CloudLinux"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64 as a component of Ubuntu 18.04",
          "product_id": "Ubuntu-18:libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
        },
        "product_reference": "libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
        "relates_to_product_reference": "Ubuntu-18"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64 as a component of Ubuntu 18.04",
          "product_id": "Ubuntu-18:libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
        },
        "product_reference": "libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
        "relates_to_product_reference": "Ubuntu-18"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64 as a component of Ubuntu 18.04",
          "product_id": "Ubuntu-18:libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
        },
        "product_reference": "libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
        "relates_to_product_reference": "Ubuntu-18"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all as a component of Ubuntu 18.04",
          "product_id": "Ubuntu-18:libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all"
        },
        "product_reference": "libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
        "relates_to_product_reference": "Ubuntu-18"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64 as a component of Ubuntu 18.04",
          "product_id": "Ubuntu-18:libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
        },
        "product_reference": "libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
        "relates_to_product_reference": "Ubuntu-18"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2025-5318",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in the libssh library. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.",
          "title": "Vulnerability description"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Ubuntu-18:libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
          "Ubuntu-18:libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
          "Ubuntu-18:libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
          "Ubuntu-18:libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
          "Ubuntu-18:libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2025-5318"
        },
        {
          "category": "external",
          "summary": "https://access.redhat.com/security/cve/CVE-2025-5318",
          "url": "https://access.redhat.com/security/cve/CVE-2025-5318"
        },
        {
          "category": "external",
          "summary": "https://bugzilla.redhat.com/show_bug.cgi?id=2369131",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2369131"
        },
        {
          "category": "external",
          "summary": "https://www.libssh.org/security/advisories/CVE-2025-5318.txt",
          "url": "https://www.libssh.org/security/advisories/CVE-2025-5318.txt"
        }
      ],
      "release_date": "2025-06-24T14:15:00",
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "Ubuntu-18:libssh-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
            "Ubuntu-18:libssh-gcrypt-dev-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
            "Ubuntu-18:libssh-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64",
            "Ubuntu-18:libssh-doc-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.all",
            "Ubuntu-18:libssh-gcrypt-4-0:0.8.0~20170825.94fa1e38-1ubuntu0.7+tuxcare.els2.amd64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "High"
        }
      ]
    }
  ]
}