<Vulnerability name="CVE-2026-104016">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-10-27T23:52:20</PublicDate>
    <Bugzilla id="2562516" url="https://bugzilla.redhat.com/show_bug.cgi?id=2562516" xml:lang="en:us">
com.fasterxml.jackson.dataformat/jackson-dataformat-protobuf: jackson-dataformat-protobuf: Denial of Service via integer overflow during field parsing
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-190</CWE>
    <Details xml:lang="en:us" source="Mitre">
ProtobufParser parses length-prefixed protobuf string and bytes fields by checking (_inputPtr + len) &lt;= _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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in jackson-dataformat-protobuf. This vulnerability allows a remote attacker to cause a Denial of Service (DoS) by sending specially crafted Protocol Buffers data. Due to an integer overflow during bounds checking for length-prefixed string and byte fields, the parser bypasses validation and attempts an oversized memory allocation, crashing the application.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as having an Important impact because an unauthenticated remote attacker can crash the host Java virtual machine, causing a complete denial of service without requiring user interaction or special permissions. Red Hat integration services and middleware that consume external Protocol Buffers streams are directly exposed, as even minimal payloads can trigger unbounded internal buffer allocations. Standard parser restrictions and resource caps fail to intercept this condition, which elevates the risk above Moderate whenever endpoints accept untrusted binary input.
    </Statement>
    <AffectedRelease cpe="cpe:/a:redhat:apache_camel_quarkus:3.33::el6">
        <ProductName>Red Hat Build of Apache Camel 3.33.4.SP1</ProductName>
        <ReleaseDate>2026-10-27T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:91304">RHSA-2026:91304</Advisory>
        <Package name="com.fasterxml.jackson.dataformat/jackson-dataformat-protobuf">com.fasterxml.jackson.dataformat/jackson-dataformat-protobuf:2.21.8.redhat-00001</Package>
    </AffectedRelease>
    <PackageState cpe="cpe:/a:redhat:camel_spring_boot:4">
        <ProductName>Red Hat build of Apache Camel for Spring Boot 4</ProductName>
        <FixState>Affected</FixState>
        <PackageName>jackson-dataformat-protobuf</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:jboss_fuse:7">
        <ProductName>Red Hat Fuse 7</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>jackson-dataformat-protobuf</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-104016
https://nvd.nist.gov/vuln/detail/CVE-2026-104016
https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-c2rq-mcfv-jw29
    </References>
</Vulnerability>