Description
ZeroBrew version 0.3.1 and prior contains a missing integrity verification vulnerability in the Ruby compatibility shim that allows network attackers to execute arbitrary code by substituting malicious content at formula resource or URL-based patch URLs without checksum validation. Attackers can intercept or replace downloads for secondary resource and patch paths in shim.rb, injecting attacker-controlled build steps or source tree modifications that execute during source builds via 'zb install --build-from-source' without any integrity warning.
Published: 2026-08-14
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ZeroBrew versions 0.3.1 and earlier lack integrity verification in the Ruby compatibility shim. This flaw allows attackers who can intercept or substitute formula or patch URLs to inject malicious build steps or source modifications that run during a source build, leading to arbitrary code execution without any warning. The vulnerability is a classic example of a checksum missing (CWE‑494) flaw that removes a fundamental trust boundary between the package installer and the local system.

Affected Systems

The affected vendor is Lucas Gelfond’s ZeroBrew. All iterations up to and including version 0.3.1 are impacted because they do not validate checksums for resources fetched via shim.rb. No specific operating system or platform is mentioned; the flaw exists in the Ruby script that is executed during the install process, so any environment where ZeroBrew can be run with network access to external formulae is at risk.

Risk and Exploitability

The CVSS score of 7.5 indicates high impact and a medium-to-high likelihood of exploitation. Because EPSS information is not available, the precise market exploitation probability is unknown, but the flaw is reachable by network attackers capable of controlling URL responses. Since the vulnerability is not listed in the CISA KEV catalog, no large‑scale exploits have been documented yet, but the lack of checksum verification makes it an attractive vector for targeted attacks or supply‑chain compromises. The attack path requires that the attacker can influence the URL providing the formula or patch; once the malicious content is served, the 'zb install --build-from-source' command will execute the injected code on the victim’s machine.

Generated by OpenCVE AI on August 14, 2026 at 16:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest ZeroBrew release that includes checksum verification for all resources; if an update is not yet available, avoid installing from untrusted or network‑provided URLs until a fix is released.
  • If updating is impossible, manually verify the authenticity of formula and patch URLs using a trusted checksum or git commit hash before running 'zb install'.
  • Implement network filtering or intrusion detection to block unexpected responses to ZeroBrew's shim.rb requests, mitigating the possibility of a man‑in‑the‑middle substitution.

Generated by OpenCVE AI on August 14, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description ZeroBrew version 0.3.1 and prior contains a missing integrity verification vulnerability in the Ruby compatibility shim that allows network attackers to execute arbitrary code by substituting malicious content at formula resource or URL-based patch URLs without checksum validation. Attackers can intercept or replace downloads for secondary resource and patch paths in shim.rb, injecting attacker-controlled build steps or source tree modifications that execute during source builds via 'zb install --build-from-source' without any integrity warning.
Title ZeroBrew version 0.3.1 and prior Missing Checksum Verification RCE via shim.rb
Weaknesses CWE-494
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T15:32:29.878Z

Reserved: 2026-06-11T16:07:12.999Z

Link: CVE-2026-53970

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-14T16:16:57.073

Modified: 2026-08-14T16:16:57.073

Link: CVE-2026-53970

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T16:30:05Z

Weaknesses
  • CWE-494

    Download of Code Without Integrity Check