# CVE-2026-107225: Excelize: GetStyle panics on a negative fillId, borderId or fontId in styles.xml

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-07T18:55:55.603Z
- Modified: 2026-11-05T23:26:03.346Z
- Also known as: GHSA-5h23-36rv-pm65, GO-2026-6674
- Weaknesses: CWE-20, CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.8.0 to 2.11.0, GetStyle's fill, border, and font extraction predicates check only upper bounds for attacker-controlled style-table indices. File.GetStyle relies on extractStyleCondFuncs predicates that allow negative FillID, BorderID, and FontID values to reach slice indexing. When a crafted styles.xml supplies a negative fillId, borderId, or fontId and the application reads the style, a negative identifier passes the upper-bound-only predicate and becomes a negative slice index, allowing an attacker to panic while reading cell styling. No fixed version is available as of this review.

(As written by CVE List.)

## Affected

- qax-os excelize: >= 2.8.0, <= 2.11.0
- github.com/xuri/excelize/v2 (Go): from 2.8.0 before 2.11.1-0.20260731010303-ae2113b410e5
- excelize excelize: from 2.8.0 up to 2.11.0

## Every score

- GitHub_M: 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`
- GitHub: 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`

## References

- <https://github.com/qax-os/excelize/security/advisories/GHSA-5h23-36rv-pm65> (exploit, advisory, vendor-advisory, web)
- <https://github.com/qax-os/excelize/pull/2367> (issue-tracking, patch, web)
- <https://github.com/qax-os/excelize/commit/ae2113b410e51f6a141c396a59eda8c42b91bc22> (fix, patch, web)
- <https://github.com/qax-os/excelize> (package)

## Sources

- CVE List: [CVE-2026-107225](https://www.cve.org/CVERecord?id=CVE-2026-107225), CVE Terms of Use, modified 2026-10-10
- GitHub Advisory Database: [GHSA-5h23-36rv-pm65](https://github.com/advisories/GHSA-5h23-36rv-pm65), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6674](https://pkg.go.dev/vuln/GO-2026-6674), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-107225](https://nvd.nist.gov/vuln/detail/CVE-2026-107225), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2026-107225 · Whole record: https://cve.day/CVE-2026-107225.json · Rebuilt by cve.day 2026-11-25T22:59:43.087Z
