Server side template injection In ruby3.3
Description
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
rpm rhel10 | 0:3.3.12-14.el10_2 | ||
rpm rhel10.0 | 0:3.3.12-11.el10_0.3 | ||
debian 12 | - | ||
debian 13 | - | ||
rpm rhel10 | 0:4.0.6-36.el10_2 | ||
rpm rhel9 | 0:3.3.12-8.module+el9.8.0+24568+2bbebe96 | ||
rpm rhel9.6 | 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1 | ||
debian 14 | - | ||
rubygems | 0.6.4.1, 0.5.15 | ||
rpm rhel8 | 0:3.3.12-8.module+el8.10.0+24567+c4e5368e |
Aliases
References