Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
MediumPublic exploit

Heap Buffer Over-read in libcurl ASN1 Parser (GTime2str)

IdentifiersCVE-2024-7264CWE-126

CVE-2024-7264 is a vulnerability in libcurl's ASN1 parser, specifically in the GTime2str() function, which parses ASN.1 Generalized Time fields. When presented with a syntactically incorrect field, the function may use -1 as the length for the time fraction, resulting in a call to strlen() on a pointer to a heap buffer that is not null-terminated. This can cause a heap buffer over-read, potentially leading to a crash or unintended exposure of heap memory contents when CURLINFO_CERTINFO is used.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The primary impact is a potential crash (denial of service) due to a heap buffer over-read. Additionally, there is a risk of information disclosure, as heap memory contents may be returned to the application when CURLINFO_CERTINFO is used, potentially exposing sensitive data.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, avoid processing untrusted ASN.1 Generalized Time fields or using CURLINFO_CERTINFO with untrusted certificates. Employ runtime mitigations such as heap protections and memory sanitizers to reduce exploitation risk.

Remediation

Patch, then assume compromise.

Upgrade to a patched version of libcurl where the ASN1 parser's GTime2str() function properly validates the length of the time fraction and ensures safe handling of non-null-terminated buffers. Consult the official libcurl advisory and apply the relevant security update.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
HaxxLibcurlapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity3

Community discussion across Reddit, Mastodon, and other social sources.