VDB
Sign up
MEDIUM5.3

GHSA-qrh5-jg98-cr48

Jenkins has a log message injection vulnerability

Quick fix

GHSA-qrh5-jg98-cr48 — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.516.3</version> for org.jenkins-ci.main:jenkins-core

Details

In Jenkins 2.527 and earlier, LTS 2.516.2 and earlier, the log formatter that prepares log messages for console output (including `jenkins.log` and equivalent) does not restrict or transform the characters that can be inserted from user-specified content in log messages.

This allows attackers able to control log message contents to insert line break characters, followed by forged log messages that may mislead administrators reviewing log output.

Jenkins 2.528, LTS 2.516.3 adds an indicator at the beginning of a line that was inserted as part of log message content: `[CR]`, `[LF]`, or `[CRLF]` (representing the kind of line break), followed by `>` .

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 0Fixed in: 2.516.3
Fix# pom.xml: bump <version>2.516.3</version> for org.jenkins-ci.main:jenkins-core
Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 2.517Fixed in: 2.528
Fix# pom.xml: bump <version>2.528</version> for org.jenkins-ci.main:jenkins-core

References