async-http-client: AsyncHttpClient: Resumable download index store is created world-readable and follows a planted symlink
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
The AsyncHttpClient library allows Java applications to execute HTTP requests and asynchronously process HTTP responses. From 2.0.0 until 2.16.1 and 3.0.12, PropertiesBasedResumableProcessor stores resumable download state at the predictable shared path $java.io.tmpdir/ahc/ResumableAsyncHandler.properties with default permissions and link-following file operations. A local user who can read the shared store can see download URLs, including embedded user information or query tokens. A local user who can write within or pre-create the affected shared store directory can plant a symbolic link that the client follows when saving state, truncating and overwriting a target file writable by the client process. The filesystem path is used when ResumableAsyncHandler decorates another AsyncHandler, while the no-argument constructors use a no-op processor and are unaffected. This issue is fixed in versions 2.16.1 and 3.0.12.
Text from CVE List
Affected versions 2
- async-http-clientaffected: >= 2.0.0, < 2.16.1CVE List
- async-http-clientaffected: >= 3.0.0, < 3.0.12CVE List
References 6
- github.com/AsyncHttpClient/async-http-client/commit/0422e11c954c4b026e986d1458f7a7a2eab7e591Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/commit/d945ce3357b093e74526871cd309832a717ecfdaFixvia CVE List
- github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.16.1Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.12Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-cf59-3jcr-vfhwAdvisoryvia CVE List
- github.com/AsyncHttpClient/async-http-client/pull/2281Referencevia CVE List