{"id":"CVE-2025-54080","aliases":["CVE-2025-54080","GHSA-496f-x7cq-cq39","PYSEC-2026-1354"],"related":[],"kind":"vulnerability","state":"published","title":"Exiv2 Segmentation Faults in Exiv2::EpsImage::writeMetadata() via crafted EPS file","summary":"Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions 0.28.5 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. The bug is fixed in version 0.28.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions 0.28.5 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. The bug is fixed in version 0.28.6.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn out-of-bounds read was found in Exiv2 versions v0.28.5 and earlier. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file.\n\nNote that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as delete.\n\n### Patches\nThe bug is fixed in version v0.28.6.\n\n### Credit\nThank you to @dragonArthurX for reporting this issue.\n\n### Details (from original report by @dragonArthurX )\n**Version:**\nTested on v0.28.5 (latest official release)\nCommit: 907169fa643c2c74c14fd4106e55eaeee3634d9f\n\n**Platform:**\nUbuntu 20.04.6 LTS (x86_64)\n\n**Build Steps:**\n```bash\ngit clone https://github.com/Exiv2/exiv2.git\ncd exiv2\ngit checkout v0.28.5\nmkdir build-v0.28.5 && cd build-v0.28.5\ncmake -DCMAKE_C_COMPILER=/fuzzer/afl-clang-fast -DCMAKE_CXX_COMPILER=/fuzzer/afl-clang-fast++ -DCMAKE_C_FLAGS=\"-g -fsanitize=address\" -DCMAKE_CXX_FLAGS=\"-g -fsanitize=address\" -DBUILD_SHARED_LIBS=OFF ../\n```\n\n**Command line to reproduce:**\n```bash\n/home/exiv2/build/bin/exiv2 -d a -f /home/poc \n```\n\n**Crash Output:** \n```\nAddressSanitizer:DEADLYSIGNAL\n ================================================================ = \n==376531==ERROR: AddressSanitizer: SEGV on unknown address 0x7fd92236b0e7 (pc 0x7fd82314dcd2 bp 0x7ffd540ceba0 sp 0x7ffd540ce358 T0)\n==376531==The signal is caused by a READ memory access.\n    #0 0x7fd82314dcd2  /build/glibc-B3wQXB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383\n    #1 0x4ed131 in __asan_memcpy (/home/exiv2/build-v0.28.5/bin/exiv2+0x4ed131)\n    #2 0x6184b1 in Exiv2::MemIo::write(unsigned char const*, unsigned long) /home/exiv2/src/basicio.cpp:704:5\n    #3 0xad336d in (anonymous namespace)::writeTemp(Exiv2::BasicIo&, unsigned char const*, unsigned long) /home/exiv2/src/epsimage.cpp:90:14\n    #4 0xac3a07 in (anonymous namespace)::readWriteEpsMetadata(Exiv2::BasicIo&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<Exiv2::NativePreview, std::allocator<Exiv2::NativePreview> >&, bool) /home/exiv2/src/epsimage.cpp:1009:7\n    #5 0xad1175 in Exiv2::EpsImage::writeMetadata() /home/exiv2/src/epsimage.cpp:1103:3\n    #6 0x5d2383 in Action::Erase::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/exiv2/app/actions.cpp:713:14\n    #7 0x522d02 in main /home/exiv2/app/exiv2.cpp:177:25\n    #8 0x7fd8230b6082 in __libc_start_main /build/glibc-B3wQXB/glibc-2.31/csu/../csu/libc-start.c:308:16\n    #9 0x4714dd in _start (/home/exiv2/build-v0.28.5/bin/exiv2+0x4714dd)\n\nAddressSanitizer can not provide additional info.\nSUMMARY: AddressSanitizer: SEGV /build/glibc-B3wQXB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383 \n==376531==ABORTING\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Exiv2 es una biblioteca de C++ y una utilidad de línea de comandos para leer, escribir, eliminar y modificar metadatos de imagen Exif, IPTC, XMP e ICC. Se encontró una lectura fuera de límites en las versiones 0.28.5 y anteriores de Exiv2. La lectura fuera de límites se activa cuando se usa Exiv2 para escribir metadatos en un archivo de imagen manipulado. Un atacante podría potencialmente explotar la vulnerabilidad para causar una denegación de servicio al hacer que Exiv2 falle, si pueden engañar a la víctima para que ejecute Exiv2 en un archivo de imagen manipulado. Tenga en cuenta que este error solo se activa al escribir los metadatos, lo cual es una operación de Exiv2 menos utilizada que la lectura de metadatos. El error está corregido en la versión 0.28.6.","source":"nvd"}],"published":"2025-08-29T14:49:41.000Z","modified":"2026-10-19T17:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":1.8,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":1.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 0.28.6","status":"affected"}],"vendor":"Exiv2","product":"exiv2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.17.3"}],"ecosystem":"PyPI","package":"exiv2","purl":"pkg:pypi/exiv2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.28.6"}],"vendor":"exiv2","product":"exiv2","cpe":"cpe:2.3:a:exiv2:exiv2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.17.3"}],"ecosystem":"PyPI","package":"exiv2","purl":"pkg:pypi/exiv2","source":"pysec"}],"references":[{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-496f-x7cq-cq39","tags":["third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Exiv2/exiv2/commit/e737332427711f15bcdc4e903203d6b7493eaec0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54080","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Exiv2/exiv2","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/exiv2","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-496f-x7cq-cq39","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-08-29T14:58:11.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54080","url":"https://www.cve.org/CVERecord?id=CVE-2025-54080","licence":"CVE Terms of Use","modified":"2025-08-29T14:58:23.574Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-496f-x7cq-cq39","url":"https://github.com/advisories/GHSA-496f-x7cq-cq39","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:02.553Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54080","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54080","licence":"Public domain","modified":"2026-10-19T17:10:00.173Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1354","url":"https://osv.dev/vulnerability/PYSEC-2026-1354","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:35.927Z"}],"updatedAt":"2026-11-25T22:59:03.872Z","epss":{"score":0.00163,"percentile":0.0572,"date":"2026-12-01T12:00:22.000Z"}}