Bug 1949636 (CVE-2021-29429) - CVE-2021-29429 gradle: information disclosure through temporary directory permissions
Summary: CVE-2021-29429 gradle: information disclosure through temporary directory per...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-29429
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:
Blocks: 1949646
TreeView+ depends on / blocked
 
Reported: 2021-04-14 17:33 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-05-18 10:56 UTC (History)
57 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-23 10:49:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4767 0 None None None 2021-11-23 10:35:39 UTC
Red Hat Product Errata RHSA-2022:4623 0 None None None 2022-05-18 10:56:18 UTC

Description Guilherme de Almeida Suckevicz 2021-04-14 17:33:01 UTC
In Gradle before version 7.0, files created with open permissions in the system temporary directory can allow an attacker to access information downloaded by Gradle. Some builds could be vulnerable to a local information disclosure. Remote files accessed through TextResourceFactory are downloaded into the system temporary directory first. Sensitive information contained in these files can be exposed to other local users on the same system. If you do not use the `TextResourceFactory` API, you are not vulnerable. As of Gradle 7.0, uses of the system temporary directory have been moved to the Gradle User Home directory. By default, this directory is restricted to the user running the build. As a workaround, set a more restrictive umask that removes read access to other users. When files are created in the system temporary directory, they will not be accessible to other users. If you are unable to change your system's umask, you can move the Java temporary directory by setting the System Property `java.io.tmpdir`. The new path needs to limit permissions to the build user only.

Reference:
https://github.com/gradle/gradle/security/advisories/GHSA-fp8h-qmr5-j4c8

Comment 5 errata-xmlrpc 2021-11-23 10:35:37 UTC
This issue has been addressed in the following products:

  Red Hat Integration

Via RHSA-2021:4767 https://access.redhat.com/errata/RHSA-2021:4767

Comment 6 Product Security DevOps Team 2021-11-23 10:49:04 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-29429

Comment 7 errata-xmlrpc 2022-05-18 10:56:14 UTC
This issue has been addressed in the following products:

  Red Hat build of Quarkus 2.7.5

Via RHSA-2022:4623 https://access.redhat.com/errata/RHSA-2022:4623


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