Loading HuntDB...

CVE-2023-43497

UNKNOWN
Published 2023-09-20T16:06:10.771Z
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2023-43497. We'll provide specific mitigation strategies based on your environment and risk profile.

No CVSS data available

Description

In Jenkins 2.423 and earlier, LTS 2.414.1 and earlier, processing file uploads using the Stapler web framework creates temporary files in the default system temporary directory with the default permissions for newly created files, potentially allowing attackers with access to the Jenkins controller file system to read and write the files before they are used.

Available Exploits

No exploits available for this CVE.

Related News

No news articles found for this CVE.

Affected Products

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed LOW

Jenkins temporary uploaded file created with insecure permissions

GHSA-qv64-w99c-qcr9

Advisory Details

In Jenkins 2.423 and earlier, LTS 2.414.1 and earlier, uploaded files processed via the Stapler web framework and the Jenkins API `MultipartFormDataParser` create temporary files in the system temporary directory with the default permissions for newly created files. If these permissions are overly permissive, attackers with access to the system temporary directory may be able to read and write the file before it is used. This vulnerability only affects operating systems using a shared temporary directory for all users (typically Linux). Additionally, the default permissions for newly created files generally only allow attackers to read the temporary file, but not write to it. Jenkins 2.424, LTS 2.414.2 creates the temporary files in a subdirectory with more restrictive permissions. As a workaround, you can change your default temporary-file directory using the Java system property `java.io.tmpdir`, if you’re concerned about this issue but unable to immediately update Jenkins.

Affected Packages

Maven org.jenkins-ci.main:jenkins-core
ECOSYSTEM: ≥2.50 <2.414.2
Maven org.jenkins-ci.main:jenkins-core
ECOSYSTEM: ≥2.415 <2.424

CVSS Scoring

CVSS Score

2.5

CVSS Vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Advisory provided by GitHub Security Advisory Database. Published: September 20, 2023, Modified: September 25, 2023

References

Published: 2023-09-20T16:06:10.771Z
Last Modified: 2024-09-24T17:04:55.380Z
Copied to clipboard!