Описание
Spring MVC applications using the functional web framework are vulnerable to stream corruption when using Server-Sent Events (SSE).
Spring Framework 7.0.0 - 7.0.8
Spring Framework 6.2.0 - 6.2.19
Spring Framework 6.1.0 - 6.1.28
Spring Framework 6.0.0 - 6.0.30
Spring Framework 5.3.0 - 5.3.49
A flaw was found in the Spring MVC functional web framework. This vulnerability allows for stream corruption when applications use Server-Sent Events (SSE), a technology for pushing real-time updates from a server to a client. This could lead to unreliable data delivery and impact the integrity of information presented to users.
Отчет
A flaw was found in the Spring Framework functional web framework's Server-Sent Events (SSE) implementation. When plain-text data that an attacker controls is sent through an SSE ServerResponse and contains a bare carriage return (\r), the text can break out of its data field and be interpreted by the browser as new SSE fields. This vulnerability affects applications using RouterFunction and ServerResponse.sse() to send streaming plain-text data. Applications using JSON-serialized events via HttpMessageConverter or annotated controllers with SseEmitter are not affected, as these implementations already escape carriage returns. Red Hat ships vulnerable versions of Spring Framework in JBoss Fuse 7 (Extended Lifecycle Support), Red Hat OpenShift Dev Spaces, Red Hat build of Apache Camel for Quarkus (Hawtio), and Subscription Services components.
Меры по смягчению последствий
There is no mitigation available for this issue. Apply updates as they become available from Red Hat product teams. As a temporary workaround, ensure that Server-Sent Events use structured formats like JSON instead of plain text for all user-controlled data.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat build of Apache Camel - HawtIO 4 | spring-webmvc | Affected | ||
| Red Hat Enterprise Linux 8 | pki-core:10.6/resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-deps:10.6/resteasy | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Fuse 7 | spring-webmvc | Out of support scope | ||
| Red Hat OpenShift Dev Spaces | devspaces/openvsx-rhel9 | Affected | ||
| Red Hat OpenShift Dev Spaces | devspaces/pluginregistry-rhel9 | Affected | ||
| Red Hat Single Sign-On 7 | spring-webmvc | Out of support scope |
Показывать по
Дополнительная информация
Статус:
EPSS
6.5 Medium
CVSS3
Связанные уязвимости
Spring MVC applications using the functional web framework are vulnerable to stream corruption when using Server-Sent Events (SSE). Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49
Spring MVC applications using the functional web framework are vulnerable to stream corruption when using Server-Sent Events (SSE). Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49
Spring MVC applications using the functional web framework are vulnera ...
Spring MVC applications using the functional web framework are vulnerable to stream corruption when using Server-Sent Events (SSE). Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49
EPSS
6.5 Medium
CVSS3