ruby-amazing-print — security advisory
amazing-print/amazing_print at commit dc890dfafdf07088ea901df53c19c2710e5c5234 contains a Ruby code injection condition in AwesomeMethodArray#grep. A specially named method containing Ruby interpolation syntax can be interpolated into a dynamically constructed eval string when grep is called with a block, resulting in Ruby code execution in the host process. Exploitation requires an application path that allows an attacker to influence dynamic method names.
- Products
- ruby-amazing-print
- Affected versions
- 2.0.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-67986
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:14 UTC · Revision 1
Source evidence
amazing-print/amazing_print at commit dc890dfafdf07088ea901df53c19c2710e5c5234 contains a Ruby code injection condition in AwesomeMethodArray#grep. A specially named method containing Ruby interpolation syntax can be interpolated into a dynamically constructed eval string when grep is called with a block, resulting in Ruby code execution in the host process. Exploitation requires an application path that allows an attacker to influence dynamic method names.
osv:UBUNTU-CVE-2026-67986
ruby-amazing-print
Fixed versions: Not specified
Complete source record
{
"id": "3b25da51072115a21c681ea07e1e4cd53a049f570c3d6d92c32ef314939b544e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-67986",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-67986",
"summary": "amazing-print/amazing_print at commit dc890dfafdf07088ea901df53c19c2710e5c5234 contains a Ruby code injection condition in AwesomeMethodArray#grep. A specially named method containing Ruby interpolation syntax can be interpolated into a dynamically constructed eval string when grep is called with a block, resulting in Ruby code execution in the host process. Exploitation requires an application path that allows an attacker to influence dynamic method names.",
"evidence": "osv:UBUNTU-CVE-2026-67986",
"products": [
{
"name": {
"value": "ruby-amazing-print",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.0-2",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-67986",
"aliases": [
"UBUNTU-CVE-2026-67986"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/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-amazing-print",
"purl": "pkg:deb/ubuntu/ruby-amazing-print?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.0.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67986.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-amazing-print",
"binary_version": "2.0.0-2"
}
]
}
}
],
"modified": "2026-10-17T13:00:39.753988528Z",
"provider": "osv",
"upstream": [
"CVE-2026-67986"
],
"references": [
"https://ubuntu.com/security/CVE-2026-67986",
"https://www.cve.org/CVERecord?id=CVE-2026-67986",
"https://gist.github.com/Zykis1024/21b13ddabf1a7d9707fd573518cefa71",
"https://github.com/amazing-print/amazing_print",
"https://github.com/amazing-print/amazing_print/blob/dc890dfafdf07088ea901df53c19c2710e5c5234/lib/amazing_print/core_ext/awesome_method_array.rb#L71"
]
},
"related_cves": [
{
"value": "CVE-2026-67986",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360765,
"published_at": "2026-08-13T14:17:00+00:00"
}