request-tracker5 (5.0.7+dfsg-4+deb13u4) trixie-security; urgency=high

  * Apply upstream patch which fixes several security vulnerabilities:
    - [CVE-2026-108351] Remote code execution via an ExecuteCode right bypass
      in template administration. A user granted ModifyTemplate but not
      ShowTemplate (ShowGlobalTemplates for global templates) can alter the
      body of an existing Perl template without holding ExecuteCode. RT's
      standard scrips then run that code during ordinary ticket activity as the
      operating-system user the web server runs as. The bypass also defeats
      $DisallowExecuteCode.
    - [CVE-2026-108353] Privilege escalation via the REST group and group
      membership endpoints. A user with SeeGroup and AdminGroup on a single
      user-defined group can convert it, through REST 2.0, into a role group of
      another object (for example, the AdminCc role of an arbitrary queue) and
      inherit that role's rights. Separately, a user holding only
      ModifyOwnMembership can use the REST interfaces to add themselves to
      queue or ticket role groups, or to RT's internal Privileged group.
    - [CVE-2026-108279] Privilege escalation via a Cross-Site Request Forgery
      (CSRF) protection bypass in the URL shortener. RT decided whether a
      request needed CSRF confirmation before it expanded a short link, so the
      arguments the link carried were never checked. Any authenticated user
      with global ShowTicket can create a short link that, when followed by an
      administrator holding ModifyACL or SuperUser, silently performs a rights
      change such as granting the attacker SuperUser.
    - [CVE-2026-108275] Cross-queue ticket modification and disclosure via
      CreateTickets scrip action templates. A user holding the queue-level
      ModifyTemplate and ModifyScrips rights on one queue can write a plain
      (non-Perl) template that creates or updates tickets in other queues,
      which RT carries out as the system user. This allows modifying tickets in
      queues the user has no rights on, and reading them by moving them into a
      queue the user can see.
    - [CVE-2026-108270] Authorization bypass and information disclosure in
      ticket forwarding. A user holding ForwardMessage on any single ticket can
      cause RT to email the content and attachments of any transaction in the
      instance to an address of their choosing, including correspondence on
      tickets they cannot see. Separately, a user with ForwardMessage but not
      ShowTicket on a ticket can forward that ticket's correspondence to
      themselves.
    - [CVE-2026-108274] Insecure direct object reference in custom field
      values. A custom field value can be addressed by its id without checking
      that it belongs to an object the user may access. A user who can see a
      custom field can download that field's values from tickets they cannot
      see, through the web interface or REST 2.0, and a user who can modify a
      custom field can create, overwrite or delete its values on any object in
      the instance. At least one write path is reachable from a self-service
      preferences page.
    - [CVE-2026-108278] Information disclosure via RSS feed URLs. The
      authentication string in an RSS feed URL is not bound to the search the
      URL was issued for, so anyone who obtains a feed URL can substitute their
      own search and have it run with the feed owner's rights. This can expose
      the subject and first message of every ticket the feed owner can read.
      iCal feeds are not affected.
    - [CVE-2026-108271] Incorrect authorization of the destination in several
      operations. RT checked the user's rights on the record being changed but
      not on the place it was being moved to, in dashboard editing, the search
      builder's saved-search panel, article editing (web interface and REST
      2.0), the REST 2.0 custom field value endpoint, and REST 2.0 ticket
      creation. An authenticated user can publish a dashboard or saved search
      system-wide or to a group they cannot publish to, move an article into a
      class they cannot create articles in, or attach history to a ticket they
      have no rights on. The REST 2.0 custom field value endpoint also
      disclosed custom field value definitions by id.
    - [CVE-2026-108273] Ticket recipient disclosure on the ticket People and
      Update pages. A user granted ReplyToTicket but not ShowTicket on a ticket
      can read the ticket's requestor, owner, Cc and AdminCc email addresses,
      and the member of a single-value custom role.
    - [CVE-2026-108276] Information disclosure via the REST 1.0 group endpoint.
      Any privileged (staff) user can retrieve a group's name, description,
      membership (including members' names and email addresses) and custom
      field values without SeeGroup. Because any group id is accepted, this
      also exposes the watchers of queues, tickets and assets the user cannot 
      see.
    - [CVE-2026-108280] Missing object-level authorization on queue, catalog,
      custom field and article class administration pages. A user with
      ShowConfigTab can read and change default values for any queue, asset
      catalog and custom field, and the settings of any article class, without
      AdminQueue, AdminCatalog, AdminCustomField or AdminClass on that object.
    - [CVE-2026-108281] Missing authorization on scrip and custom field
      ordering.  A user with ShowConfigTab can reorder scrips, change the
      processing stage of global scrips, and reorder global custom fields
      without ModifyScrips or AssignCustomFields. Reordering or restaging
      scrips can change the outcome of RT's automated actions.
    - [CVE-2026-108352] Missing authorization in the custom field and custom
      role editing pages. A user with only ShowConfigTab can change the object
      type a custom field or custom role applies to. RT removes the field's or
      role's existing applications before it denies the request, so the field
      or role disappears from the objects it was used on.
    - [CVE-2026-108347] Information disclosure via ticket relationship graphs.
      A user viewing a ticket's relationship graph sees the owner and custom
      field values of every linked ticket, even tickets they cannot see. A user
      with ModifyTicket on any ticket can link it to an arbitrary ticket to
      read that information. Ticket subjects are not exposed.
    - [CVE-2026-108346] Disclosure of hidden ticket time fields. On systems
      that enable $HideTimeFieldsFromUnprivilegedUsers (off by default),
      unprivileged users can still read time worked, estimated and left, and
      per-transaction time details, on tickets they can see, through the Self
      Service export and REST 2.0, and can infer them through search.
    - [CVE-2026-108282] Insecure direct object reference in saved search
      handling.  The search builder, saved chart search page, article search
      page and the saved-search dashboard portlet accept a saved-setting id
      without confirming it belongs to the owner named in the request. An
      authenticated user can read another user's private saved searches, take
      over another user's private dashboard, change another user's dashboard
      subscription, and delete a queue's stored encryption setting, which turns
      off outgoing encryption for that queue.
    - [CVE-2026-108371] CSRF on the search chart page. The saved-search
      controls on the chart page were not covered by RT's CSRF protection, so a
      malicious web page can create, overwrite or delete a logged-in user's
      saved chart searches, including those shared with groups or the whole
      system.
    - [CVE-2026-108365] CSRF in the Rights Inspector. The Rights Inspector's
      revoke action was not covered by RT's CSRF protection, so a malicious web
      page can make a logged-in user holding ModifyACL revoke a rights grant.
    - [CVE-2026-108277] CSRF via cookie-authenticated REST 2.0 requests.
      State-changing REST 2.0 requests authenticated with the web session
      cookie are not covered by RT's CSRF protection. With RT's default
      SameSite=Lax cookie policy, exploitation requires content served from a
      same-site origin, such as a sibling subdomain or another port on the RT
      host. REST 2.0 clients that authenticate with an Authorization header are
      not affected.
    - [CVE-2026-108344] Login CSRF on the password login form. On systems that
      enable $RestrictLoginReferrer (off by default), the referrer check runs
      after the session is created, so an attacker with any valid account can
      log a user's browser into the attacker's account. Work the user then
      submits is recorded in, and readable from, that account.
    - [CVE-2026-108342] Multiple stored and reflected XSS vulnerabilities
      from insufficient HTML escaping. Affected areas include the meeting
      invitation display in ticket history, HTML ticket content, group and user
      display names, administrator-managed object names, Wikitext custom field
      values, table-style chart labels, ticket relationship graphs, the article
      chooser, dashboard subscription and dashboard component pages,
      saved-search and search result format handling, transaction and history
      views, and file downloads with attacker-controlled content types. Some of
      these require no RT account: on a queue that accepts mail from the
      public, an outside sender can store a payload that runs when staff view
      the ticket.
    - [CVE-2026-105454] Stored XSS via crafted URLs in HTML ticket content.
      RT's automatic link creation for URLs in HTML ticket content does not
      escape the URL, so a crafted URL can add script that runs when the ticket
      history is displayed, with no click needed. An outside sender of HTML
      email to a public queue can plant it.
    - [CVE-2026-108363] Reflected XSS in the advanced lifecycle editor. Request
      content is written back into the editor without escaping. Exploitation
      requires an administrator with ShowConfigTab and SuperUser to follow a
      crafted link and click through RT's CSRF confirmation page.
    - [CVE-2026-108343] Stored XSS via custom field link URLs. Custom fields
      configured to render their own value as a link (IncludeContentForValue or
      LinkValueTo pointing at the field's value) do not reliably reject
      executable URL schemes. RT ships no custom fields configured this way.
    - [CVE-2026-108272] Forged cryptographic signature status in incoming GnuPG
      and S/MIME mail. On systems that decrypt or verify incoming mail, any
      sender can craft an encrypted message that makes RT record and display a
      signature status of their choosing, including a forged "signed by"
      identity. This affects only the status shown in ticket history, not RT's
      access control or outgoing encryption decisions.
    - [CVE-2026-108350] Signature trust check bypass in incoming S/MIME mail.
      On systems that process incoming S/MIME mail (not enabled by default), RT
      skips its certificate trust check for certain signing certificates and
      reports the message as validly signed. It also accepts the message when
      RT is configured to reject mail that fails verification.
    - [CVE-2026-108349] Unauthenticated denial of service via unbounded CSS
      cache growth. RT's combined stylesheet handler can be reached without
      logging in, and it caches each requested variant without limit. Anyone
      who can send requests to the RT web server can grow every web process's
      memory until the system runs out.
    - [CVE-2026-108348] Security tokens and password salts generated with a
      non-cryptographic random number generator. REST 2.0 authentication
      tokens, RSS and iCal feed tokens, CSRF tokens and password salts were
      generated with Perl's rand(). An authenticated user could attempt to
      predict another user's tokens, though at substantial cost and under
      conditions the attacker does not control.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Tue, 24 Nov 2026 23:26:02 +1300

request-tracker5 (5.0.7+dfsg-4+deb13u3) trixie-security; urgency=high

  * Include missing default configuration items for security vulnerability
    fixes included in 5.0.7+dfsg-3. Namely: RestrictLinkDomains and Cipher
    in %SMIME.
  * Apply upstream patch which fixes several security vulnerabilities:
    - [CVE-2026-6841] Reflected cross-site scripting via the search "Page" URL
      parameter.
    - [CVE-2026-41073] Spreadsheet (CSV/formula) injection via ticket values
      that are exported to a spreadsheet from search results.  User-controlled
      data is not sanitized before being written to the output file, which can
      cause spreadsheet applications such as Microsoft Excel to interpret
      crafted values as formulas or macros when the file is opened.
    - [CVE-2026-41075] SQL injection via the entry_aggregator parameter in JSON
      search. An authenticated user can craft input that is incorporated into
      database queries without proper validation, potentially allowing them to
      read or modify data in the RT database.
    - [CVE-2026-41076] LDAP authentication bypass when RT is configured to
      authenticate users against an LDAP or Active Directory server. Under
      certain LDAP server configurations, an attacker may be able to
      authenticate as any LDAP-backed RT user without supplying valid
      credentials.
    - [CVE-2026-44229] Cross-site scripting via uploaded content that is served
      inline rather than as an attachment.
    - [CVE-2026-44230] Reflected cross-site scripting on search-results chart
      pages.
    - [CVE-2026-44231] Privilege escalation and information disclosure via the
      REST 2.0 user collection endpoint. A Privileged RT user can obtain
      authentication credentials belonging to other users, including
      administrators, and use those credentials to read data via RT's RSS and
      iCal feed endpoints. The same request that exposes the credentials also
      rotates them, which invalidates previously-distributed feed URLs across
      the instance.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Mon, 01 Jun 2026 13:10:39 +1200

request-tracker5 (5.0.7+dfsg-4+deb13u2) trixie; urgency=medium

  * Set a version for ckeditor when we build it to allow Firefox v148 to
    correctly detect that it needs a work around, see:
    https://bugzilla.mozilla.org/show_bug.cgi?id=2002481
    (Closes: #1129090)

 -- Andrew Ruthven <andrew@etc.gen.nz>  Mon, 02 Mar 2026 22:17:44 +1300

request-tracker5 (5.0.7+dfsg-4+deb13u1) trixie-security; urgency=medium

  * Apply upstream patch which fixes several security vulnerabilities:
    - [CVE-2025-61873] Fix CSV injection via ticket values with special
      characters that are exported to a TSV from search results.
    - [CVE-2025-9158] Fix XSS via calendar invitations added to a ticket.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Wed, 08 Oct 2025 21:16:58 +1300

request-tracker5 (5.0.7+dfsg-4) unstable; urgency=high

  * Update d/watch to only look for versions that match 5.x.y as version 6 will
    be handled by request-tracker6.
  * Debianize the UPGRADING-4.4 and UPGRADING-5.0 instructions to use paths
    etc that are used on Debian. 

 -- Andrew Ruthven <andrew@etc.gen.nz>  Wed, 21 May 2025 20:43:14 +1200

request-tracker5 (5.0.7+dfsg-3) unstable; urgency=high

  * Update Standards-Version to 4.7.2 (no changes).
  * Refresh d/copyright.
  * Add Catalan translation, thank you Carles Pina i Estany!
  * Apply upstream patches which fix several security vulnerabilities
    (Closes: #1104422).
    - [CVE-2025-30087] Vulnerable to Cross Site Scripting via injection of
      malicious parameters in a search URL.
    - [CVE-2025-2545] RT uses the default OpenSSL cipher, 3DES (des3), for
      encrypting SMIME email. This is an outdated cipher algorithm, so the
      default is changed to aes-128-cbc. In addition, this is now configurable
      so you can pick an alternate cipher now or in the future, or revert to
      des3 if needed for compatibility.
    - [CVE-2025-31501] Vulnerable to Cross Site Scripting via JavaScript
      injection in an Asset name.
    - [CVE-2025-31500] Vulnerable to Cross Site Scripting via JavaScript
      injection in an RT permalink. 

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 04 May 2025 17:51:52 +1200

request-tracker5 (5.0.7+dfsg-2) unstable; urgency=medium

  * Create RT-Shredder SQL log directory.
  * Enable verbose logging for autopkgtests to ease CI debugging.
  * Add patch so free port detection for test suite matches how PSGI binds
    (this may fix 1074781).
  * Flag tests as flaky until we know if they work reliably (this will stop
    1074781 from annoying others).

 -- Andrew Ruthven <andrew@etc.gen.nz>  Fri, 27 Sep 2024 23:37:30 +1200

request-tracker5 (5.0.7+dfsg-1) unstable; urgency=medium

  * New upstream release (Closes: #1068453).
    - [CVE-2024-3262] Information exposure vulnerability due to browser
      cache usage. If you have sensitive information enable the
      $WebStrictBrowserCache option.
  * Refresh d/copyright.
  * Drop patch no longer needed:
    - remove_exclude_Test::WWW::Mechanize.diff
  * Update Standards-Version to 4.7.0 (no changes).
  * Drop dependency on rsyslog | system-log-daemon (Closes: 1072030).
  * Cherry pick upstream commit (Closes: #1078046).

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 11 Aug 2024 18:20:58 +1200

request-tracker5 (5.0.5+dfsg-2) unstable; urgency=medium

  * Correct CVE numbers for CVE-2023-41259 and CVE-2023-41260 in previous
    entry (Closes: #1055128).
  * Remove alternative for rt-clean-attributes in prerm (Closes: #1057684).
  * Remove alternative for rt-serializer in prerm.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 10 Dec 2023 01:49:01 +1300

request-tracker5 (5.0.5+dfsg-1) unstable; urgency=high

  * New upstream release (Closes: #1054517).
    - [CVE-2023-41259] Vulnerablility to unvalidated email headers in
      incoming email and the mail-gateway REST interface.
    - [CVE-2023-41260] Information leakage via response messages returned
      from requests sent via the mail-gateway REST interface.
    - [CVE-2023-45024] Information leakage via transaction searches made by
      authenticated users in the transaction query builder.
    - Reveal information about data on various RT objects in errors and other
      response messages to REST 2 requests.
  * Drop patches no longer needed:
    - Update-expired-certificates.diff
    - Update-legacy-timezones.diff
    - install_rt-clean-shorteners.diff
  * Drop patches merged upstream:
    - fcgi_client_sigpipe.diff
    - fix_pod_rt_munge_attachments.diff
  * Add autopkgtests.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 29 Oct 2023 13:42:33 +1300

request-tracker5 (5.0.4+dfsg-2) unstable; urgency=medium

  * Add patches from upstream:
    - debian/patches/Update-expired-certificates.diff
    - debian/patches/Update-legacy-timezones.diff
  * Drop Build-Depend on tzdata-legacy as Update-legacy-timezones.diff patch
    negates the need for it.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Mon, 04 Sep 2023 23:56:23 +1200

request-tracker5 (5.0.4+dfsg-1) unstable; urgency=medium

  [ Andrew Ruthven ]
  * New upstream release.
  * Drop patch no longer needed:
    - Update-tests-for-EN-datetime-locale-change-to-space.diff
  * Drop patch merged upstream:
    - libdatetime-format-natural-perl-v0.14.diff
  * Refresh d/copyright
  * Bump debhelper from old 10 to 13.
  * Recommend libcss-inliner-perl and enable $EmailDashboardInlineCSS if
    it is installed.
  * Ensure we can build source after successful build.
  * Add disable_dirmngr_in_tests.diff which should make this package able
    to pass the reproducible build tests.
  * Depend on fonts-noto-core instead of the obsolete fonts-noto-hinted
    (Closes: #1050048)
  * Build-Depend on tzdata-legacy as a number of the tests use timezone names
    that have been moved from tzdata to tzdata-legacy.

  [ Ángel Gonzále ]
  * Fetch timezone from /etc/localtime symlink (Closes: #1038847)

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sat, 19 Aug 2023 14:31:11 +1200

request-tracker5 (5.0.3+dfsg-3) unstable; urgency=medium

  * Strip Debian version suffix from generated hyperlinks to upstream docs
    (Closes: #1033304).
  * Fix the changelog date entry for the 5.0.3+dfsg-2 release.

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 11 Jun 2023 14:19:13 +1200

request-tracker5 (5.0.3+dfsg-2) unstable; urgency=medium

  * Add more fields to d/upstream/metadata 
  * Update the ckeditor licenses in d/copyright.
  * Use java instead of jexec to build ckeditor (Closes: #1026669).
  * Update Standards-Version to 4.6.2 (no changes)
  * Set rt5-doc-html to be Multi-Arch: foreign as suggested by the Multiarch
    hinter.
  * Add Update-tests-for-EN-datetime-locale-change-to-space.diff from upstream
    which handles libdatetime-perl >= 2:1.59-1.
  * Add libdatetime-format-natural-perl-v0.14.diff which handles
    libdatetime-format-natural-perl >= 0.14.
  * Remove dependency on lsb-base as it is an obsolete package.
  * Refresh d/copyright

 -- Andrew Ruthven <andrew@etc.gen.nz>  Sat, 04 Feb 2023 12:30:17 +1300

request-tracker5 (5.0.3+dfsg-1.1) unstable; urgency=medium

  * Non-maintainer upload.
  * No source change upload to rebuild with debhelper 13.10.

 -- Michael Biebl <biebl@debian.org>  Sat, 15 Oct 2022 12:42:57 +0200

request-tracker5 (5.0.3+dfsg-1) unstable; urgency=medium

  * New upstream release (Closes: #988905).
  * Drop patches merged upstream:
    - use_webpath_for_relateddata_links.diff
    - rt-crypt-gnupg-combine-call.diff
  * Ensure package descriptions consistently refer to version 5
    (Closes: #984676).
  * Ensure a sane database admin user is specified for both PostgreSQL
    and MySQL.
  * Only create symlinks for the DB upgrade scripts we ship (Closes: #985704).
  * Fixes a security vulnerability that involves a login timing side-channel
    attack. This resolves CVE-2021-38562 (Closes: #995167)
  * Update fix_test_ldap_ipv4.diff for new test
      t/externalauth/ldap_email_login.t
  * Add missing dependencies on dbconfig-{mysql,postgresql,sqlite3}.
  * Refresh debian/copyright
  * Fix multiple security issues:
    - [CVE-2022-25803] RT 5.0 is vulnerable to unvalidated, or open,
      redirects in ticket searches.
    - [CVE-2022-25802] A cross-site scripting (XSS) issue when displaying
      attachment content with fraudulent content types. This vulnerability
      is assigned
    - Not performing full rights checks on access to file or image type
      custom fields, possibly allowing access to these custom fields by
      users without rights to access to the associated objects (like the
      ticket it is associated with).
  * RT is incompatible with Test::WWW::Mechanize 1.58, exclude that version.
  * Update upstream signing key.
  * Update Standards-Version to 4.6.1 (no changes)

 -- Andrew Ruthven <andrew@etc.gen.nz>  Thu, 21 Jul 2022 17:06:28 +1200

request-tracker5 (5.0.1+dfsg-1) unstable; urgency=medium

  [ Dominic Hargreaves ]
  * Depend on perl-doc so that script usage is printed correctly
    (Closes: #666123)
  * Downgrade Depends on rsyslog | system-log-daemon to Recommends
    to support installations which prefer to use only systemd for
    logging (see #981942)
  * Remove obsolete alternative depends on dual-lived modules

  [ Andrew Ruthven ]
  * New upstream release.
  * Update debian/copyright.
  * Skip check for Mozilla::CA module to allow make testdeps to succeed.
  * Add third-party-source tarball to d/watch.
  * Add GPG signature verification of upstream tarballs.
  * Fix path to /bin/true in request-tracker5.service (Closes: #983752).
  * Resolve reportbug script issue where it'll exit with error code 255 if
    no files are present under /usr/local/share/request-tracker5 .

  [ Dominic Hargreaves ]
  * Don't ignore the exit status of make testdeps any more
  * Drop patches no_testdeps and no_test_web_installer
  * Add Build-Depends on starlet

 -- Andrew Ruthven <andrew@etc.gen.nz>  Wed, 03 Mar 2021 23:05:11 +1300

request-tracker5 (5.0.0+dfsg-1) unstable; urgency=medium

  [ Andrew Ruthven ]
  * Branch request-tracker5 packaging from request-tracker4
  * New upstream release (Closes: #981077)
  * Drop patches which are no longer required as GnuPG::Interface supports
    gpg2:
    - runtime_gpg1.diff
    - test_gnupg-interface_gpg1.diff
    - test_gpg1.diff
  * Drop patch fix_privacy_breach_generic.diff as images are now local
    not loaded from Best Practical's website.
  * Add fix_test_ldap_ipv4.diff to fix LDAP test.
  * Add use-webpath-for-relateddata-links.diff so that RelatedData links
    for the default Debian path of "rt" work.
  * Add rt-crypt-gnupg-combine-call.diff to ensure that GnuPG::Interface
    instantiates with the gpg binary to use
  * Add myself to copyright file and as an uploader.

  [ Dominic Hargreaves ]
  * Import new dfsg version of third-party sources
  * Add scripts to add additional sources to third-party directory
  * Further updates to Lintian overrides for sources supplied in
    third-party
  * Remove conflicting Recommends on libhtml-formatexternal-perl which we
    also depend on
  * Refresh debian/copyright
  * Update README.Debian to reflect the current status of migration
    support.

 -- Dominic Hargreaves <dom@earth.li>  Tue, 26 Jan 2021 01:21:36 +0000
