CVE-2023-43907
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at...
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.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
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
CVE-2023-43907- 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-120
- Updated
- 2026-11-02
CVE List
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
CVE-2023-43907- 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-120
- Updated
- 2026-11-02
EUVDEUVD-2023-48267
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
EUVD-2023-48267- 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-03
GitHub AdvisoriesGHSA-xwf2-9m25-2hpf
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at...
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
GHSA-xwf2-9m25-2hpf- 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-120
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-43907
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
ALPINE-CVE-2023-43907- 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-03
OSVAZL-36971
7.8
CVE-2023-43907 affecting package optipng for versions less than 0.7.8-5
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
AZL-36971- 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
Show 8 moreShow less
OSVAZL-37153
7.8
CVE-2023-43907 affecting package optipng 0.7.7-7
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
AZL-37153- 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
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
CVE-2023-43907- 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
OSVDEBIAN-CVE-2023-43907
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
DEBIAN-CVE-2023-43907- 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
OSVOESA-2023-1873
7.8
optipng security update
OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks and corrections.
Security Fix(es):
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.(CVE-2023-43907)
- Record
OESA-2023-1873- 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-43907
7.8
OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- Record
UBUNTU-CVE-2023-43907- 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
OSVMGASA-2023-0333 No score
Updated optipng packages fix a security vulnerability
Updated the optipng package to fix a security vulnerability (CVE-2023-43907) and other bugs. The GIF handler was vulnerable to a global buffer overflow.
- Record
MGASA-2023-0333- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0388-1 No score
Security update for optipng
This update for optipng fixes the following issues:
Update to 0.7.8:
- CVE-2023-43907: Fixed a global-buffer-overflow vulnerability in the GIF reader (boo#1215937).
- Fixed a stack-print-after-scope defect in the error handler.
- Fixed an assertion failure in the image reduction module.
- Fixed the command-line wildargs expansion in the Windows port.
- Refactored the structured exception handling.
- Record
openSUSE-SU-2023:0388-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13415-1 No score
optipng-0.7.8-1.1 on GA media
These are all security issues fixed in the optipng-0.7.8-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13415-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
optipngAlpine:v3.18 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.19 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.20 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.21 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.22 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.23 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAlpine:v3.24 |
before 0.7.8-r0 | 0.7.8-r0 |
optipngAzure Linux:3 |
before 0.7.8-5 | 0.7.8-5 |
optipngAzure Linux:2 |
through 0.7.7-7 | None known |
optipngDebian:12 |
All versions, plus listed versions 0.7.7-20.7.7-30.7.8+ds-17.9.1+ds-17.9.1+ds-2 |
None known |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
optipngDebian:13 |
before 0.7.8+ds-1 | 0.7.8+ds-1 |
optipngDebian:14 |
before 0.7.8+ds-1 | 0.7.8+ds-1 |
optipngMageia:8 |
before 0.7.8-2.mga8 | 0.7.8-2.mga8 |
optipngMageia:9 |
before 0.7.8-2.mga9 | 0.7.8-2.mga9 |
optipngopenEuler:20.03-LTS-SP1 |
before 0.7.8-1.oe1 | 0.7.8-1.oe1 |
optipngopenEuler:20.03-LTS-SP3 |
before 0.7.8-1.oe1 | 0.7.8-1.oe1 |
optipngopenEuler:22.03-LTS |
before 0.7.8-1.oe2203sp2 | 0.7.8-1.oe2203sp2 |
optipngopenEuler:22.03-LTS-SP1 |
before 0.7.8-1.oe2203sp1 | 0.7.8-1.oe2203sp1 |
optipngopenEuler:22.03-LTS-SP2 |
before 0.7.8-1.oe2203sp2 | 0.7.8-1.oe2203sp2 |
optipngUbuntu:16.04:LTS |
All versions, plus listed versions 0.7.5-10.7.6-10.7.6-1ubuntu0.16.04.1 |
None known |
optipngUbuntu:18.04:LTS |
All versions, plus listed versions 0.7.6-1build10.7.6-1ubuntu10.7.6-1.1 |
None known |
optipngUbuntu:20.04:LTS |
All versions, plus listed versions 0.7.7-1 |
None known |
optipngUbuntu:22.04:LTS |
All versions, plus listed versions 0.7.7-1build10.7.7-20.7.7-2build1 |
None known |
optipngSUSE:Package Hub 15 SP4 |
before 0.7.8-bp154.3.5.1 | 0.7.8-bp154.3.5.1 |
optipngopenSUSE:Leap 15.4 |
before 0.7.8-bp154.3.5.1 | 0.7.8-bp154.3.5.1 |
optipngopenSUSE:Tumbleweed |
before 0.7.8-1.1 | 0.7.8-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-43907 is a high vulnerability (CVSS 7.8) in Optipng Project Optipng, published October 1, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.46%, the 39th percentile. Fixed in optipng 0.7.8-r0.
References
optipng.sourceforge.net
sourceforge.net/projects/optipng/files/OptiPNG/optipng-0.7.7/optipng-0.7.7.tar.gz/download?use_mirror=udomain&download=
github.com/Frank-Z7/z-vulnerabilitys/blob/main/optipng-global-buffer-overflow1/optipng-global-buffer-overflow1.md
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IBHVG5LDE2K3FZSIK4XFXOUXSE7NZ5JH
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RCG5CMDT37WCZGAWQNOIPVP4VHGCPUU3
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VAB22JXDE7O27DYARZXC7PFUETM5OOT5
Show 13 moreShow less
nvd.nist.gov/vuln/detail/CVE-2023-43907
github.com/advisories/GHSA-xwf2-9m25-2hpf
security.alpinelinux.org/vuln/CVE-2023-43907
security-tracker.debian.org/tracker/CVE-2023-43907
advisories.mageia.org/MGASA-2023-0333.html
bugs.mageia.org/show_bug.cgi?id=32520
sourceforge.net/p/optipng/bugs/87
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1873
ubuntu.com/security/CVE-2023-43907
cve.org/CVERecord?id=CVE-2023-43907
lists.opensuse.org/archives/list/[email protected]/thread/M4KHRFT5CJKRYROUB7T7FZQUZAVRJESF
bugzilla.suse.com/1215937
suse.com/security/cve/CVE-2023-43907