CVE-2022-27311
Ruby vulnerability analysis and mitigation

Overview

CVE-2022-27311 affects Gibbon v3.4.4 and below, allowing attackers to execute a Server-Side Request Forgery (SSRF) attack via a crafted URL. The vulnerability was discovered in February 2022 and patched in version 3.4.4. The issue specifically affects applications that accept unvalidated user-provided API keys, such as through form inputs (GitHub PR).

Technical details

The vulnerability stems from insufficient validation of API keys in the domain concatenation process. An attacker could inject malicious domains by manipulating the API key format, potentially leading to SSRF. The issue was initially addressed by validating the URL post-creation, but this was found insufficient as it used the include? method which could still allow injection of arbitrary hostnames containing 'api.mailchimp.com' as a subdomain (GitHub Commit, GitHub Commit).

Impact

The vulnerability could allow attackers to perform Server-Side Request Forgery (SSRF) attacks by manipulating the API endpoint through crafted API keys. However, this only affects applications that accept user-provided API keys through interfaces like web forms. Applications using hardcoded API keys are not vulnerable (GitHub PR).

Mitigation and workarounds

The issue was fully patched in Gibbon version 3.4.4 by implementing stricter validation of API keys, removing non-alphanumeric characters from the data center portion of the key before domain construction. Users should upgrade to version 3.4.4 or later to receive the fix (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management