Description
Date::Manip versions through 7.00 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 through 7.00 improperly accept Unicode decimal digits when parsing year, month, or day fields, because the regex constructs use the \d shorthand which matches any Unicode decimal digit (\p{Nd}) rather than strictly [0-9]. The check routine then validates the captured fields with numeric comparisons alone and numifies them with Perl’s arithmetic conversion ($y+0). Oberly, a field beginning with ASCII digits and followed by a non‑ASCII digit is truncated to the ASCII prefix, satisfying the range tests and yielding an unintended date value. This flaw exemplifies CWE-1289 and CWE-681, where numeric inputs are not properly validated or correctly converted. An attacker providing an untrusted date string to ParseDate() or Date::Manip::Date->parse() can obtain a corrupted date that differs from the input, with no parse error. If that date is used to gate logic such as an expiry check or a retention window, the shift can allow the attacker to bypass limits or extend data retention undetected.

Affected Systems

The vulnerability affects all releases of the SBECK Date::Manip Perl module up to and including 7.00. Any Perl application that uses this module to parse untrusted date strings in that version range is potentially vulnerable.

Risk and Exploitability

The EPSS score of <1% indicates a very low probability that this issue has already been exploited, but the CVSS score of 7.5 reflects a high severity impact on confidentiality, integrity and availability when the corrupted date feeds into critical logic. The vulnerability is not listed in the CISA KEV catalog. If an attacker can supply an untrusted date string to a vulnerable application, they may gain an exploitable logic bypass by leveraging the shifted timestamp. The described behavior provides a clear attack path, although the practical exploitation may require control over the input string and a scenario where the corrupted date matters for business logic.

Generated by OpenCVE AI on September 2, 2026 at 14:12 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 at https://security.metacpan.org/patches/D/Date-Manip/6.99/CVE-2026-60074-r1.patch or upgrade to a newer release of Date::Manip that corrects the regexes.
  • 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 prior to calling ParseDate() or Date::Manip::Date->parse().

Generated by OpenCVE AI on September 2, 2026 at 14:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 12:45: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. Date::Manip versions through 7.00 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 Date::Manip versions through 7.00 for Perl return corrupted dates via non-ASCII decimal digits that pass the numeric range tests in check

Fri, 21 Aug 2026 08:30:00 +0000

Type Values Removed Values Added
References

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-09-02T12:22:56.723Z

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-09-02T13:18:03.777

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-09-02T14:15:06Z

Weaknesses
  • CWE-1289

    Improper Validation of Unsafe Equivalence in Input

  • CWE-681

    Incorrect Conversion between Numeric Types