{
  "schema_version": "1.5.0",
  "id": "CURL-CVE-2023-28319",
  "aliases": [
    "CVE-2023-28319"
  ],
  "summary": "UAF in SSH sha256 fingerprint check",
  "modified": "2026-04-25T17:48:46.00Z",
  "database_specific": {
    "package": "curl",
    "affects": "both",
    "URL": "https://curl.se/docs/CVE-2023-28319.json",
    "www": "https://curl.se/docs/CVE-2023-28319.html",
    "issue": "https://hackerone.com/reports/1913733",
    "CWE": {
      "id": "CWE-416",
      "desc": "Use After Free"
    },
    "award": {
      "amount": "2400",
      "currency": "USD"
    },
    "last_affected": "8.0.1",
    "severity": "Medium"
  },
  "published": "2023-05-17T08:00:00.00Z",
  "affected": [
    {
      "ranges": [
        {
           "type": "SEMVER",
           "events": [
             {"introduced": "7.81.0"},
             {"fixed": "8.1.0"}
           ]
        },
        {
           "type": "GIT",
           "repo": "https://github.com/curl/curl.git",
           "events": [
             {"introduced": "3467e89bb97e6c87c77e82a046c59cb4b2d29a74"},
             {"fixed": "8e21b1a05f3c0ee098dbcb6c3d84cb61f102a122"}
           ]
        }
      ],
      "versions": [
        "8.0.1", "8.0.0", "7.88.1", "7.88.0", "7.87.0", "7.86.0", "7.85.0", 
        "7.84.0", "7.83.1", "7.83.0", "7.82.0", "7.81.0"
      ]
    }
  ],
  "credits": [
    {
      "name": "Wei Chong Tan",
      "type": "FINDER"
    },
    {
      "name": "Daniel Stenberg",
      "type": "REMEDIATION_DEVELOPER"
    }
  ],
  "details": "libcurl offers a feature to verify an SSH server's public key using a SHA 256\nhash. When this check fails, libcurl would free the memory for the fingerprint\nbefore it returns an error message containing the (now freed) hash.\n\nThis flaw risks inserting sensitive heap-based data into the error message\nthat might be shown to users or otherwise get leaked and revealed."
}