CVE-2024-22368

NameCVE-2024-22368
DescriptionThe Spreadsheet::ParseXLSX package before 0.28 for Perl can encounter an out-of-memory condition during parsing of a crafted XLSX document. This occurs because the memoize implementation does not have appropriate constraints on merged cells.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3723-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libspreadsheet-parsexlsx-perl (PTS)bullseye0.27-2.1+deb11u2fixed
bookworm0.27-3+deb12u2fixed
sid, trixie0.35-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libspreadsheet-parsexlsx-perlsourcebuster0.27-2+deb10u1DLA-3723-1
libspreadsheet-parsexlsx-perlsourcebullseye0.27-2.1+deb11u1
libspreadsheet-parsexlsx-perlsourcebookworm0.27-3+deb12u1
libspreadsheet-parsexlsx-perlsource(unstable)0.29-1

Notes

https://github.com/haile01/perl_spreadsheet_excel_rce_poc/blob/main/parse_xlsx_bomb.md
Fixed by: https://github.com/MichaelDaum/spreadsheet-parsexlsx/commit/39b25b91fcb939a9c8ea807fdc80386c1ae5be0c (0.28)
Minor rewrite followup: https://github.com/MichaelDaum/spreadsheet-parsexlsx/commit/47ff82d74fbd014b8ec3cab80fa4fd25db9e8242
Unit test: https://github.com/MichaelDaum/spreadsheet-parsexlsx/commit/0bb6830c71f442cea6d1a0fae2455cd704292e88

Search for package or bug name: Reporting problems