cve.bz

CVE-2024-34062 tqdm tqdm: Injection

4.8 mediumEPSS 0.4%Fix available

Medium (4.8) in tqdm tqdm. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in tqdm 4.66.3.

On this page
tqdm is an open source progress bar for Python and CLI. Any optional non-boolean CLI arguments (e.g. `--delim`, `--buf-size`, `--manpath`) are passed through python's `eval`, allowing arbitrary code execution. This issue is only locally exploitable and had been addressed in release version 4.66.3. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-06-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-34062 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-34062?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-34062?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-34062 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
tqdm>= 4.4.0, < 4.66.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g7vv-2v7x-gj9pPyPItqdm>=4.4.0 <4.66.34.66.3
PYSEC-2026-1976PyPItqdm>=4.4.0 <4.66.34.66.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12tqdmno fix listedDEBIAN-CVE-2024-34062
Debian13, 14tqdm4.66.4-1DEBIAN-CVE-2024-34062
UbuntuPro:22.04:LTStqdm4.57.0-2ubuntu0.1~esm2UBUNTU-CVE-2024-34062 USN-7216-1
UbuntuPro:24.04:LTStqdm4.66.2-2ubuntu0.1~esm1UBUNTU-CVE-2024-34062 USN-7216-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Public Cloud 15 SP4 and 4 morepython-tqdm4.66.4-150400.9.12.1SUSE-SU-2024:1872-1
openSUSELeap 15.5, Leap 15.6python-tqdm4.66.4-150400.9.12.1SUSE-SU-2024:1872-1
Alpinev3.20, v3.21, v3.22 and 2 morepy3-tqdm4.66.4-r0ALPINE-CVE-2024-34062
Azure Linux2python-tqdm4.63.1-3AZL-40307
Azure Linux3python-tqdm4.66.2-2AZL-40285

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw can only be triggered when python-tqdm is used directly via the command line with crafted arguments for non-boolean parameters such as `delim`, `buf-size`, and `manpath`.

The rust-srpm-macros package as shipped by Red Hat Enterprise Linux 8 and 9 is not vulnerable to this issue because it does not use the affected python-tqdm functionality.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rust-srpm-macrosNot affected
Red Hat Enterprise Linux 9rust-srpm-macrosNot affected
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-34062.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON