{"cve":"CVE-2026-46671","nvd":{"published":"2026-07-20T16:17:01.630","modified":"2026-10-24T20:10:00.137","status":"Analyzed","description":"Rust OneNote File Parser is a parser for Microsoft OneNote files implemented in Rust. Prior to version 1.1.1, a maliciously crafted `.onetoc2` table-of-contents file can cause `Parser::parse_notebook` to open arbitrary files on the host filesystem outside the notebook's directory. The parser reads entry names listed inside the `.onetoc2` and joins them against the notebook's base directory without validating that they are relative paths confined to that directory. The parser will bail out when the target file fails to parse as a OneNote section, so direct content exfiltration through the parser's return value is not practical, though file-existence probing and denial-of-service via large or special files remain possible. Anyone using `onenote_parser` to parse .onetoc2 files received from untrusted sources is affected. Users who only ever parse their own notebooks are not at meaningful risk. The issue is fixed in onenote_parser 1.1.1. The fix rejects absolute paths, parent-directory components, and other invalid path characters in entry names, and additionally canonicalises the resolved path to confirm it stays inside the notebook's base directory. For users who cannot upgrade to 1.1.1, only call `Parser::parse_notebook` on `.onetoc2` files from trusted sources. Alternatively, use `Parser::parse_section` / `Parser::parse_section_buffer` on individual .one files, which do not perform the directory walk.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L","score":4.4},"cwes":["CWE-22"],"references":["https://github.com/msiemens/onenote.rs/blob/master/CHANGELOG.md#111---2026-05-15","https://github.com/msiemens/onenote.rs/commit/c9267b2c96e2542be7e7b557d67318e81b733585","https://github.com/msiemens/onenote.rs/releases/tag/v1.1.1","https://github.com/msiemens/onenote.rs/security/advisories/GHSA-4j5m-wc25-pvh7"],"products":["msiemens:rust_onenote_file_parser"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-46671","score":0.00152,"percentile":0.04319,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4j5m-wc25-pvh7","url":"https://osv.dev/vulnerability/GHSA-4j5m-wc25-pvh7","summary":"Rust OneNote File Parser: Path traversal in `Parser::parse_notebook` allows reading files outside the notebook directory","modified":"2026-05-21T21:56:33.880311Z","packages":[{"ecosystem":"crates.io","name":"onenote_parser","purl":"pkg:cargo/onenote_parser","ranges":["<1.1.1"],"fixed":["1.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}