# CVE-2024-7264: ASN.1 date parser overread

> An attacker can trigger a heap overread in libcurl's ASN.1 parser, potentially leaking heap memory or causing a crash via malformed time fields.

- **Severity:** Medium 6.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 31 Jul 2024
- **Updated:** 15 Oct 2026
- **Also known as:** ALPINE-CVE-2024-7264, AZL-47253, AZL-47282, BELL-CVE-2024-7264, CLEANSTART-2026-BQ39086, CLSA-2024-1726313254, CLSA-2024-1726773445, CLSA-2025-1750784906, CLSA-2025-1750785256, CLSA-2025-1751135005, CLSA-2026-1776599416, CLSA-2026-1776601980, CURL-CVE-2024-7264, DEBIAN-CVE-2024-7264, GHSA-97c4-2w4v-c7r8, JLSEC-2025-38, SUSE-SU-2024:2930-1, SUSE-SU-2024:2938-1, SUSE-SU-2024:3080-1, SUSE-SU-2024:3080-2, UBUNTU-CVE-2024-7264, USN-6944-1, USN-6944-2, openSUSE-SU-2024:14261-1

## What is CVE-2024-7264?

CVE-2024-7264 is a medium-severity vulnerability in Haxx Libcurl, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

libcurl's ASN1 parser code has the `GTime2str()` function, used for parsing an
ASN.1 Generalized Time field. If given an syntactically incorrect field, the
parser might end up using -1 for the length of the *time fraction*, leading to
a `strlen()` getting performed on a pointer to a heap buffer area that is not
(purposely) null terminated.

This flaw most likely leads to a crash, but can also lead to heap contents
getting returned to the application when
[CURLINFO_CERTINFO](https://curl.se/libcurl/c/CURLINFO_CERTINFO.html) is used.

Weakness: CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2024-7264?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `curl` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Installer Updates 15 SP4 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Installer Updates 15 SP5 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Micro 5.1 | All versions | 7.66.0-150200.4.75.1 |
| `curl` | SUSE:Linux Enterprise Micro 5.2 | All versions | 7.66.0-150200.4.75.1 |
| `curl` | SUSE:Linux Enterprise Micro 5.3 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Micro 5.4 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Micro 5.5 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 8.0.1-11.89.1 |
| `curl` | SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 8.0.1-11.89.1 |
| `curl` | SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 8.0.1-11.89.1 |
| `curl` | SUSE:Manager Proxy 4.3 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | SUSE:Manager Server 4.3 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | openSUSE:Leap 15.5 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | openSUSE:Leap Micro 5.5 | All versions | 8.0.1-150400.5.47.1 |
| `curl` | openSUSE:Tumbleweed | All versions | 8.9.1-1.1 |

Products: Haxx Libcurl.

## How do I fix CVE-2024-7264?

Upgrade to a fixed version.

## Is CVE-2024-7264 being exploited?

There is no known exploitation of CVE-2024-7264 in the wild and no public exploit code.

## Other vulnerabilities in Haxx Libcurl

- [CVE-2024-6197](https://insights.sbomify.com/CVE-2024-6197/): freeing stack buffer in utf8asn1str (high 7.5)
- [CVE-2017-1000254](https://insights.sbomify.com/CVE-2017-1000254/): Memory corruption in n/a (high 7.5)
- [CVE-2016-7141](https://insights.sbomify.com/CVE-2016-7141/): Auth bypass in n/a (high 7.5)
- [CVE-2017-1000099](https://insights.sbomify.com/CVE-2017-1000099/): Information disclosure in n/a (medium 6.5)
- [CVE-2017-1000100](https://insights.sbomify.com/CVE-2017-1000100/): Information disclosure in n/a (medium 6.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-7264 and fix it if it is affected.

What it is: CVE-2024-7264 is a medium-severity vulnerability in Haxx Libcurl, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-7264 in the wild and no public exploit code.

Affected product: Haxx Libcurl. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-7264/ (Markdown: https://insights.sbomify.com/CVE-2024-7264/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-7264
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-7264
- OSV: https://osv.dev/vulnerability/CVE-2024-7264

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-7264/
Summaries are generated and may contain mistakes; the official description above is the record.
