CVE-2021-38507
JSON

6.5medium

The Opportunistic Encryption feature of HTTP2 (RFC 8164) allows a connection to be transparently upgraded to TLS while retaining the visual…

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
0.83% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mozilla

Description

The Opportunistic Encryption feature of HTTP2 (RFC 8164) allows a connection to be transparently upgraded to TLS while retaining the visual properties of an HTTP connection, including being same-origin with unencrypted connections on port 80. However, if a second encrypted port on the same IP address (e.g. port 8443) did not opt-in to opportunistic encryption; a network attacker could forward a connection from the browser to port 443 to port 8443, causing the browser to treat the content of port 8443 as same-origin with HTTP. This was resolved by disabling the Opportunistic Encryption feature, which had low usage. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.

Affected

Product or packageVersionsReported by
Mozilla Firefoxfrom unspecified before 94, before 94.0CVE List, NVD
Mozilla Thunderbirdfrom unspecified before 91.3, before 91.3.0CVE List, NVD
Mozilla Firefox ESRfrom unspecified before 91.3CVE List
mozilla firefox_esrbefore 91.3.0NVD
debian debian_linux9.0, 10.0, 11.0NVD

All scores

NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

The Opportunistic Encryption feature of HTTP2 (RFC 8164) allows a connection to be transparently upgraded to TLS while retaining the visual properties of an HTTP connection, including being same-origin with unencrypted connections on port 80. However, if a second encrypted port on the same IP address (e.g. port 8443) did not opt-in to opportunistic encryption; a network attacker could forward a connection from the browser to port 443 to port 8443, causing the browser to treat the content of port 8443 as same-origin with HTTP. This was resolved by disabling the Opportunistic Encryption feature, which had low usage. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.

NVD (es)

La funcionalidad Opportunistic Encryption de HTTP2 (RFC 8164) permite que una conexión sea actualizada transparentemente a TLS mientras conserva las propiedades visuales de una conexión HTTP, incluyendo el mismo origen con conexiones no cifradas en el puerto 80. Sin embargo, si un segundo puerto cifrado en la misma dirección IP (por ejemplo, el puerto 8443) no optaba por el cifrado oportunista, un atacante de la red podía reenviar una conexión del navegador al puerto 443 al puerto 8443, causando que el navegador tratara el contenido del puerto 8443 como del mismo origen con HTTP. Esto fue resuelto deshabilitando la funcionalidad Opportunistic Encryption, que tenía un uso reducido. Esta vulnerabilidad afecta a Firefox versiones anteriores a 94, Thunderbird versiones anteriores a 91.3 y Firefox ESR versiones anteriores a 91.3

References

https://www.mozilla.org/security/advisories/mfsa2021-49/vendor-advisory
https://www.mozilla.org/security/advisories/mfsa2021-50/vendor-advisory
https://www.mozilla.org/security/advisories/mfsa2021-48/vendor-advisory
https://bugzilla.mozilla.org/show_bug.cgi?id=1730935issue-tracking, permissions-required, vendor-advisory
https://www.debian.org/security/2021/dsa-5026third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2021/12/msg00030.htmlmailing-list, third-party-advisory
https://www.debian.org/security/2022/dsa-5034third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2022/01/msg00001.htmlmailing-list, third-party-advisory
https://security.gentoo.org/glsa/202202-03third-party-advisory, vendor-advisory
https://security.gentoo.org/glsa/202208-14third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-38507 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-38507 changed 2026-06-17Public domain