Description
Date::Manip versions through 6.99 for Perl return corrupted dates via non-ASCII decimal digits that pass the numeric range tests in check.

The parse regexes capture year, month and day with the `\d` shorthand, which on a character string matches the whole Unicode decimal digit property `\p{Nd}` and not just `[0-9]`. Date::Manip::Base::check then validates the captured fields with numeric comparisons alone (`$y<1 || $y>9999`, `$m<1 || $m>12`, `$d<1 || $d>$days`), and _parse_check stores the numified fields (`$y+0`). Perl truncates a string at the first character that is not an ASCII digit, so a field whose leading characters are ASCII digits numifies to an in-range prefix and satisfies every test: a year field of three ASCII digits followed by U+0664 ARABIC-INDIC DIGIT FOUR numifies to 202, giving the year 0202, and one non-ASCII digit in the month or day field shifts those fields the same way. The hour, minute and second fields match explicit ASCII character classes (`0?[0-9]`, `[0-5][0-9]`) and do not shift, though a non-ASCII digit in a fractional hour or minute field truncates the fraction.

Any caller that passes an untrusted character string to ParseDate() or Date::Manip::Date->parse() can get back a date that differs from the string it parsed, with no parse error. Where the parsed date gates logic such as an expiry check or a retention window, the shift goes unnoticed.
Published: 2026-07-30
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Date::Manip versions up to 6.99 incorrectly accept Unicode digit characters when parsing year, month, or day fields. The \d regex matches any Unicode decimal digit, causing non‑ASCII digits to be silently truncated by Perl’s numeric conversion. The range checks in Date::Manip::Base::check then succeed because only the leading ASCII portion is examined. As a result, an untrusted date string such as "202\u0664" is parsed as the year 0202, producing a misleading date with no parsing error. When application logic uses the returned date for expiration, retention, or other time‑based controls, this discrepancy can be exploited to bypass limits, keep data past intended deadlines, or otherwise subvert business rules.

Affected Systems

The vulnerability affects all versions of SBECK Date::Manip for Perl up to and including 6.99. No further version information is supplied, so any installation using this library in that range is potentially vulnerable.

Risk and Exploitability

The EPSS score of <1% indicates a very low probability of exploitation, while the CVSS score of 7.5 demonstrates a high severity impact. This vulnerability is not listed in the CISA KEV catalog. An attacker who can supply an untrusted date string to a Perl application that uses Date::Manip for validation may receive a corrupted date from parsing, which could be used to bypass time‑based controls. The description does not explicitly state the exact attacker capabilities or methods, so the potential for exploitation is inferred from the described behavior rather than directly documented.

Generated by OpenCVE AI on August 11, 2026 at 01:43 UTC.

Remediation

Vendor Workaround

No fixed release is available. Apply the patch, which spells the numeric field captures as `[0-9]` and requires the date fields to be ASCII digit strings, or reject untrusted date strings containing non-ASCII characters before parsing them.


OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch available at https://security.metacpan.org/patches/D/Date-Manip/6.99/CVE-2026-60074-r1.patch or upgrade to a later release of Date::Manip that does not contain the faulty regex.
  • Modify the parsing logic so that numeric fields are matched with the ASCII character class [0-9] instead of the shorthand \d, ensuring non‑ASCII digits are rejected before conversion.
  • Validate any untrusted date string to confirm it contains only ASCII decimal digits (e.g., use a strict pattern or reject strings with Unicode characters) prior to calling ParseDate() or Date::Manip::Date->parse().

Generated by OpenCVE AI on August 11, 2026 at 01:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-681
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 31 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Sbeck
Sbeck date::manip
Vendors & Products Sbeck
Sbeck date::manip

Thu, 30 Jul 2026 14:15:00 +0000

Type Values Removed Values Added
Description Date::Manip versions through 6.99 for Perl return corrupted dates via non-ASCII decimal digits that pass the numeric range tests in check. The parse regexes capture year, month and day with the `\d` shorthand, which on a character string matches the whole Unicode decimal digit property `\p{Nd}` and not just `[0-9]`. Date::Manip::Base::check then validates the captured fields with numeric comparisons alone (`$y<1 || $y>9999`, `$m<1 || $m>12`, `$d<1 || $d>$days`), and _parse_check stores the numified fields (`$y+0`). Perl truncates a string at the first character that is not an ASCII digit, so a field whose leading characters are ASCII digits numifies to an in-range prefix and satisfies every test: a year field of three ASCII digits followed by U+0664 ARABIC-INDIC DIGIT FOUR numifies to 202, giving the year 0202, and one non-ASCII digit in the month or day field shifts those fields the same way. The hour, minute and second fields match explicit ASCII character classes (`0?[0-9]`, `[0-5][0-9]`) and do not shift, though a non-ASCII digit in a fractional hour or minute field truncates the fraction. Any caller that passes an untrusted character string to ParseDate() or Date::Manip::Date->parse() can get back a date that differs from the string it parsed, with no parse error. Where the parsed date gates logic such as an expiry check or a retention window, the shift goes unnoticed.
Title Date::Manip versions through 6.99 for Perl return corrupted dates via non-ASCII decimal digits that pass the numeric range tests in check
Weaknesses CWE-1289
References

Subscriptions

Sbeck Date::manip
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-31T17:57:36.087Z

Reserved: 2026-07-08T10:28:02.310Z

Link: CVE-2026-60074

cve-icon Vulnrichment

Updated: 2026-07-30T16:31:40.674Z

cve-icon NVD

Status : Deferred

Published: 2026-07-30T14:17:02.587

Modified: 2026-07-31T18:17:18.787

Link: CVE-2026-60074

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-30T13:42:03Z

Links: CVE-2026-60074 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T01:45:06Z

Weaknesses
  • CWE-1289

    Improper Validation of Unsafe Equivalence in Input

  • CWE-681

    Incorrect Conversion between Numeric Types