CVE-2026-104017: Unbounded byte[] allocation from Protobuf bytes length prefix in jackson-dataformat-protobuf

Published Dec 1, 2026
·
Updated

In jackson-dataformat-protobuf, ProtobufParser.finishBytes() allocates a byte[] from the attacker-controlled length prefix of a length-delimited bytes field before reading the body, without checking the length against the remaining input or the enclosing message. A message of about 6 bytes can force an allocation of about 2 GB, causing an OutOfMemoryError that escapes the parser and crashes the request thread (denial of service). This affects com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf 2.8.0 through 2.18.11, 2.19.0 through 2.21.7 and 2.22.0 through 2.22.3, and tools.jackson.dataformat:jackson-dataformat-protobuf 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3. It is fixed in 2.18.12, 2.21.8, 2.22.4, 3.1.8 and 3.2.4.

Affected Software

2 affected components
maven/com.fasterxml.jackson.dataformat/jackson-dataformat-protobuf>=2.8.0<=2.18.11, >=2.19.0<=2.21.7, >=2.22.0<=2.22.3
maven/tools.jackson.dataformat/jackson-dataformat-protobuf>=3.0.0<=3.1.7, >=3.2.0<=3.2.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf to a version that resolves this vulnerability.

    Fixed in 2.18.12
  2. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf to a version that resolves this vulnerability.

    Fixed in 2.21.8
  3. Upgrade

    Upgrade com.fasterxml.jackson.dataformat:jackson-dataformat-protobuf to a version that resolves this vulnerability.

    Fixed in 2.22.4
  4. Upgrade

    Upgrade tools.jackson.dataformat:jackson-dataformat-protobuf to a version that resolves this vulnerability.

    Fixed in 3.1.8
  5. Upgrade

    Upgrade tools.jackson.dataformat:jackson-dataformat-protobuf to a version that resolves this vulnerability.

    Fixed in 3.2.4

Event History

Dec 1, 2026
CVE Published
via MITRE·03:26 PM
Data Sourced
via MITRE·03:26 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

Applications using the affected jackson-dataformat-protobuf artifact are exposed when they parse attacker-controlled Protobuf input containing length-delimited bytes fields. The affected ranges include com.fasterxml.jackson.dataformat releases 2.8.0 through 2.18.11, 2.19.0 through 2.21.7, and 2.22.0 through 2.22.3, plus tools.jackson.dataformat releases 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3.

2

What does an attacker need to exploit this?

An attacker only needs to provide a crafted Protobuf message to a reachable parser; no privileges or user interaction are required. A message of roughly 6 bytes can declare a bytes-field length that triggers an allocation of about 2 GB before the field body is read.

3

What should be done if the affected dependency is in use?

Upgrade to a fixed release: 2.18.12, 2.21.8, or 2.22.4 for com.fasterxml.jackson.dataformat artifacts, or 3.1.8 or 3.2.4 for tools.jackson.dataformat artifacts. The provided data does not identify a configuration workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203