cups-filters 2.0rc2 #533
tillkamppeter
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
security vulnerability fix and general security and code clean-up of the
beh
(Backend Error Handler) backend:execv()
instead ofsystem()
- CVE-2023-24805With
execv()
command line arguments are passed as separate strings and not the full command line in a single string. This prevents arbitrary command execution by escaping the quoting of the arguments in a job with forged job title./
in the scheme of the URI (= backend executable name), to assure that only backends inside/usr/lib/cups/backend/
are used.:
, to split off scheme, otherwise error.snprintf()
to create call path for the backend, to error out on truncation of a too long scheme or on complete failure due to a completely odd scheme.strncat()
instead ofstrncpy()
for getting scheme from URI, the latter does not require setting terminating zero byte in case of truncation..
or..
as scheme, as directories are not valid CUPS backends.fprintf()
insigterm_handler()
, to not interfere with afprintf()
which could be running in the main process whensigterm_handler()
is triggered.static volatile int
for global variable job_canceled.parallel
backend: Added missing#include
linesThis discussion was created from the release cups-filters 2.0rc2.
Beta Was this translation helpful? Give feedback.
All reactions