CVE-2022-33127

rubygem-diffy: remote code execution from user controlled diff file paths

Published Jun 22, 2022 CVSS 3.1 · 9.8 Critical EPSS 1.8% KEV · Not listed
Description
The function that calls the diff tool in Diffy 3.4.1 does not properly handle double quotes in a filename when run in a windows environment. This allows attackers to execute arbitrary commands via a crafted string.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-5947 The function that calls the diff tool in Diffy 3.4.1 does not properly handle double quotes in a filename when run in a windows environment. This allows attackers to execute arbitrary commands via a crafted string.
Github GHSA Github GHSA GHSA-5ww9-9qp2-x524 Improper handling of double quotes in file name in Diffy in Windows environment
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00508}

epss

{'score': 0.00512}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 8:01 AM
Reserved
Jun 13, 2022, 12:00 AM
Status
Modified
Published
Jun 23, 2022, 5:15 PM
Modified
Jun 17, 2026, 4:48 AM
Severity
Low
Public date
Jun 23, 2022, 12:00 AM