Email me

Rust advisories / xmp_toolkit

Unsound LowRUSTSEC-2024-0360 · xmp_toolkit

RUSTSEC-2024-0360: `XmpFile::close` can trigger UB

Short answerxmp_toolkit has an API that can cause undefined behaviour from safe code: `XmpFile::close` can trigger UB. Fixed in 1.9.0.

Cratexmp_toolkit
TypeUnsound
Affected versionsBefore 1.9.0.
Fixed in1.9.0
SeverityLow (GitHub rating)
Published2024-07-26
Last changed2025-10-28
Also known asGHSA-66fw-43h8-f8p3
Affected functionsxmp_toolkit::XmpFile::close

What to do

  1. See which version you have: cargo tree -i xmp_toolkit (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p xmp_toolkit. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example xmp_toolkit = "1.9.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Affected versions of the crate failed to catch C++ exceptions raised within the XmpFile::close function. If such an exception occured, it would trigger undefined behavior, typically a process abort.

This is best demonstrated in issue #230, where a race condition causes the close call to fail due to file I/O errors.

This was fixed in PR #232 (released as crate version 1.9.0), which now safely handles the exception.

For backward compatibility, the existing API ignores the error. A new API XmpFile::try_close was added to allow callers to receive and process the error result.

Users of all prior versions of xmp_toolkit are encouraged to update to version 1.9.0 to avoid undefined behavior.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ