GHSA-crqf-q9fp-hwjw

Suggest an improvement
Source
https://github.com/advisories/GHSA-crqf-q9fp-hwjw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/08/GHSA-crqf-q9fp-hwjw/GHSA-crqf-q9fp-hwjw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-crqf-q9fp-hwjw
Aliases
Published
2023-08-24T15:31:10Z
Modified
2024-11-05T18:06:43.452610Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Spring-Kafka has Java Deserialization vulnerability When Improperly Configured
Details

In Spring for Apache Kafka 3.0.9 and earlier and versions 2.9.10 and earlier, a possible deserialization attack vector existed, but only if unusual configuration was applied. An attacker would have to construct a malicious serialized object in one of the deserialization exception record headers.

Specifically, an application is vulnerable when all of the following are true:

  • The user does not configure an ErrorHandlingDeserializer for the key and/or value of the record
  • The user explicitly sets container properties checkDeserExWhenKeyNull and/or checkDeserExWhenValueNull container properties to true.
  • The user allows untrusted sources to publish to a Kafka topic

By default, these properties are false, and the container only attempts to deserialize the headers if an ErrorHandlingDeserializer is configured. The ErrorHandlingDeserializer prevents the vulnerability by removing any such malicious headers before processing the record.

Database specific
{
    "nvd_published_at": "2023-08-24T13:15:07Z",
    "cwe_ids": [
        "CWE-502"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-24T22:28:48Z"
}
References

Affected packages

Maven / org.springframework.kafka:spring-kafka

Package

Name
org.springframework.kafka:spring-kafka
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.kafka/spring-kafka

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.8.1
Fixed
2.9.11

Affected versions

2.*

2.8.1
2.8.2
2.8.3
2.8.4
2.8.5
2.8.6
2.8.7
2.8.8
2.8.9
2.8.10
2.8.11
2.9.0
2.9.1
2.9.2
2.9.3
2.9.4
2.9.5
2.9.6
2.9.7
2.9.8
2.9.9
2.9.10

Maven / org.springframework.kafka:spring-kafka

Package

Name
org.springframework.kafka:spring-kafka
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.kafka/spring-kafka

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.0.10

Affected versions

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.0.7
3.0.8
3.0.9