Severity
Details
- CVSS score
- 6.9
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CWE ID
Overview
About vulnerability
Impact
Snappy.uncompressCharArray, uncompressShortArray, uncompressIntArray, uncompressLongArray, uncompressFloatArray and uncompressDoubleArray sized the result array by dividing the declared uncompressed byte length by the element size, but native code wrote the full byte length. If the declared length is not a multiple of the element size, up to 7 bytes are written past the end of the Java array, corrupting the heap.
Patches
Fixed in 1.1.10.9 ([#739](https://github.com/xerial/snappy-java/pull/739)). These methods now reject uncompressed lengths that are not a multiple of the element size with SnappyIOException.
Workarounds
Check that Snappy.uncompressedLength(input) is a multiple of the element size before calling these methods.
Details
- Affected product:
- Apache CXF , Apache Hadoop , Apache Hive , Apache Kafka , Apache Log4j , Apache Solr , Apache Spark , Elasticsearch , Hazelcast , Jackson , React , Spring , accumulo , activemq , agepredictor , alluxio , amazon-kinesis-client , amazon-kinesis-producer , apicurio-registry , arrow , artemis , astyanax , avro , aws-glue-schema-registry , bookkeeper , camel , canal , chronicle-engine , chronicle-map , crunch , curator , debezium , drill , dropwizard-metrics-hadoop-metrics2-reporter , druid , flink , flume , fuse-extra , glusterfs-hadoop , gora , hbase , ignite , incubator-retired-htrace , incubator-retired-slider , infinispan , java-lang , kite , logging-flume , logging-flume-irc , orc , org.apache.cassandra:cassandra-all , org.apache.parquet:parquet-cli , org.kitesdk:kite-data-hbase , org.tachyonproject:tachyon-client , parquet-java , pig , pravega , pulsar , rabbitmq-stream-java-client , schema-repo , servicemix-bundles , smallrye-mutiny-vertx-bindings , smallrye-reactive-messaging , snappy-java , tachyon , tika , tinkerpop , trino , twill , vertx-kafka-client , zipkin-reporter-java , zookeeper
- Affected packages:
- snappy-java @ 1.1.8.4 (+10529 more)