Vulnerabilities in pkg:gem/exiftool_vendored
PACKAGEGHSA-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.
pkg:gem/exiftool_vendored
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
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).
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.
Upgrade exiftool_vendored to 12.25.0
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
GHSA-q95h-cqrv-8jv5 Affected Exiftool vendored Versions
1 component(s)| 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?
Which Exiftool vendored versions are affected?
What version fixes GHSA-q95h-cqrv-8jv5?
Is exiftool_vendored affected?
What is the CVSS score of GHSA-q95h-cqrv-8jv5?
What CWE is associated with GHSA-q95h-cqrv-8jv5?
How can I check RubyGems dependencies for GHSA-q95h-cqrv-8jv5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}