<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 15:47:22 +0000</lastBuildDate>
    <item>
      <title>GHSA-qcwq-55hx-v3vh — snappy-java's unchecked chunk length leads to DoS</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-qcwq-55hx-v3vh</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Maven: org.xerial.snappy:snappy-java&lt;/p&gt;
&lt;p&gt;## Summary
Due to use of an unchecked chunk length, an unrecoverable fatal error can occur.
## Impact
Denial of Service
## Description
The code in the function [hasNextChunk](https://github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/SnappyInputStream.java#L388) in the file [SnappyInputStream.java](https://github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/SnappyInputStream.java) checks if a given stream has more chunks to read. It does that by attempting to read 4 bytes. If it wasn’t possible to read the 4 bytes, the function returns false. Otherwise, if 4 bytes were available, the code treats them as the length of the next chunk.&lt;/p&gt;
&lt;p&gt;```java
        int readBytes = readNext(header, 0, 4);
        if (readBytes &amp;lt; 4) {
            return false;
        }&lt;/p&gt;
&lt;p&gt;int chunkSize = SnappyOutputStream.readInt(header, 0);
        if (chunkSize == SnappyCodec.MAGIC_HEADER_HEAD) {
            .........
        }&lt;/p&gt;
&lt;p&gt;// extend the compressed data buffer size
        if (compressed == null || chunkSize &amp;gt; compressed.length) {
            compressed = new byte[chunkSize];
        }&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;In the case that the “compressed” variable is null, a byte array is allocated with the size given by the input data. Since the code doesn’t test the legality of the “chunkSize” variable, it is possible to pass a negative number (such as 0xFFFFFFFF which is -1), which will cause the code to raise a “java.lang.NegativeArr…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Maven: org.xerial.snappy:snappy-java&lt;/p&gt;
&lt;p&gt;## Summary
Due to use of an unchecked chunk length, an unrecoverable fatal error can occur.
## Impact
Denial of Service
## Description
The code in the function [hasNextChunk](https://github.com/xerial/snappy-java/blob/05c39b2ca9b5b7b39611529cc302d3d796329611/src/main/java/org/xerial/snappy/SnappyInputStream.java#L388) in the file [SnappyInputStream.java](https://github.com/xerial/snappy-java/blob/master/src/main/java/org/xerial/snappy/SnappyInputStream.java) checks if a given stream has more chunks to read. It does that by attempting to read 4 bytes. If it wasn’t possible to read the 4 bytes, the function returns false. Otherwise, if 4 bytes were available, the code treats them as the length of the next chunk.&lt;/p&gt;
&lt;p&gt;```java
        int readBytes = readNext(header, 0, 4);
        if (readBytes &amp;lt; 4) {
            return false;
        }&lt;/p&gt;
&lt;p&gt;int chunkSize = SnappyOutputStream.readInt(header, 0);
        if (chunkSize == SnappyCodec.MAGIC_HEADER_HEAD) {
            .........
        }&lt;/p&gt;
&lt;p&gt;// extend the compressed data buffer size
        if (compressed == null || chunkSize &amp;gt; compressed.length) {
            compressed = new byte[chunkSize];
        }&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;In the case that the “compressed” variable is null, a byte array is allocated with the size given by the input data. Since the code doesn’t test the legality of the “chunkSize” variable, it is possible to pass a negative number (such as 0xFFFFFFFF which is -1), which will cause the code to raise a “java.lang.NegativeArr…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-qcwq-55hx-v3vh</guid>
    </item>
  </channel>
</rss>
