AlbumCraft is a local desktop photo organizer. It reads picture files, their EXIF metadata, .picasa.ini files and its own library.json from folders the user adds, and it writes exported copies, collages, its library and a thumbnail cache. Treat every file it reads as potentially malicious: pictures and metadata often come from other people, downloads and memory cards.
Please give the maintainers a reasonable opportunity to investigate and fix a problem before publishing exploitable details, proof-of-concept code or weaponized files.
This project does not yet document a private security contact. Contact the maintainers through the repository owner's channels, give only a minimal non-exploitable summary in public, and ask for a private way to share details. Do not open a public issue containing a working exploit, secrets, a sensitive crash dump or a malicious attachment.
- AlbumCraft version or commit;
- operating system, architecture and build profile (dev/release);
- the affected component (decoding, EXIF,
.picasa.ini, library, export, printing, thumbnail cache, MCP server once it exists); - impact and what an attacker needs (for example "the victim adds a folder containing this file");
- exact reproduction steps, expected and actual behaviour;
- crash output or backtrace (
RUST_BACKTRACE=1, dev build) and memory/CPU measurements when relevant; - any known workaround.
Remove personal paths, private pictures and unrelated system information from logs.
Don't attach a harmful or non-redistributable file to a public issue. First give its format, size, SHA-256, observed effect, how it was produced (synthetic, fuzzed…) and how to reproduce. Test files accepted into the repository must be minimized, free of personal data (including EXIF GPS, names and serial numbers) and legally redistributable. A fixed parser defect gets a permanent regression test.
- picture decoding (JPEG, PNG, GIF, BMP, WebP, TIFF through the
imagecrate), including decompression bombs and oversized dimensions; - EXIF, IPTC and XMP parsing and embedded thumbnails (the suite's
craft-metadataandcraft-tiff), and how AlbumCraft formats the values; .picasa.iniparsing;library.jsonloading and saving (corruption, data loss, absurd values);- the thumbnail cache (
dirs::cache_dir()/AlbumCraft/thumbs): file naming, overwrite, symlinks; - folder scanning (recursion, symlinks, very large trees) and export/collage output paths (overwriting, traversal);
- Email (
crates/albumcraft-core/src/mail.rs): on Windows Simple MAPI (MAPISendMailWfrommapi32.dll, the onlyunsafecode besides printing), elsewherexdg-email/open -a Mailrun with fixed arguments and each file as its own argument; the copies are written to a new folder under the temporary folder, removed after a day. Nothing is sent by AlbumCraft; - moving rejected pictures to the system trash (
library::move_to_trash, thetrashcrate): only files the library lists, after a confirmation; - printing: Windows (
unsafecode, Win32 GDI inprint.rs) and CUPS on Linux/macOS (lp/lpstat/lpoptionsrun with fixed arguments, printer and paper names passed as separate arguments, the file after--; the temporary PDF is removed after submission); - panics or hangs triggered by file content (a crash loses up to a few seconds of unsaved changes);
- the MCP server (
albumcraft --mcp) and the window's control connection (token, localhost binding, request limits, tool parameter validation); - raw-file preview extraction, the web gallery output (escaping of titles and captions), movie export through
ffmpeg(arguments, output path), slideshow music decoding; - locations: EXIF GPS parsing, the GPS cache (
AlbumCraft/gps.jsonin the cache folder), the built-in map and city data, and the online maps (src/online.rs: HTTPS only, through rustls with built-in root certificates; tile downloads limited to 4 MB and decoded as PNG; search answers limited to 2 MB and parsed as JSON; the tile cache underAlbumCraft/tileswith paths built only from tile numbers); - face recognition: the face detector and recogniser (ONNX networks, run on pictures read from the library), the face data kept in
AlbumCraft/analysis(vectors never in the library file, sidecars, exports or tool answers), the face crops cache, and the deletion of all of it (delete_face_data); - dependencies and release artifacts.
General bugs without a security impact go through normal issues.
- Automation:
albumcraft --mcpis an MCP server on stdin/stdout only; it has the user's rights (it can add any readable folder to the library and write exports, galleries and movies to any existing folder the user can write; it never overwrites files, except that a movie path must not exist yet). Tool parameters are validated; pictures must be in the library to be read. - While the window is open it listens on 127.0.0.1 only (a free port), and requires the random 256-bit token from
control.json(in the data folder, readable by the user only on Unix; on Windows it relies on the user profile's permissions). Requests are limited to 1 MB per line and 4 connections at a time. There is no rate limit or per-command permission: anyone holding the token can do everything the MCP tools can. A stale control.json after a crash points to a closed port (calls then fall back to working on library.json). - Pictures are decoded with the
imagecrate's default limits (allocations up to 512 MiB per decode) on up to six worker threads at once, so a folder of hostile files can use several GiB of memory. There is no per-file timeout. - A panic while decoding or editing a picture in a background worker (thumbnails, previews, zoom, export, collage) is caught: that picture fails, the others carry on. Every panic is written with a backtrace to
crash.login the data directory; a crash of the main thread is reported at the next start. library.jsonis written atomically (temporary file, flushed, then renamed). An unreadable library is moved aside aslibrary.unreadable-<time>.json, never overwritten; if it can't be moved, nothing is saved during that session. Values in it are range-checked on load.- File names that are not valid UTF-8 are not supported (such pictures show as unreadable).
- Captions, tags and file names are shown as plain text in egui (no HTML or script interpretation). Exported files contain only picture data, plus the picture's location (EXIF GPS) unless the user turned that off in the Export window; no other metadata is copied.
- Network: none unless the user turns on online maps (asked once at the first start). Then the map downloads tiles from
tile.openstreetmap.organd searches go tonominatim.openstreetmap.org(the typed text, or the coordinates of a dropped pin for its address); these servers see the user's IP address. Pictures and their locations are never sent. .picasa.inifiles are only read, never written. Original pictures are never modified.