Every CVE Search/ Get API key

CVE-2024-7868

Uninitialized variable in Xpdf 4.05 due to invalid JPEG header

2.1 LowFix available

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

0.40%Up 0.4 points since Aug 16, 2024
90%50%10%1%

What each source reports

CVE List Score used 2.1

Uninitialized variable in Xpdf 4.05 due to invalid JPEG header

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
CVE-2024-7868
CVSS 4.0
2.1 LowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-457
Updated
2026-11-02
EUVDEUVD-2024-48719 2.1

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
EUVD-2024-48719
CVSS 4.0
2.1 LowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-x6qm-4c7w-8wm7 2.1

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an...

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
GHSA-x6qm-4c7w-8wm7
CVSS 4.0
2.1 LowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Weakness
CWE-457, CWE-908
Updated
2026-11-02
NVD 2.1

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
CVE-2024-7868
CVSS 4.0
2.1 LowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Weakness
CWE-457, CWE-908
Updated
2026-11-02
OSVAZL-47857 8.2

CVE-2024-7868 affecting package cppcheck 2.7-2

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
AZL-47857
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02
OSVAZL-47871 8.2

CVE-2024-7868 affecting package cppcheck for versions less than 2.18.3-1

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
AZL-47871
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2024-7868 2.1

In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.

Record
UBUNTU-CVE-2024-7868
CVSS 4.0
2.1 LowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cppcheck
Azure Linux:2
through 2.7-2 None known
cppcheck
Azure Linux:3
before 2.18.3-1
2.18.3-1
ipe
Ubuntu:16.04:LTS
All versions, plus listed versions
7.1.4-2.17.1.8-17.1.10-17.1.10-1.1
None known
xpdf
Ubuntu:16.04:LTS
All versions, plus listed versions
3.03-17ubuntu23.03-17ubuntu33.03-17ubuntu53.03-183.04-13.04-1build13.04-1ubuntu13.04-1ubuntu1.1
None known
ipe
Ubuntu:18.04:LTS
All versions, plus listed versions
7.2.7-27.2.7-3
None known
xpdf
Ubuntu:18.04:LTS
All versions, plus listed versions
3.04-4build13.04-53.04-5ubuntu23.04-6ubuntu13.04-7
None known
ipe
Ubuntu:20.04:LTS
All versions, plus listed versions
7.2.9-17.2.13-27.2.13-2build1
None known
ipe
Ubuntu:22.04:LTS
All versions, plus listed versions
7.2.23+dfsg1-27.2.24+dfsg1-17.2.24+dfsg1-1build1
None known
xpdf
Ubuntu:22.04:LTS
All versions, plus listed versions
3.04+git20210103-3build13.04+git20211021-13.04+git20211021-1ubuntu13.04+git20220201-1
None known
ipe
Ubuntu:24.04:LTS
All versions, plus listed versions
7.2.27+dfsg1-27.2.28-27.2.28-2.1build27.2.28-2.1build37.2.28-2.1build4
None known
Show 7 moreShow less
Affected packages
PackageAffectedFixed
xpdf
Ubuntu:24.04:LTS
All versions, plus listed versions
3.04+git20220601-1ubuntu13.04+git20220601-1ubuntu23.04+git20231213-13.04+git20240118-13.04+git20240124-1
Show 4 moreShow less
3.04+git20240202-13.04+git20240202-1build13.04+git20240202-1build23.04+git20240202-1build3
None known
ipe
Ubuntu:25.10
All versions, plus listed versions
7.2.30-1build1
None known
xpdf
Ubuntu:25.10
All versions, plus listed versions
3.04+git20250304-1
None known
ipe
Ubuntu:26.10
All versions, plus listed versions
7.2.30-1build27.2.30-2
None known
xpdf
Ubuntu:26.10
All versions, plus listed versions
3.04+git20260220-13.04+git20260220-1ubuntu13.04+git20260802-1
None known
ipe
Ubuntu:26.04:LTS
All versions, plus listed versions
7.2.30-1build17.2.30-1build2
None known
xpdf
Ubuntu:26.04:LTS
All versions, plus listed versions
3.04+git20250304-13.04+git20250304-1build13.04+git20260220-1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-7868 is a low vulnerability (CVSS 2.1) in Xpdf, published August 15, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.40%, the 33rd percentile. Fixed in cppcheck 2.18.3-1.

References

MoveEnter Open