CVE-2026-104016

Source
https://cve.org/CVERecord?id=CVE-2026-104016
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104016.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-104016
Aliases
  • GHSA-c2rq-mcfv-jw29
Downstream
Published
2026-10-27T23:52:20Z
Modified
2026-11-05T21:15:56Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jackson-dataformat-protobuf: signed integer overflow in string-length paths allows unbounded array allocation and OutOfMemoryError
Details

ProtobufParser parses length-prefixed protobuf string and bytes fields by checking (_inputPtr + len) <= _inputEnd and then, on the fast path, calling _finishShortText(len). Both use 32-bit signed integer arithmetic. When an attacker supplies a varint decoding to a length near Integer.MAX_VALUE, _inputPtr + len overflows to a negative value, the bounds check passes, and _finishShortText(len) reaches TextBuffer.expandCurrentSegment(len), which performs Arrays.copyOf with no cap and throws OutOfMemoryError: Requested array size exceeds VM limit.

The JVM refuses arrays larger than Integer.MAX_VALUE - 8 before consulting available heap, so -Xmx tuning does not mitigate the issue. StreamReadConstraints.maxStringLength and maxDocumentLength do not gate this path: a 33-byte payload is far below any document-length cap and the string-length check does not fire before the allocation. This was confirmed empirically against shipping artifacts with maxStringLength, maxDocumentLength and maxNestingDepth all configured.

A February 2026 hardening commit added the equivalent overflow guard to the packed-array-length and message-length paths but left the string-length call sites unguarded. No privileges or user interaction beyond the ability to submit data for parsing are required.

Database specific
{
    "cna_assigner":  "HeroDevs",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104016.json"
}
References

Affected packages

Git / github.com/fasterxml/jackson-dataformats-binary

Affected ranges

Type
GIT
Repo
https://github.com/fasterxml/jackson-dataformats-binary
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "2.6.0"
                },
                {
                    "fixed":  "2.18.12"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "2.19.0"
                },
                {
                    "fixed":  "2.21.8"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "2.22.0"
                },
                {
                    "fixed":  "2.22.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "3.0.0"
                },
                {
                    "fixed":  "3.1.8"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "3.2.0"
                },
                {
                    "fixed":  "3.2.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

jackson-dataformats-binary-2.*
jackson-dataformats-binary-2.10.0
jackson-dataformats-binary-2.10.0.pr1
jackson-dataformats-binary-2.10.0.pr2
jackson-dataformats-binary-2.10.0.pr3
jackson-dataformats-binary-2.11.0
jackson-dataformats-binary-2.11.0.rc1
jackson-dataformats-binary-2.12.0
jackson-dataformats-binary-2.12.0-rc1
jackson-dataformats-binary-2.12.0-rc2
jackson-dataformats-binary-2.12.1
jackson-dataformats-binary-2.13.0
jackson-dataformats-binary-2.13.0-rc1
jackson-dataformats-binary-2.13.0-rc2
jackson-dataformats-binary-2.14.0
jackson-dataformats-binary-2.14.0-rc1
jackson-dataformats-binary-2.14.0-rc2
jackson-dataformats-binary-2.14.0-rc3
jackson-dataformats-binary-2.14.1
jackson-dataformats-binary-2.15.0
jackson-dataformats-binary-2.15.0-rc1
jackson-dataformats-binary-2.15.0-rc2
jackson-dataformats-binary-2.15.0-rc3
jackson-dataformats-binary-2.16.0
jackson-dataformats-binary-2.16.0-rc1
jackson-dataformats-binary-2.17.0
jackson-dataformats-binary-2.17.0-rc1
jackson-dataformats-binary-2.18.0
jackson-dataformats-binary-2.18.0-rc1
jackson-dataformats-binary-2.18.1
jackson-dataformats-binary-2.18.10
jackson-dataformats-binary-2.18.11
jackson-dataformats-binary-2.18.2
jackson-dataformats-binary-2.18.3
jackson-dataformats-binary-2.18.4
jackson-dataformats-binary-2.18.5
jackson-dataformats-binary-2.18.6
jackson-dataformats-binary-2.18.7
jackson-dataformats-binary-2.18.8
jackson-dataformats-binary-2.18.9
jackson-dataformats-binary-2.19.0
jackson-dataformats-binary-2.20.0
jackson-dataformats-binary-2.20.0-rc1
jackson-dataformats-binary-2.21.0
jackson-dataformats-binary-2.21.1
jackson-dataformats-binary-2.21.2
jackson-dataformats-binary-2.21.3
jackson-dataformats-binary-2.21.4
jackson-dataformats-binary-2.21.5
jackson-dataformats-binary-2.21.6
jackson-dataformats-binary-2.21.7
jackson-dataformats-binary-2.22.0
jackson-dataformats-binary-2.22.1
jackson-dataformats-binary-2.22.2
jackson-dataformats-binary-2.22.3
jackson-dataformats-binary-2.8.0
jackson-dataformats-binary-2.8.0.rc1
jackson-dataformats-binary-2.8.0.rc2
jackson-dataformats-binary-2.8.1
jackson-dataformats-binary-2.8.2
jackson-dataformats-binary-2.8.3
jackson-dataformats-binary-2.8.4
jackson-dataformats-binary-2.9.0
jackson-dataformats-binary-2.9.0.pr3
jackson-dataformats-binary-2.9.0.pr4
jackson-dataformats-binary-2.9.1
jackson-dataformats-binary-2.9.2
jackson-dataformats-binary-2.9.3
jackson-dataformats-binary-2.9.4
jackson-dataformats-binary-2.9.5
jackson-dataformats-binary-2.9.6
jackson-dataformats-binary-3.*
jackson-dataformats-binary-3.0.0
jackson-dataformats-binary-3.0.1
jackson-dataformats-binary-3.1.0
jackson-dataformats-binary-3.1.0-rc1
jackson-dataformats-binary-3.1.1
jackson-dataformats-binary-3.1.2
jackson-dataformats-binary-3.1.3
jackson-dataformats-binary-3.1.4
jackson-dataformats-binary-3.1.5
jackson-dataformats-binary-3.1.6
jackson-dataformats-binary-3.1.7
jackson-dataformats-binary-3.2.0
jackson-dataformats-binary-3.2.1
jackson-dataformats-binary-3.2.2
jackson-dataformats-binary-3.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104016.json"