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
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.
- 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.
Impact: malformed JSON emitted by affected templates
| Product | Affected |
|---|---|
| rsyslog | beginning with v8.23.0 |
- Vendors
- rsyslog
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.
seclists.org
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.