Bug 1446495 (CVE-2017-1000242) - CVE-2017-1000242 jenkins-plugin-git-client: Storing sensitive information in world-readable temporary files (SECURITY-445)
Summary: CVE-2017-1000242 jenkins-plugin-git-client: Storing sensitive information in ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-1000242
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1471326
Blocks: 1395176 1446496
TreeView+ depends on / blocked
 
Reported: 2017-04-28 08:32 UTC by Adam Mariš
Modified: 2021-10-21 11:53 UTC (History)
7 users (show)

Fixed In Version: jenkins-plugin-git-client 2.4.4
Clone Of:
Environment:
Last Closed: 2021-10-21 11:53:49 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2017-04-28 08:32:07 UTC
Temporary files were previously written to the Java temporary directory with default permissions. A malicious actor with local file access could have captured sensitive information by reading files from that directory. The temporary files typically are only on the file system for the duration of a single command line git invocation, but cloning a large Git repo could require an extended time with those sensitive files in the temporary directory.

This change sets permissions on the temporary files to be readable only by the file owner. If a workspace is available, a temporary directory adjacent to the workspace is used instead of the system temporary directory.

As a workaround, setting the system property java.io.tmpdir on Jenkins master and agents to a directory only accessible by the Jenkins process’s user would prevent this issue.

Affected versions: Git Client Plugin up to and including 2.4.2

External References:

https://jenkins.io/security/advisory/2017-04-27/


Note You need to log in before you can comment on or make changes to this bug.