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
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-67986
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 12:01 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:CVE-2026-67986
Complete source record
{
"id": "678109529064d9e61561d553b87ddd0bbb666e3734fdae7c5a4df8c63a0b6799",
"url": "https://osv.dev/vulnerability/CVE-2026-67986",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "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:CVE-2026-67986",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-67986",
"aliases": [
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/amazing-print/amazing_print",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "dc890dfafdf07088ea901df53c19c2710e5c5234"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "dc890dfafdf07088ea901df53c19c2710e5c5234"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v2.0.0",
"2.0.0",
"v1.8.1",
"1.8.1",
"v1.8.0",
"1.8.0",
"v1.7.2",
"v1.7.1",
"v1.7.0",
"v1.6.0",
"v1.5.0",
"v1.4.0",
"v1.3.0",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-67986.json"
}
}
],
"modified": "2026-10-28T02:30:35.298657174Z",
"provider": "osv",
"references": [
"https://gist.github.com/Zykis1024/21b13ddabf1a7d9707fd573518cefa71",
"https://github.com/amazing-print/amazing_print/blob/dc890dfafdf07088ea901df53c19c2710e5c5234/lib/amazing_print/core_ext/awesome_method_array.rb#L71",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67986.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-67986",
"https://github.com/amazing-print/amazing_print"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67986.json"
}
},
"related_cves": [
{
"value": "CVE-2026-67986",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 502252,
"published_at": "2026-08-13T00:00:00+00:00"
}