Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102834 Overview
CVE-2026-102834 is an integer overflow vulnerability [CWE-190] in JavaCV, a library that provides Java interfaces to OpenCV, FFmpeg, and other multimedia libraries. The flaw resides in IPCameraFrameGrabber, which doubles a 32-bit buffer capacity without checking for overflow or bounding the parsed Content-Length header value. A malicious MJPEG camera endpoint or tampered plaintext stream can return an oversized Content-Length, causing the frame-grabbing thread to enter a permanent CPU-spinning loop. Applications that consume MJPEG responses from untrusted sources are affected. The issue is fixed in JavaCV version 1.5.14.
Critical Impact
Remote attackers controlling an MJPEG stream source can trap the frame-grabbing thread in a permanent CPU-spinning loop, resulting in denial of service against applications consuming the stream.
Affected Products
- JavaCV versions prior to 1.5.14
- Applications using org.bytedeco.javacv.IPCameraFrameGrabber to consume MJPEG streams
- Any downstream software depending on vulnerable JavaCV releases
Discovery Timeline
- 2026-10-16 - CVE-2026-102834 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-102834
Vulnerability Analysis
The vulnerability resides in the MJPEG frame parsing logic of IPCameraFrameGrabber. When processing an HTTP response, the grabber reads the Content-Length header and uses it to size an internal buffer. The buffer-growth routine doubles a 32-bit integer capacity to accommodate the declared length without validating that the operation remains within positive 32-bit bounds. An attacker who controls the stream source can send a crafted Content-Length value that triggers integer overflow during the doubling calculation. The resulting wrapped value prevents the loop condition from ever being satisfied, causing the frame-grabbing thread to spin indefinitely while consuming CPU.
Root Cause
The root cause is a missing bounds check on the parsed Content-Length header combined with unchecked arithmetic growth of a 32-bit buffer capacity. Doubling an int value near Integer.MAX_VALUE produces a negative result, which breaks the termination condition of the grow-until-sufficient loop. There is no upper bound enforced on the declared frame size before entering the resize path.
Attack Vector
Exploitation requires the victim application to connect to an attacker-controlled MJPEG endpoint or to consume a plaintext stream that an on-path adversary can tamper with. The attacker returns an MJPEG response advertising an inflated Content-Length header. Once the vulnerable code path begins resizing its buffer, the thread enters the spin loop and the hosting application loses its video-processing worker. No authentication or user interaction beyond initiating the stream connection is required.
// Patch excerpt from IPCameraFrameGrabber.java
/** Upper bound on a single MJPEG frame's declared Content-Length, to reject bogus/hostile values. */
private static final int MAX_CONTENT_LENGTH = 64 * 1024 * 1024;
private final FrameConverter converter = new OpenCVFrameConverter.ToMat();
private final URL url;
private final int connectionTimeout;
Source: GitHub Commit cd19778. The fix introduces a 64 MiB ceiling on the accepted Content-Length, allowing the grabber to reject oversized or hostile declarations before the overflow-prone resize executes.
Detection Methods for CVE-2026-102834
Indicators of Compromise
- A Java thread executing IPCameraFrameGrabber logic sustaining 100% CPU utilization on a single core without producing frames.
- Outbound HTTP connections to MJPEG endpoints returning Content-Length headers near or exceeding Integer.MAX_VALUE.
- Application logs showing frame processing stalls shortly after a new camera stream is opened.
Detection Strategies
- Perform software composition analysis (SCA) on Java build artifacts and flag org.bytedeco:javacv versions earlier than 1.5.14.
- Inspect HTTP responses from MJPEG sources for implausibly large Content-Length values, particularly those greater than 64 MiB.
- Correlate sustained single-thread CPU saturation with recent connections initiated by processes linked to JavaCV.
Monitoring Recommendations
- Track per-thread CPU time for Java services that embed JavaCV and alert on threads that exceed baseline duration without yielding.
- Log the resolved endpoint and byte counts for each IPCameraFrameGrabber session to identify anomalous stream sources.
- Monitor outbound connections from media-processing workloads and restrict them to known camera subnets.
How to Mitigate CVE-2026-102834
Immediate Actions Required
- Upgrade JavaCV to version 1.5.14 or later across all build pipelines and deployed artifacts.
- Audit application code paths that instantiate IPCameraFrameGrabber and inventory the MJPEG sources they consume.
- Restrict outbound connectivity from media-processing hosts to a vetted list of camera endpoints.
Patch Information
The fix is included in JavaCV Release v1.5.14 and introduces a MAX_CONTENT_LENGTH constant of 64 MiB that bounds the accepted header value. Technical details are documented in GitHub Security Advisory GHSA-rxjv-24xq-76wc and the corresponding patch commit.
Workarounds
- Terminate MJPEG sessions with TLS and validate server identity to prevent on-path tampering of plaintext streams.
- Place a reverse proxy or stream validator in front of camera endpoints to strip or cap Content-Length headers that exceed expected frame sizes.
- Run frame-grabbing workers in isolated processes with CPU time limits so a spinning thread cannot starve the host.
# Upgrade JavaCV dependency to the patched release using Maven
mvn versions:use-dep-version -Dincludes=org.bytedeco:javacv -DdepVersion=1.5.14 -DforceVersion=true
# Verify the resolved version in the dependency tree
mvn dependency:tree -Dincludes=org.bytedeco:javacv
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

