Stack-based Buffer Overflow Affecting time-macros package, versions >=0.2.4 <0.2.27


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TIMEMACROS-15239583
  • published6 Feb 2026
  • disclosed5 Feb 2026
  • creditMarek Kroemeke

Introduced: 5 Feb 2026

NewCVE-2026-25727  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade time-macros to version 0.2.27 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the RFC 2822 parsing. An attacker can cause stack exhaustion by providing specially crafted input that exploits deprecated and rarely-used features of the RFC 2822 format.

Workaround

This vulnerability can be mitigated by limiting the length of user input, as the stack consumption is proportional to input length.

PoC

When user-provided input is provided to any type that parses with the RFC 2822 format, a Denial of Service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

References

CVSS Base Scores

version 4.0
version 3.1