Vulnerabilities in pkg:gem/exiftool_vendored

PACKAGE
Advisory Summary

GHSA-q95h-cqrv-8jv5 is a HIGH (CVSS 7.8) exiftool vulnerable to arbitrary code vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Exiftool vendored libraries in the RubyGems ecosystem. The issue involves exiftool vulnerable to arbitrary code execution. Remediation is available by upgrading affected packages to version 12.25.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/exiftool_vendored

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/exiftool_vendored. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q95h-cqrv-8jv5 - HIGH ExifTool vulnerable to arbitrary code execution

GHSA-q95h-cqrv-8jv5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q95h-cqrv-8jv5
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Exiftool vendored
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-q95h-cqrv-8jv5

To remediate this vulnerability, upgrade all affected Exiftool vendored dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

exiftool_vendored fixed: 12.25.0
Upgrade exiftool_vendored to 12.25.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for exiftool_vendored

How to Check if You Are Affected

To determine whether your application is affected by GHSA-q95h-cqrv-8jv5, inspect your project dependencies for Exiftool vendored:

inspect dependencies for exiftool_vendored

Analyze the terminal output to locate any version of Exiftool vendored in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.25.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Exiftool vendored, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Arbitrary code execution can occur when running `exiftool` against files with hostile metadata payloads ### Patches ExifTool has already been patched in version 12.24. `exiftool_vendored.rb`, which vendors ExifTool, includes this patch in [v12.25.0](https://github.com/exiftool-rb/exiftool_vendored.rb/releases/tag/v12.25.0). ### Workarounds No ### References https://twitter.com/wcbowling/status/1385803927321415687 https://nvd.nist.gov/vuln/detail/CVE-2021-22204 ### For more information If you have any questions or comments about this advisory: Open an issue in [exiftool_vendored.rb](https://github.com/exiftool-rb/exiftool_vendored.rb/issues)

GHSA-q95h-cqrv-8jv5 Affected Exiftool vendored Versions

1 component(s)
Fixed Versions:
12.25.0
Product / Package Ecosystem Affected Versions Fixed Version
exiftool_vendored
RubyGems
< 12.25.0
12.25.0

References

Frequently Asked Questions

What is GHSA-q95h-cqrv-8jv5?
GHSA-q95h-cqrv-8jv5 is a security vulnerability in Exiftool vendored involving ExifTool vulnerable to arbitrary code execution under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Exiftool vendored versions are affected?
Affected versions include releases prior to 12.25.0 across affected packages: exiftool_vendored.
What version fixes GHSA-q95h-cqrv-8jv5?
Upgrading to 12.25.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is exiftool_vendored affected?
Yes, exiftool_vendored is affected in releases prior to 12.25.0. Upgrade your dependency to 12.25.0 or later.
What is the CVSS score of GHSA-q95h-cqrv-8jv5?
GHSA-q95h-cqrv-8jv5 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-q95h-cqrv-8jv5?
GHSA-q95h-cqrv-8jv5 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check RubyGems dependencies for GHSA-q95h-cqrv-8jv5?
Run the dependency tree command: 'inspect dependencies for exiftool_vendored'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q95h-cqrv-8jv5",
  "modified" : "2023-01-20T19:33:40Z",
  "published" : "2023-01-20T19:33:40Z",
  "aliases" : [ ],
  "summary" : "ExifTool vulnerable to arbitrary code execution",
  "details" : "### Impact\nArbitrary code execution can occur when running `exiftool` against files with hostile metadata payloads\n\n### Patches\nExifTool has already been patched in version 12.24. `exiftool_vendored.rb`, which vendors ExifTool, includes this patch in [v12.25.0](https://github.com/exiftool-rb/exiftool_vendored.rb/releases/tag/v12.25.0).\n\n### Workarounds\nNo\n\n### References\nhttps://twitter.com/wcbowling/status/1385803927321415687\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-22204\n\n### For more information\nIf you have any questions or comments about this advisory:\n\nOpen an issue in [exiftool_vendored.rb](https://github.com/exiftool-rb/exiftool_vendored.rb/issues)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "exiftool_vendored"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "12.25.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/exiftool-rb/exiftool_vendored.rb/security/advisories/GHSA-q95h-cqrv-8jv5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/exiftool-rb/exiftool_vendored.rb"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/wcbowling/status/1385803927321415687"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-20T19:33:40Z",
    "nvd_published_at" : null
  }
}