Skip to main content
Public proof of conceptFix available

CVE-2023-28319

A public proof of concept exists; no exploitation attested.

  • Published2023-05-26
  • Fixed in13.5 · 12.6.8 · 11.7.9
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

A use after free vulnerability exists in curl <v8.1.0 in the way libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash. This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.

Timeline

dates in UTC
  1. 2023-05-2621:15CVE publishedNVD

Versions per branch

NVD
Apple macos
BranchAffectedFixed in
13.x≥ 13.0, < 13.513.5
12.x≥ 12.0, < 12.6.812.6.8
11.x≥ 11.0, < 11.7.911.7.9
Haxx curl
BranchAffectedFixed in
8.1< 8.1.08.1.0
Netapp clustered data ontap
BranchAffectedFixed in
—all versionsno fix published

5 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As hackerone, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • https://github.com/curl/curl
    Affected
    • = Fixed in 8.1.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-11

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • curlSUSE:Linux Enterprise Software Development Kit 12 SP5all versions · fixed in 8.0.1-11.65.2
  • curlSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 8.0.1-11.65.2
  • curlSUSE:Linux Enterprise Server 12 SP5all versions · fixed in 8.0.1-11.65.2
  • curlSUSE:Linux Enterprise Module for Basesystem 15 SP4all versions · fixed in 8.0.1-150400.5.23.1
  • curlSUSE:Linux Enterprise Micro 5.4all versions · fixed in 8.0.1-150400.5.23.1
  • curlSUSE:Linux Enterprise Micro 5.3all versions · fixed in 8.0.1-150400.5.23.1
  • curlopenSUSE:Tumbleweedall versions · fixed in 8.1.0-1.1
  • curlopenSUSE:Leap Micro 5.3all versions · fixed in 8.0.1-150400.5.23.1

32 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-28319 Red Hat Product Security11 products fixed · 4 known affected

    curl: use after free in SSH sha256 fingerprint check

    rh-dotnet31-curl as a component of .NET Core 3.1 on Red Hat Enterprise Linux · rh-dotnet31-curl.src as a component of .NET Core 3.1 on Red Hat Enterprise Linux · rh-dotnet31-libcurl as a component of .NET Core 3.1 on Red Hat Enterprise Linux · +1 more

  • ICSA-24-165-06 CISA2 known affected

    Siemens TIM 1531 IRC

    SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) · TIM 1531 IRC (6GK7543-1MX00-0XE0)

  • SSA-337522 Siemens ProductCERT2 known affected

    SSA-337522: Multiple Vulnerabilities in TIM 1531 IRC before V2.4.8

    SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) · TIM 1531 IRC (6GK7543-1MX00-0XE0)

  • ICSA-24-046-15 CISA1 known affected

    Siemens SINEC NMS

    SINEC NMS

  • SSA-943925 Siemens ProductCERT1 known affected

    SSA-943925: Multiple Vulnerabilities in SINEC NMS before V2.0 SP1

    SINEC NMS

  • RHSA-2023:4629 Red Hat Product Security11 products fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 security update

1 more advisory

Full record on NVD

Fix

  1. Update Apple macos to 13.5 · 12.6.8 · 11.7.9
  2. Vendor fix CISA ICSA-24-165-06 · 2 productsUpdate to V2.4.8 or later version
  3. Vendor fix Siemens ProductCERT SSA-337522 · 2 productsUpdate to V2.4.8 or later version
  4. Vendor fix CISA ICSA-24-046-15 · 1 productUpdate to V2.0 SP1 or later version
  5. Vendor fix Siemens ProductCERT SSA-943925 · 1 productUpdate to V2.0 SP1 or later version
  6. Vendor fix Red Hat Product Security RHSA-2023:4629 · 11 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  7. Vendor fix Red Hat Product Security RHSA-2023:4628 · 1 productFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2023-05-26
Last Modified
2026-10-23
NVD status
Modified
GitHub Advisory
GHSA-6xq7-qqp2-9mmc

Frequently asked questions

What is CVE-2023-28319?

A use after free vulnerability exists in curl <v8.1.0 in the way libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash. This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.

Is CVE-2023-28319 actively exploited?

A proof-of-concept exploit exists for CVE-2023-28319, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-28319?

CVE-2023-28319 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running curl? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record