← VULNERABILITIES

DHI-5kwz-lz57-fvxx-u4y5

### Summary

Unscored
CVSS
—
EPSS
—
Published
2026-11-26
Age
3d old
Modified
2026-11-26
Product
rsyslog

Description

### Summary A template that formats a timestamp as a weekday name reads outside a 7 element array when the timestamp carries a year well below 1970. The RFC5424 timestamp parser accepts years as low as 1, the weekday calculation then returns a negative index, and the array lookup reads a pointer from before the array that the template engine then dereferences as a string. A single message from any configured input triggers the fault, so this is a remote, unauthenticated out-of-bounds read reachable over the network. ### Details The weekday-name property reads an array with an unchecked index. getWeekdayNbr() (runtime/datetime.c:1177 on both main and v8.2610.0) computes a weekday with a Zeller-style formula, `wday = ((36525 * g) / 100) + ((306 * f) / 10) + ts->day - 621049` (datetime.c:1188), then reduces it with `wday %= 7` (datetime.c:1189). For a year far below 1970 the intermediate value is a large negative number. C keeps the sign of the left operand in `%`, so the result can be negative, for example -6. The weekday-name property modifier then uses that value as an array index with no bounds check. In getTimeReported() the code returns `wdayNames[getWeekdayNbr(&pM->tTIMESTAMP)]

Sources

  • OSV · first seen 3d ago · CC-BY 4.0

References

JSON