Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.github.samtools/htsjdk
  4. ›
  5. CVE-2022-21126

CVE-2022-21126: Exposure of Resource to Wrong Sphere

November 29, 2022 (updated December 1, 2022)

The package com.github.samtools:htsjdk before 3.0.1 is vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the createTempDir() function in util/IOUtil.java not checking for the existence of the temporary directory before attempting to create it.

References

  • github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772
  • github.com/samtools/htsjdk/pull/1617
  • nvd.nist.gov/vuln/detail/CVE-2022-21126
  • security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901

Code Behaviors & Features

Detect and mitigate CVE-2022-21126 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.1

Fixed versions

  • 3.0.1

Solution

Upgrade to version 3.0.1 or above.

Impact 7.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-668: Exposure of Resource to Wrong Sphere

Source file

maven/com.github.samtools/htsjdk/CVE-2022-21126.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.