Vulnérabilité dans net-imap (CVE-2026-47241)
Résumé
Vulnérabilité dans net-imap (CVE-2026-47241). Risque d'opérations non autorisées ou de divulgation. Exploitable via criteria. Atténuation : mise à jour vers 0.5.15 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed.
Details
Net::IMAP::RawData was hardened in v0.6.4, v0.5.14, and v0.4.24 to reject string arguments that would smuggle an invalid literal-continuation marker onto the wire (CVE-2026-42257, GHSA-hm49-wcqc-g2xg). But the trailing-marker check uses an incorrect regex which does not match {0} or {0+}, so an attacker-controlled seach criteria or fetch attr string ending in {0} or {0+} passes validation and is sent verbatim. Since these arguments are sent as the last argument in the command, they will be followed by CRLF. Although the CRLF was intended to end the command, the server will interpret it as part of a literal prefix. This consumes the next command the client puts on the socket as additional arguments to the current command.
This affects the following command's arguments:
criteriafor#searchand#uid_searchsearch_keysfor#sort,#thread,#uid_sort, and#uid_threadattrfor#fetchand#uid_fetch
The command which contained…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-47241 a été découverte dans net-imap.
Des attaquants peuvent cibler un point d'entrée spécifique comme criteria à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour net-imap vers 0.5.15 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « net-imap CVE-2026-47241 » sur le site de l'éditeur.
CVE-2026-47241 (net-imap) — CWE-162
Surface d'attaque : criteria / attr / search_keys / BAD
Correctif : 0.5.15 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-162) affecte net-imap. Les attaquants atteignent le code vulnérable via criteria.
Consultez l'avis de l'éditeur pour les versions affectées de net-imap. Surface d'attaque : criteria / attr / search_keys / BAD.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.5.15.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'net-imap' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
net-imapを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade net-imap to 0.5.15ステージング環境で 0.5.15 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- BellSoft Alpaquita BELL-CVE-2026-47241 ruby-net-imap Corrigé dans: 0.5.15-r0
- Debian DEBIAN-CVE-2026-47241 ruby3.1
- Ubuntu UBUNTU-CVE-2026-47241 jruby
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web cve.org