CVE-2023-2804

Exp

A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file. The vulnerability can only be exploited with 12-bit data precision for which the range of the sample data type exceeds the valid sample range, hence, an attacker could craft a 12-bit lossless JPEG image that contains out-of-range 12-bit samples. An application attempting to decompress such image using merged upsampling would lead to segmentation fault or buffer overflows, causing an application to crash.

Published: 2023-05-25 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-2804 is rated High Exploit Risk (64.6/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.20%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.14% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2023-2804

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2023-2804

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.06% 1.20% +1.14%
2 2025-11-21 0.77% 0.06% -0.71%
3 2025-11-18 0.77%

Full EPSS history (13 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-2804

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 3.6 [email protected]
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 3.6 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2023-2804

OS Trackers for CVE-2023-2804

vendor priority summary link
alpine CVE-2023-2804: 1 source package rows (libjpeg-turbo); 50 state rows across 7 repos (3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 6, open 44. https://security.alpinelinux.org/vuln/CVE-2023-2804
debian unimportant CVE-2023-2804 unimportant priority: Debian including 1 source packages (libjpeg-turbo), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-2804
redhat medium https://access.redhat.com/security/cve/CVE-2023-2804
suse medium CVE-2023-2804 severity moderate: SUSE including 24 source package names (libjpeg-turbo, libjpeg-turbo-3.0.1-77.1, …), 185 product×package rows across 50 product lines (SUSE CaaS Platform 4.0, SUSE Enterprise Storage 7, … (50 product lines)): Known Not Affected 166, Fixed 19. https://www.suse.com/security/cve/CVE-2023-2804/
ubuntu medium CVE-2023-2804 medium priority: Ubuntu including 3 source packages (libjpeg-turbo, libjpeg6b, libjpeg9), 24 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): not-affected 21, needs-triage 2, DNE 1. https://ubuntu.com/security/CVE-2023-2804

Affected software / configurations for CVE-2023-2804

Vendor Product Version Raw CPE
libjpeg-turbo libjpeg-turbo 2.1.90 cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:2.1.90:*:*:*:*:*:*:*

References for CVE-2023-2804

cvelogic Threat Intelligence