Fedora Account System
Red Hat Associate
Red Hat Customer
* subj: [vs-plain] rsyslog weekday formatting crash cves: GHSA-5pc2-f2v7-5w5p | CVE-2026-129837 Embargoed rsyslog security notification for distribution maintainers. Coordinated public disclosure is scheduled for Tuesday, 2026-11-17 at 16:00 UTC (17:00 CET / 11:00 EST). Please confirm receipt and flag any concrete operational or backporting problem promptly. GHSA-5pc2-f2v7-5w5p: an out-of-bounds read in weekday formatting can crash rsyslogd. A parsed RFC5424 timestamp with a low year such as 0001 can make getWeekdayNbr() return a negative C remainder. If an input accepts the crafted message and routes it to an action template using date-wdayname, the formatter indexes before the seven-element weekday-name table. A single message caused a SIGSEGV in our normal-build test; AddressSanitizer reported an eight-byte global out-of-bounds read. The related numeric date-wday formatter produced invalid output in bounded checks. We have not demonstrated unrelated memory disclosure or an integrity impact. Remote unauthenticated exposure depends on an accessible input and the affected template path. Affected upstream v8 releases: >= 8.3.2, based on introduction commits and tag containment. Older nonstandard release trains were not assessed. CVSS 3.1: 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) for an unauthenticated network-input configuration. CWE-125. A CVE has been requested through GitHub; assignment is pending. The accepted fixed-version label for the coordinated disclosure day is "2026-11-17 daily stable". This label is separate from actual package availability, which is not yet verified. The source-only patch below applies to upstream base a6c1f4023df4f4e783158ea3837796dc0ef45e4e and current public main 8a86b533612c32065a864ff52d951afddb423e12. It normalizes the signed remainder before all weekday consumers. Distribution source packages may carry backports; please inspect the effective datetime.c behavior and the binary package containing rsyslogd before assessing your supported releases. Mitigation before updating: avoid date-wdayname and date-wday on untrusted reported timestamps, or restrict senders to inputs feeding such templates. The issue was reported by Manyo9, credited as reporter in the private GHSA. Source-only patch (SHA-256 abb3e7a6a453406be657dc4f08f766b655cc56ae9f6eabbb75e52f27e27d5da8): diff --git a/runtime/datetime.c b/runtime/datetime.c index 67392aa96..9faaaf192 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -1187,6 +1187,7 @@ int getWeekdayNbr(struct syslogTime *ts) { } wday = ((36525 * g) / 100) + ((306 * f) / 10) + ts->day - 621049; wday %= 7; + if (wday < 0) wday += 7; return wday; } @@ -1391,4 +1392,4 @@ BEGINAbstractObjClassInit(datetime, 1, OBJ_IS_CORE_MODULE) /* class, version */ ENDObjClassInit(datetime) /* vi:set ai: - */ \ No newline at end of file + */