Ghostscript CVE-2026-125396 ("Upload2Shell") – please update Paperless-ngx package
-
See https://www.heise.de/news/Upload2Shell-Ghostscript-Luecke-betrifft-viele-Systeme-11534768.html
The current Paperless-ngx package 1.71.2 ships Ghostscript 10.06.0 (gs --version in the web terminal), which is affected. The fix is in Ghostscript 10.08.0.
Could you publish an updated package? Other apps that bundle Ghostscript may be affected as well. -
Hello @jkammerer
Thanks for reporting.
We are aware of the CVE-2026-125396 for the Ghostscript apt package version
10.06.0~dfsg-3ubuntu1.2that exists in the @paperless-ngx docker image.As of writing this, the EPSS Score is ~0.44% and the EPSS Percentile is ~40%. This means exploitation is unlikely in the general population and there is no KEV flag, so there is no known observed exploitation in the wild, yet.
The attack vector for @paperless-ngx is rather large since it could be abused by:
- Any Paperless user who can upload a document
- Anyone who can drop a file into the consume folder
- Anyone who can send email, if a Paperless mail account and rule are set up to fetch attachments. This is the realistic remote path, and it raises the risk above what "local" in the CVSS score suggests
Unfortunately, Ubuntu does not have an apt update ready yet.
We can't create an app update for @paperless-ngx until Ubuntu as published the app update.
Another option would be to change the @paperless-ngx app to build Ghostscript from source instead of using apt to install Ghostscript.
We will keep this option in mind going forward and if the situation requires it.My opinion:
If you trust the Users who have access to your @paperless-ngx, the highest attack vector is the automated ingestion of Mails send to @paperless-ngx.
Mitigation right now could be to restrict who can upload new documents and to only accept mails send to @paperless-ngx from trusted sources.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login