{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8176 exists.","fix":"Apply the vendor's patch.","what":"CVE-2025-8176 is a medium-severity use after free vulnerability in Libtiff Libtiff, published on 26 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-8176 and fix it if it is affected.\n\nWhat it is: CVE-2025-8176 is a medium-severity use after free vulnerability in Libtiff Libtiff, published on 26 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8176 exists.\n\nAffected product: Libtiff Libtiff. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-8176/ (Markdown: https://insights.sbomify.com/CVE-2025-8176/index.md)","id":"CVE-2025-8176","markdown":"https://insights.sbomify.com/CVE-2025-8176/index.md","name":"CVE-2025-8176","record":{"aliases":["ALSA-2025:20034","AZL-65973","AZL-65981","BELL-CVE-2025-8176","CLSA-2026-1786038772","DEBIAN-CVE-2025-8176","ECHO-3fcb-a0e8-6a1c","GHSA-gvgc-3ch5-px8p","JLSEC-2025-317","MINI-jrph-rv6c-x9qc","RHSA-2025:20034","RLSA-2025:20034","ROOT-OS-ALPINE-320-CVE-2025-8176","ROOT-OS-DEBIAN-11-CVE-2025-8176","ROOT-OS-DEBIAN-12-CVE-2025-8176","UBUNTU-CVE-2025-8176"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LibTIFF image library","requires_auth":"low_privilege","summary":"A local attacker can exploit a use-after-free flaw in LibTIFF's tiffmedian tool to potentially execute arbitrary code or cause a denial of service.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"libtiff","vendor":"libtiff"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"A vulnerability was found in LibTIFF up to 4.7.0. It has been declared as critical. This vulnerability affects the function get_histogram of the file tools/tiffmedian.c. The manipulation leads to use after free. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used. The patch is identified as fe10872e53efba9cc36c66ac4ab3b41a839d5172. It is recommended to apply a patch to fix this issue.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"LibTIFF tiffmedian.c get_histogram use after free","id":"CVE-2025-8176","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libtiff:libtiff","products":["libtiff:libtiff"],"type":"use_after_free","year":"2025"},"n_packages":13,"n_references":7,"next":{"headline":"LibTIFF thumbnail.c setrow buffer overflow","id":"CVE-2025-8177"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/almalinux/libtiff","source":"ALSA-2025:20034"},{"ecosystem":"AlmaLinux:8","fixed":["4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/almalinux/libtiff-devel","source":"ALSA-2025:20034"},{"ecosystem":"AlmaLinux:8","fixed":["4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-tools","purl":"pkg:rpm/almalinux/libtiff-tools","source":"ALSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/redhat/libtiff","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-debugsource","purl":"pkg:rpm/redhat/libtiff-debugsource","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/redhat/libtiff-devel","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-tools-debuginfo","purl":"pkg:rpm/redhat/libtiff-tools-debuginfo","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-debugsource","purl":"pkg:rpm/redhat/libtiff-debugsource","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-tools","purl":"pkg:rpm/redhat/libtiff-tools","source":"RHSA-2025:20034"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff-tools-debuginfo","purl":"pkg:rpm/redhat/libtiff-tools-debuginfo","source":"RHSA-2025:20034"},{"ecosystem":"Rocky Linux:8","fixed":["0:4.0.9-36.el8_10"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/rocky-linux/libtiff?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2025:20034"}],"prev":{"headline":"D-Link DI-8400 jhttpd usb_paswd.asp null pointer dereference","id":"CVE-2025-8175"},"products":["LibTIFF"],"published":"2025-07-26","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2004-1308","kev_date_added":null,"published":"2004-12-22"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2004-0929","kev_date_added":null,"published":"2004-10-26"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2025-61144","kev_date_added":null,"published":"2026-02-23"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9533","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9534","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9535","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9536","kev_date_added":null,"published":"2016-11-22"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-28","vendors":["n/a"]},"summary":"A local attacker can exploit a use-after-free flaw in LibTIFF's tiffmedian tool to potentially execute arbitrary code or cause a denial of service.","url":"https://insights.sbomify.com/CVE-2025-8176/"}