CVE-2023-27781
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
CVE-2023-27781- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
CVE-2023-27781- Updated
- 2026-11-02
EUVDEUVD-2023-31517
0.0
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
EUVD-2023-31517- CVSS
- 0.0 None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-9j85-mhfm-pjrc
7.8
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
GHSA-9j85-mhfm-pjrc- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-27781
7.8
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
DEBIAN-CVE-2023-27781- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-27781
7.8
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
UBUNTU-CVE-2023-27781- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV No score
jpegoptim v1.5.2 was discovered to contain a heap overflow in the optimize function at jpegoptim.c.
- Record
CVE-2023-27781- Updated
- 2026-11-02
OSVMGASA-2023-0143 No score
Updated jpegoptim packages fix security vulnerability
A heap overflow can occur with crafted JPEG image file. (CVE-2023-27781)
- Record
MGASA-2023-0143- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jpegoptimDebian:12 |
All versions, plus listed versions 1.4.7-1 |
None known |
jpegoptimDebian:13 |
All versions, plus listed versions 1.4.7-1 |
None known |
jpegoptimDebian:14 |
All versions, plus listed versions 1.4.7-1 |
None known |
jpegoptimMageia:8 |
before 1.5.1-1.1.mga8 | 1.5.1-1.1.mga8 |
jpegoptimUbuntu:14.04:LTS |
All versions, plus listed versions 1.3.0-11.3.0-1ubuntu1 |
None known |
jpegoptimUbuntu:16.04:LTS |
All versions, plus listed versions 1.4.3-1 |
None known |
jpegoptimUbuntu:18.04:LTS |
All versions, plus listed versions 1.4.4-1 |
None known |
jpegoptimUbuntu:20.04:LTS |
All versions, plus listed versions 1.4.6-1 |
None known |
jpegoptimUbuntu:22.04:LTS |
All versions, plus listed versions 1.4.6-1 |
None known |
jpegoptimUbuntu:24.04:LTS |
All versions, plus listed versions 1.4.7-1 |
None known |
jpegoptimUbuntu:25.10 |
All versions, plus listed versions 1.4.7-1 |
None known |
jpegoptimUbuntu:26.10 |
All versions, plus listed versions 1.4.7-1build1 |
None known |
jpegoptimUbuntu:26.04:LTS |
All versions, plus listed versions 1.4.7-11.4.7-1build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-27781 is a high vulnerability (CVSS 7.8) in Jpegoptim Project Jpegoptim, published March 15, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.39%, the 33rd percentile. Fixed in jpegoptim 1.5.1-1.1.mga8.
References
github.com/tjko/jpegoptim/issues/132
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/66ZW65INCWSQYIT5E6N6I6PE5D7R6EK7
nvd.nist.gov/vuln/detail/CVE-2023-27781
lists.fedoraproject.org/archives/list/[email protected]/message/66ZW65INCWSQYIT5E6N6I6PE5D7R6EK7
github.com/advisories/GHSA-9j85-mhfm-pjrc
github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27781.json