Skip to content
NewA calmer, faster ZeroHour

rsyslog from v8.23.0 can emit malformed JSON with option.json

Original title: rsyslog GHSA-cg8j-rwxh-vrg3: malformed JSON from option.json templates

oss-security ()
AI summary · x-ai/grok-4.7Summaries by Vani AI

A field made only of quotes or backslashes can skip JSON escaping in string or list templates.

Rainer Gerhards reported GHSA-cg8j-rwxh-vrg3, a JSON escaping defect in rsyslog string and list templates with option.json set to on, beginning with v8.23.0. runtime/template.c can leave its JSON precheck without escaping a field that contains only double quotes and/or backslashes. Inserting that field into a JSON string can emit malformed JSON. A sender must control a field used by an affected template.

Unconfirmed: The notice is cut off before stating remote access requirements or a fixed release.

Key facts
  • The defect begins in rsyslog v8.23.0.
  • Only values of quotes and/or backslashes skip escaping.
  • The sender must control a field used by the template.
Security assessment · AI, from the article

Impact: malformed JSON emitted by affected templates

ProductAffected
rsyslogbeginning with v8.23.0
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

Posted by Rainer Gerhards on Nov 17 A JSON escaping defect in rsyslog string/list templates with option. json="on" affects releases beginning with v8. 23.

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.