Headline
CVE-2023-3635: Fix a bug where xlen larger than 0x7fff was rejected (#1280) · square/okio@81bce1a
GzipSource does not handle an exception that might be raised when parsing a malformed gzip buffer. This may lead to denial of service of the Okio client when handling a crafted GZIP archive, by using the GzipSource class.
Expand Up @@ -23,14 +23,28 @@ import org.junit.Test class GzipKotlinTest { @Test fun sink() { val data = Buffer() val gzip = (data as Sink).gzip() gzip.buffer().writeUtf8(“Hi!”).close() (data as Sink).gzip().buffer().use { gzip -> gzip.writeUtf8(“Hi!”) } assertEquals("1f8b0800000000000000f3c8540400dac59e7903000000", data.readByteString().hex()) }
@Test fun source() { val buffer = Buffer().write("1f8b0800000000000000f3c8540400dac59e7903000000".decodeHex()) val gzip = (buffer as Source).gzip() assertEquals("Hi!", gzip.buffer().readUtf8()) (buffer as Source).gzip().buffer().use { gzip -> assertEquals("Hi!", gzip.readUtf8()) } }
@Test fun extraLongXlen() { val xlen = 0xffff val buffer = Buffer() .write("1f8b0804000000000000".decodeHex()) .writeShort(xlen) .write(ByteArray(xlen)) .write("f3c8540400dac59e7903000000".decodeHex()) (buffer as Source).gzip().buffer().use { gzip -> assertEquals("Hi!", gzip.readUtf8()) } } }
Related news
Red Hat Security Advisory 2024-1353-03 - An update is now available for Red Hat Process Automation Manager. Issues addressed include code execution, denial of service, and deserialization vulnerabilities.
Vulnerability in the Sun ZFS Storage Appliance product of Oracle Systems (component: Core). The supported version that is affected is 8.8.60. Difficult to exploit vulnerability allows unauthenticated attacker with network access via HTTP to compromise Sun ZFS Storage Appliance. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of Sun ZFS Storage Appliance. CVSS 3.1 Base Score 5.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
Red Hat Security Advisory 2023-5165-01 - Red Hat AMQ Streams, based on the Apache Kafka project, offers a distributed backbone that allows microservices and other applications to share data with extremely high throughput and extremely low latency. Issues addressed include code execution, denial of service, deserialization, and integer overflow vulnerabilities.
Red Hat AMQ Streams 2.5.0 is now available from the Red Hat Customer Portal. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original. Related CVEs: * CVE-2021-37136: A flaw was found in Netty's netty-codec due to size restrictions for decompressed data in the Bzip2Decoder. By sending a specially-crafted input, a remote attacker could cause a denial of service. * CVE-2021-37137: A flaw was found in the Netty's netty-codec due to unrestricted chunk lengths in the SnappyFrameDecoder. By sending a speciall...
GzipSource does not handle an exception that might be raised when parsing a malformed gzip buffer. This may lead to denial of service of the Okio client when handling a crafted GZIP archive, by using the GzipSource class.