BreachSpiderVerified, not vibes

CVE-2024-34408 in Tencent and 1 more product

Medium 5.3

Tencent libpag through 4.3.51 has an integer overflow in DecodeStream::checkEndOfFile() in codec/utils/DecodeStream.cpp via a crafted PAG (Portable Animated Graphics) file.

Affects 2 products from 1 vendor. Facts below cite their sources.

CVSS 3.15.3
EPSS0.3%
EPSS percentile11th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Tencent Tencent 5.8.2.5300
Tencent Libpag ≤ 4.3.51

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Tencent libpag through 4.3.51 has an integer overflow in DecodeStream::checkEndOfFile() in codec/utils/DecodeStream.cpp via a crafted PAG (Portable Animated Graphics) file.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-34408
BreachSpider IDBS-2024-GLOBAL-049710-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Published2024-05-03
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-122: Heap-Based Buffer Overflow

Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-122

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Tencent libpag through version 4.3.51 contains an integer overflow vulnerability in the DecodeStream::checkEndOfFile() function, which can be exploited via a crafted PAG file.

An attacker can craft a malicious PAG file that, when processed by the vulnerable version of libpag, triggers an integer overflow in the DecodeStream::checkEndOfFile() function. This could potentially lead to memory corruption, allowing for arbitrary code execution or denial of service.

Questions

What is CVE-2024-34408?

Tencent libpag through version 4.3.51 contains an integer overflow vulnerability in the DecodeStream::checkEndOfFile() function, which can be exploited via a crafted PAG file.

What is the CVSS score for CVE-2024-34408?

CVE-2024-34408 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L. EPSS: 0.3%.

Is CVE-2024-34408 actively exploited?

No confirmed active exploitation of CVE-2024-34408 as of 2026-09-25.

How do I remediate CVE-2024-34408?

Priority: MEDIUM.

What systems are affected by CVE-2024-34408?

CVE-2024-34408 affects Tencent Tencent, Libpag.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Tencent","product":"Tencent","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.