RubyGems (Ruby)Worst: Critical5 advisories

cgi: known vulnerabilities

cgi has 5 reviewed security advisories in the GitHub Advisory Database — 1 critical, 2 high, 2 moderate. The most recent was published 2025-03-04. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the cgi versions running across your servers, containers and images, and ranks what to patch first.

How to fix cgi

Upgrade cgi to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update cgi to 0.4.2 (or gem install cgi -v 0.4.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

CGI has Denial of Service (DoS) potential in Cookie.parse Moderate 5.8 CWE-400 CWE-770 — Affected: from 0.4.0 up to 0.4.2. Fixed in 0.4.2. Published 2025-03-04. GHSA-gh9q-2xrm-x6qv · CVE-2025-27219
CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement Moderate 4.0 CWE-1333 — Affected: from 0.4.0 up to 0.4.2. Fixed in 0.4.2. Published 2025-03-04. GHSA-mhwm-jh88-3gjf · CVE-2025-27220
Cookie Prefix Spoofing in CGI::Cookie.parse High 7.5 CWE-565 — Affected: before 0.1.0.1. Fixed in 0.1.0.1. Published 2022-01-01. GHSA-4vf4-qmvg-mh7h · CVE-2021-41819

Find cgi across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.