CVE-2023-40745
Libtiff: integer overflow in tiffcp.c
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.5
Libtiff: integer overflow in tiffcp.c
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2023-45298
6.5
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
EUVD-2023-45298- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-w737-xjxg-h9mw
6.5
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial...
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
GHSA-w737-xjxg-h9mw- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
NVD
6.5
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVAZL-31096
6.5
CVE-2023-40745 affecting package libtiff for versions less than 4.6.0-1
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
AZL-31096- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2023-40745
6.5
- Record
BELL-CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSV
6.5
Libtiff: integer overflow in tiffcp.c
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-40745
6.5
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
DEBIAN-CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2025-312
6.5
LibTIFF is vulnerable to an integer overflow
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
JLSEC-2025-312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2024:2289
6.5
Red Hat Security Advisory: libtiff security update
- Record
RHSA-2024:2289- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-40745
6.5
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow.
- Record
UBUNTU-CVE-2023-40745- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2024:2289 No score
Moderate: libtiff security update
The libtiff packages contain a library of functions for manipulating Tagged Image File Format (TIFF) files.
Security Fix(es):
- libtiff: infinite loop via a crafted TIFF file (CVE-2022-40090)
- libtiff: segmentation fault in Fax3Encode in libtiff/tif_fax3.c (CVE-2023-3618)
- libtiff: integer overflow in tiffcp.c (CVE-2023-40745)
- libtiff: potential integer overflow in raw2tiff.c (CVE-2023-41175)
- libtiff: heap-based buffer overflow in cpStripToTile() in tools/tiffcp.c (CVE-2023-6228)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2024:2289- Updated
- 2026-11-02
OSVCLSA-2025-1745531344 No score
libtiff: Fix of 2 CVEs
- CVE-2023-40745: prevent integer overflow on hostile images to avoid heap-based buffer overflow and potential code execution
- CVE-2023-41175: address integer overflows and bypass in raw2tiff.c to prevent heap-based buffer overflow and potential code execution
- Record
CLSA-2025-1745531344- Updated
- 2026-11-02
OSVMGASA-2024-0077 No score
Updated libtiff packages fix security vulnerabilities
LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow. (CVE-2023-40745) A vulnerability was found in libtiff due to multiple potential integer overflows in raw2tiff.c. This flaw allows remote attackers to cause a denial of service or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow. (CVE-2023-41175)
- Record
MGASA-2024-0077- Updated
- 2026-11-02
OSVSUSE-SU-2024:0915-1 No score
Security update for tiff
This update for tiff fixes the following issues:
- CVE-2023-41175: Fixed potential integer overflow in raw2tiff.c (bsc#1214686).
- CVE-2023-38288: Fixed potential integer overflow in raw2tiff.c (bsc#1213590).
- CVE-2023-40745: Fixed integer overflow in tiffcp.c (bsc#1214687).
- CVE-2015-8668: Fixed Heap-based buffer overflow in bmp2tiff / PackBitsEncode (bsc#960589).
- Record
SUSE-SU-2024:0915-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:0973-1 No score
Security update for tiff
This update for tiff fixes the following issues:
- CVE-2023-41175: Fixed potential integer overflow in raw2tiff.c (bsc#1214686).
- CVE-2023-38288: Fixed potential integer overflow in raw2tiff.c (bsc#1213590).
- CVE-2023-40745: Fixed integer overflow in tiffcp.c (bsc#1214687).
- Record
SUSE-SU-2024:0973-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libtiffAlmaLinux:9 From an advisory covering 5 CVEs |
before 4.4.0-12.el9 | 4.4.0-12.el9 |
libtiff-develAlmaLinux:9 From an advisory covering 5 CVEs |
before 4.4.0-12.el9 | 4.4.0-12.el9 |
libtiff-toolsAlmaLinux:9 From an advisory covering 5 CVEs |
before 4.4.0-12.el9 | 4.4.0-12.el9 |
libtiffAzure Linux:2 |
before 4.6.0-1 | 4.6.0-1 |
tiffAlpaquita:23 |
4.4.0-r1 and later | None known |
tiffBellSoft Hardened Containers:23 |
4.4.0-r1 and later | None known |
libtiffTuxCare:AlmaLinux:9.2 From an advisory covering 2 CVEs |
before 4.4.0-8.el9_2.tuxcare.els4 | 4.4.0-8.el9_2.tuxcare.els4 |
libtiff-develTuxCare:AlmaLinux:9.2 From an advisory covering 2 CVEs |
before 4.4.0-8.el9_2.tuxcare.els4 | 4.4.0-8.el9_2.tuxcare.els4 |
libtiff-staticTuxCare:AlmaLinux:9.2 From an advisory covering 2 CVEs |
before 4.4.0-8.el9_2.tuxcare.els4 | 4.4.0-8.el9_2.tuxcare.els4 |
libtiff-toolsTuxCare:AlmaLinux:9.2 From an advisory covering 2 CVEs |
before 4.4.0-8.el9_2.tuxcare.els4 | 4.4.0-8.el9_2.tuxcare.els4 |
Show 29 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tiffDebian:12 |
before 4.5.0-6+deb12u1, plus listed versions 4.5.0-6 |
4.5.0-6+deb12u1 |
tiffDebian:13 |
before 4.5.1+git230720-1 | 4.5.1+git230720-1 |
tiffDebian:14 |
before 4.5.1+git230720-1 | 4.5.1+git230720-1 |
tiffDebian:10 From an advisory covering 8 CVEs |
before 4.1.0+git191117-2~deb10u8, plus listed versions 4.0.10+git190814-14.0.10+git190818-14.0.10+git190903-14.0.10+git191003-14.0.10-4 Show 9 moreShow less4.1.0+git191117-14.1.0+git191117-2~deb10u14.1.0+git191117-2~deb10u24.1.0+git191117-2~deb10u34.1.0+git191117-2~deb10u44.1.0+git191117-2~deb10u54.1.0+git191117-2~deb10u64.1.0+git191117-2~deb10u74.1.0-1 |
4.1.0+git191117-2~deb10u8 |
tiffDebian:11 From an advisory covering 3 CVEs |
before 4.2.0-1+deb11u5, plus listed versions 4.2.0-14.2.0-1+deb11u14.2.0-1+deb11u24.2.0-1+deb11u34.2.0-1+deb11u4 |
4.2.0-1+deb11u5 |
tiffDebian:12 From an advisory covering 3 CVEs |
before 4.5.0-6+deb12u1, plus listed versions 4.5.0-6 |
4.5.0-6+deb12u1 |
Libtiff_jllJulia |
before 4.6.0+0 | 4.6.0+0 |
libtiffMageia:9 From an advisory covering 2 CVEs |
before 4.5.1-1.2.mga9 | 4.5.1-1.2.mga9 |
libtiffRed Hat:enterprise_linux:9::appstream From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-debugsourceRed Hat:enterprise_linux:9::appstream From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-develRed Hat:enterprise_linux:9::appstream From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-tools-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-debugsourceRed Hat:enterprise_linux:9::crb From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-toolsRed Hat:enterprise_linux:9::crb From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
libtiff-tools-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 5 CVEs |
before 0:4.4.0-12.el9 | 0:4.4.0-12.el9 |
tiffSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 4 CVEs |
before 4.0.9-44.80.1 | 4.0.9-44.80.1 |
tiffSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 4 CVEs |
before 4.0.9-44.80.1 | 4.0.9-44.80.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 4 CVEs |
before 4.0.9-44.80.1 | 4.0.9-44.80.1 |
tiffSUSE:Linux Enterprise Micro 5.3 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffSUSE:Linux Enterprise Micro 5.4 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffSUSE:Linux Enterprise Micro 5.5 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffSUSE:Linux Enterprise Module for Basesystem 15 SP5 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffSUSE:Linux Enterprise Module for Package Hub 15 SP5 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffSUSE:Linux Enterprise Micro 5.2 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffopenSUSE:Leap Micro 5.3 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffopenSUSE:Leap Micro 5.4 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
tiffopenSUSE:Leap 15.5 From an advisory covering 3 CVEs |
before 4.0.9-150000.45.41.1 | 4.0.9-150000.45.41.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| 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-40745 is a medium vulnerability (CVSS 6.5) in Libtiff, published July 31, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.41%, the 72nd percentile. Fixed in libtiff 4.6.0-1.
References
access.redhat.com/errata/RHSA-2024:2289
access.redhat.com/security/cve/CVE-2023-40745
bugzilla.redhat.com/show_bug.cgi?id=2235265
security.netapp.com/advisory/ntap-20231110-0005
nvd.nist.gov/vuln/detail/CVE-2023-40745
github.com/advisories/GHSA-w737-xjxg-h9mw
Show 48 moreShow less
access.redhat.com/security/cve/CVE-2022-40090
access.redhat.com/security/cve/CVE-2023-3618
access.redhat.com/security/cve/CVE-2023-41175
access.redhat.com/security/cve/CVE-2023-6228
bugzilla.redhat.com/2215865
bugzilla.redhat.com/2234970
bugzilla.redhat.com/2235264
bugzilla.redhat.com/2235265
bugzilla.redhat.com/2240995
errata.almalinux.org/9/ALSA-2024-2289.html
docs.bell-sw.com/security/cves/CVE-2023-40745
errata.tuxcare.com/almalinux9.2-esu/CLSA-2025-1745531344.html
access.redhat.com/downloads/content/package-browser
github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40745.json
gitlab.com/libtiff/libtiff
security-tracker.debian.org/tracker/CVE-2023-40745
advisories.mageia.org/MGASA-2024-0077.html
bugs.mageia.org/show_bug.cgi?id=32983
lwn.net/Articles/965827
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.4_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2215865
bugzilla.redhat.com/show_bug.cgi?id=2234970
bugzilla.redhat.com/show_bug.cgi?id=2235264
bugzilla.redhat.com/show_bug.cgi?id=2240995
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_2289.json
cve.org/CVERecord?id=CVE-2022-40090
nvd.nist.gov/vuln/detail/CVE-2022-40090
cve.org/CVERecord?id=CVE-2023-3618
nvd.nist.gov/vuln/detail/CVE-2023-3618
gitlab.com/libtiff/libtiff/-/issues/529
cve.org/CVERecord?id=CVE-2023-6228
nvd.nist.gov/vuln/detail/CVE-2023-6228
cve.org/CVERecord?id=CVE-2023-40745
cve.org/CVERecord?id=CVE-2023-41175
nvd.nist.gov/vuln/detail/CVE-2023-41175
suse.com/support/update/announcement/2024/suse-su-20240915-1
bugzilla.suse.com/1213590
bugzilla.suse.com/1214686
bugzilla.suse.com/1214687
bugzilla.suse.com/1221187
bugzilla.suse.com/960589
suse.com/security/cve/CVE-2015-8668
suse.com/security/cve/CVE-2023-38288
suse.com/security/cve/CVE-2023-40745
suse.com/security/cve/CVE-2023-41175
suse.com/support/update/announcement/2024/suse-su-20240973-1
ubuntu.com/security/CVE-2023-40745