CVE-2026-47241: CWE-162: Improper Neutralization of Trailing Special Elements in ruby net-imap
A vulnerability in Ruby's net-imap library prior to versions 0.6.5 and 0.5.15 allows improper handling of certain raw string arguments in IMAP commands. This improper neutralization of trailing special elements can cause commands to be absorbed as continuations of previous commands, leading to command failures and blocking behavior until the connection is closed. The issue is fixed in versions 0.6.5 and 0.5.15.
AI Analysis
Technical Summary
The net-imap library in Ruby implements IMAP client functionality. Versions before 0.6.5 and 0.5.15 accept raw string arguments in several IMAP commands that are only validated against CRLF injection but otherwise sent verbatim. If these strings come from user-controlled input, an attacker can cause the next command to be treated as a continuation of the first, causing the first command to fail and block until another command is sent from a different thread. This blocking command will not return until the connection closes. This vulnerability is addressed in versions 0.6.5 and 0.5.15.
Potential Impact
An attacker controlling input to vulnerable net-imap commands can cause command failures and induce blocking behavior in the IMAP client connection. This can disrupt normal IMAP command processing and potentially cause denial of service conditions in client applications using affected versions. The CVSS score of 2.1 indicates low severity with limited impact and attack complexity.
Mitigation Recommendations
This vulnerability is fixed in net-imap versions 0.6.5 and 0.5.15. Users should upgrade to these or later versions to remediate the issue. No other mitigation or temporary workaround is indicated.
CVE-2026-47241: CWE-162: Improper Neutralization of Trailing Special Elements in ruby net-imap
Description
A vulnerability in Ruby's net-imap library prior to versions 0.6.5 and 0.5.15 allows improper handling of certain raw string arguments in IMAP commands. This improper neutralization of trailing special elements can cause commands to be absorbed as continuations of previous commands, leading to command failures and blocking behavior until the connection is closed. The issue is fixed in versions 0.6.5 and 0.5.15.
CVSS v4.0
Score 2.1low
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The net-imap library in Ruby implements IMAP client functionality. Versions before 0.6.5 and 0.5.15 accept raw string arguments in several IMAP commands that are only validated against CRLF injection but otherwise sent verbatim. If these strings come from user-controlled input, an attacker can cause the next command to be treated as a continuation of the first, causing the first command to fail and block until another command is sent from a different thread. This blocking command will not return until the connection closes. This vulnerability is addressed in versions 0.6.5 and 0.5.15.
Potential Impact
An attacker controlling input to vulnerable net-imap commands can cause command failures and induce blocking behavior in the IMAP client connection. This can disrupt normal IMAP command processing and potentially cause denial of service conditions in client applications using affected versions. The CVSS score of 2.1 indicates low severity with limited impact and attack complexity.
Mitigation Recommendations
This vulnerability is fixed in net-imap versions 0.6.5 and 0.5.15. Users should upgrade to these or later versions to remediate the issue. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T22:54:18.272Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39a0f5eed863c81e6b01e1
Added to database: 06/22/2026, 20:54:13 UTC
Last enriched: 06/22/2026, 21:10:04 UTC
Last updated: 06/23/2026, 04:05:25 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.