Critical
ruby-diffy — security advisory
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.
- Products
- ruby-diffy
- Affected versions
- 3.0.6-1, 3.1.0-1, 3.2.1-1, 3.3.0-1, 3.4.2-1, 3.4.4-1
- Fixed versions
- Not specified
- CVEs
- CVE-2022-33127
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:56 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-33127
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
ruby-diffy
Fixed versions: Not specified
Complete source record
{
"id": "f15bf909bbbe038e6382cd91e2a86e2adbebb18f0ccbe9095872ab571d20e2f6",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-33127",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-33127",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-33127",
"products": [
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.6-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.1.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "3.3.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.3.0-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.2-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.2-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.4-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "ruby-diffy",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.2-1",
"evidence": "/affected/7/versions"
},
{
"value": "3.4.4-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2022-33127",
"aliases": [
"UBUNTU-CVE-2022-33127"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"3.0.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.0.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3.2.1-1",
"3.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.3.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.3.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.4.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.4.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.4.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.4.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.4.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.4.4-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-diffy",
"purl": "pkg:deb/ubuntu/ruby-diffy?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.4.2-1",
"3.4.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-diffy",
"binary_version": "3.4.4-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:17.319673558Z",
"provider": "osv",
"upstream": [
"CVE-2022-33127"
],
"references": [
"https://ubuntu.com/security/CVE-2022-33127",
"https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593",
"https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1",
"https://www.cve.org/CVERecord?id=CVE-2022-33127"
]
},
"related_cves": [
{
"value": "CVE-2022-33127",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355142,
"published_at": "2022-06-23T17:15:00+00:00"
}