#1153978 suricata: 8.0.8 backport conflicts with Rspamd

Package:
suricata
Source:
suricata
Description:
Next Generation Intrusion Detection and Prevention Tool
Submitter:
Aaron Schaal
Date:
2026-11-17 12:35:03 UTC
Severity:
normal
Tags:
#1153978#5
Date:
2026-11-14 14:25:42 UTC
From:
To:
Dear Maintainer,

On Debian 13 (Trixie, amd64), upgrading Suricata from 8.0.7 to 8.0.8 from official trixie-backports causes APT to propose removing Rspamd, an essential component of my production mail infrastructure.

**This is a significant security and package integration problem. I would particularly appreciate coordination between the Debian maintainers and Rspamd upstream to find a mutually compatible solution, regardless of which package ultimately needs to change.**

### 1. Affected packages

- Debian 13 (Trixie), amd64
- Suricata installed: `1:8.0.7-1~bpo13+1`
- Suricata upgrade: `1:8.0.8-1~bpo13+1` from official Debian trixie-backports
- Rspamd: `4.3.0-1~~25c9ecc~~trixie` from the official Rspamd repository
- `libhyperscan5`: `5.4.2-3`
- `libvectorscan5`: `5.4.11-2+b1`

The conflict was originally observed with Rspamd 4.2.3 and remains present with Rspamd 4.3.0.

Importantly, Debian's own Rspamd 3.12.1-1 package also depends on `libhyperscan5 (>= 5.4.2)` on amd64. Therefore, this is not merely an incompatibility caused by using an external Rspamd repository.

### 2. Technical cause

Suricata 8.0.8 was rebuilt against Vectorscan on amd64.

Suricata now depends on:

`libvectorscan5 (>= 5.4.11)`

Rspamd depends on:

`libhyperscan5 (>= 5.4.2)`

However, Debian's `libvectorscan5` declares:

- `Provides: libhyperscan5`
- `Conflicts: libhyperscan5`
- `Replaces: libhyperscan5`

The unversioned `Provides` does not satisfy Rspamd's versioned dependency. The two libraries also cannot coexist as currently packaged.

Consequently, APT proposes removing Rspamd when upgrading Suricata. Requesting both packages results in an unsatisfiable dependency conflict.

### 3. Reproduction

On Debian 13 amd64 with Rspamd installed:

```sh
apt-cache policy suricata rspamd
apt-get -s -t trixie-backports install suricata
apt-get -s -t trixie-backports install suricata rspamd
dpkg-query -W -f='${Depends}\n' rspamd
apt-cache show libvectorscan5 | grep -E '^(Version|Provides|Conflicts|Breaks|Replaces):'
```

The first APT simulation proposes removing Rspamd and libhyperscan5. The second fails because the requirements cannot be satisfied simultaneously.

### 4. Security impact

Suricata is an important component of my server's network security infrastructure.

Suricata 8.0.8 is explicitly a security release. According to the Open Information Security Foundation, it fixes **32 vulnerabilities, including six classified as high severity**.

Being unable to install these security fixes without removing the production mail filtering service is a significant problem.

Rspamd is also essential to my server. Removing it or permanently moving it to a different deployment model solely to work around this dependency conflict would introduce additional operational complexity.

I have therefore kept Suricata at 8.0.7, but this is not a satisfactory long-term solution.

### 5. Rspamd upstream's position

I reported the problem to Rspamd upstream:

[https://github.com/rspamd/rspamd/issues/6370](https://github.com/rspamd/rspamd/issues/6370)

The issue was closed as "not planned".

In a subsequent comment, Rspamd's lead developer, Vsevolod Stakhov, stated that Hyperscan and Vectorscan are not binary-compatible and expressed concerns about Vectorscan's development quality. He therefore does not want to replace Hyperscan with Vectorscan by default.

His response is available here:

[https://github.com/rspamd/rspamd/issues/6370#issuecomment-6878439420](https://github.com/rspamd/rspamd/issues/6370#issuecomment-6878439420)

This position should be considered before attempting to resolve the issue simply by changing dependency metadata.

Notably, Debian's Vectorscan package describes the library as an intended API/ABI-compatible replacement for Hyperscan. The apparent disagreement about compatibility merits technical clarification between the relevant maintainers.

### 6. Request for coordinated resolution

**I would appreciate it if the Debian Suricata, Rspamd, and, where appropriate, Vectorscan maintainers could coordinate with Rspamd upstream to identify a technically sound solution.**

I do not have a preference about which project should implement the necessary changes.

Potential approaches worth investigating include:

- Building Suricata against Hyperscan on amd64 again, while retaining Vectorscan where needed on other architectures.
- Supporting a Vectorscan-based Rspamd build, provided compatibility and upstream support can be established.
- Finding another packaging or dependency solution that allows both applications to coexist safely.
- Agreeing with Rspamd upstream on a longer-term approach that avoids recurring conflicts.

These are possibilities for investigation, not requests for any particular implementation.

In particular, I am **not** suggesting that Vectorscan should simply be declared a versioned replacement for Hyperscan without verifying binary and runtime compatibility.

The desired outcome is straightforward:

**Both Suricata and Rspamd should remain installable and independently updatable through APT on Debian 13 amd64, without removing either service.**

Because this currently blocks a Suricata security update, I would appreciate coordination between the relevant Debian maintainers and Rspamd upstream rather than treating the issue as an isolated problem belonging exclusively to one project.

### References

Suricata 8.0.8 security release:

[https://suricata.io/2026/10/29/suricata-8-0-8-released/](https://suricata.io/2026/10/29/suricata-8-0-8-released/)

Debian Suricata 8.0.8 backport:

[https://tracker.debian.org/news/1818626/accepted-suricata-1808-1bpo131-source-into-stable-backports/](https://tracker.debian.org/news/1818626/accepted-suricata-1808-1bpo131-source-into-stable-backports/)

Debian's Rspamd dependencies:

[https://packages.debian.org/trixie/amd64/rspamd](https://packages.debian.org/trixie/amd64/rspamd)

Debian's Vectorscan packaging:

[https://sources.debian.org/src/vectorscan/5.4.11-2/debian/control](https://sources.debian.org/src/vectorscan/5.4.11-2/debian/control)

Rspamd upstream discussion:

[https://github.com/rspamd/rspamd/issues/6370](https://github.com/rspamd/rspamd/issues/6370)

Thank you for looking into this issue.

#1153978#10
Date:
2026-11-16 18:47:20 UTC
From:
To:
Hi Aaron,

thanks for the detailed report. Your analysis matches the package
metadata, but 8.0.7 is not affected, so I am correcting the version
information.

Background: with 1:8.0.8-1 we deliberately switched amd64, arm64,
ppc64el and x32 from Hyperscan to Vectorscan [1], which is the actively
maintained open-source continuation and the one supported by Suricata
upstream. [2]

We do not plan to revert this in unstable.

The conflict is not specific to suricata. It just arises in combination
together with rspamd. libhyperscan5's shlibs file generates
"libhyperscan5 (>= 5.4.2)" in the resulting package, while
libvectorscan5 only carries an unversioned "Provides: libhyperscan5",
which cannot satisfy a versioned dependency (Debian Policy 7.5 [3]).

Both packages ship libhs.so.5, so they cannot be co-installed. Any
package built against Vectorscan is therefore not co-installable with
any package built against Hyperscan, including Debian's own rspamd on
amd64 (on arm64 it already depends on libvectorscan5). I am cloning this
bug to libvectorscan5.

Konstantinos: is the unversioned Provides intentional? Something like

   Provides: libhyperscan5 (= ${binary:Version})

would resolve the issue here, because it would fulfill the versioned
Suricata dependency.

Since a versioned Provides would allow rspamd and other reverse
dependencies of libhyperscan5 to run on Vectorscan on amd64, I am CCing
the rspamd and hyperscan maintainers for their view.

Because the upstream rspamd maintainers do not plan to switch to
Vectorscan as stated in [4], I think we should solve this within Debian.

Short term, for trixie-backports: I plan to upload a backport that is
built against Hyperscan again on amd64 and x32, so that the security
fixes can be installed alongside rspamd. For trixie-backports we can
stick on Hyperscan, but please expect this to be changed to Vectorscan
with the upcoming Forky release. I will follow up here.

Regards,
Andreas

[1]
https://salsa.debian.org/pkg-suricata-team/pkg-suricata/-/commit/4ef9c6ad4bc5daa7407d91532f19795ab5ecef45

[2]
https://suricata.io/2026/09/29/why-vectorscan-matters-to-suricata-and-why-were-supporting-it/

[3]
https://www.debian.org/doc/debian-policy/ch-relationships.html#virtual-packages-provides

[4] https://github.com/rspamd/rspamd/issues/6370#issuecomment-6878439420

#1153978#19
Date:
2026-11-16 18:47:20 UTC
From:
To:
Hi Aaron,

thanks for the detailed report. Your analysis matches the package
metadata, but 8.0.7 is not affected, so I am correcting the version
information.

Background: with 1:8.0.8-1 we deliberately switched amd64, arm64,
ppc64el and x32 from Hyperscan to Vectorscan [1], which is the actively
maintained open-source continuation and the one supported by Suricata
upstream. [2]

We do not plan to revert this in unstable.

The conflict is not specific to suricata. It just arises in combination
together with rspamd. libhyperscan5's shlibs file generates
"libhyperscan5 (>= 5.4.2)" in the resulting package, while
libvectorscan5 only carries an unversioned "Provides: libhyperscan5",
which cannot satisfy a versioned dependency (Debian Policy 7.5 [3]).

Both packages ship libhs.so.5, so they cannot be co-installed. Any
package built against Vectorscan is therefore not co-installable with
any package built against Hyperscan, including Debian's own rspamd on
amd64 (on arm64 it already depends on libvectorscan5). I am cloning this
bug to libvectorscan5.

Konstantinos: is the unversioned Provides intentional? Something like

   Provides: libhyperscan5 (= ${binary:Version})

would resolve the issue here, because it would fulfill the versioned
Suricata dependency.

Since a versioned Provides would allow rspamd and other reverse
dependencies of libhyperscan5 to run on Vectorscan on amd64, I am CCing
the rspamd and hyperscan maintainers for their view.

Because the upstream rspamd maintainers do not plan to switch to
Vectorscan as stated in [4], I think we should solve this within Debian.

Short term, for trixie-backports: I plan to upload a backport that is
built against Hyperscan again on amd64 and x32, so that the security
fixes can be installed alongside rspamd. For trixie-backports we can
stick on Hyperscan, but please expect this to be changed to Vectorscan
with the upcoming Forky release. I will follow up here.

Regards,
Andreas

[1]
https://salsa.debian.org/pkg-suricata-team/pkg-suricata/-/commit/4ef9c6ad4bc5daa7407d91532f19795ab5ecef45

[2]
https://suricata.io/2026/09/29/why-vectorscan-matters-to-suricata-and-why-were-supporting-it/

[3]
https://www.debian.org/doc/debian-policy/ch-relationships.html#virtual-packages-provides

[4] https://github.com/rspamd/rspamd/issues/6370#issuecomment-6878439420

#1153978#26
Date:
2026-11-16 19:40:44 UTC
From:
To:
Hi Konstantinos,

thanks for your quick reply and agreeing to my suggestion.
I also agree with you about Vectorscan; this was the reason I switched
suricata to that.

I'm looking very forward to your talk on Suricon2026; I will attend
virtually.

To make tracking easier, please reference all the Debian bug IDs in the
changelog when uploading the fixed libvectorscan package.

Thanks and good luck for your talk!

Regards,
Andreas

#1153978#29
Date:
2026-11-16 19:40:44 UTC
From:
To:
Hi Konstantinos,

thanks for your quick reply and agreeing to my suggestion.
I also agree with you about Vectorscan; this was the reason I switched
suricata to that.

I'm looking very forward to your talk on Suricon2026; I will attend
virtually.

To make tracking easier, please reference all the Debian bug IDs in the
changelog when uploading the fixed libvectorscan package.

Thanks and good luck for your talk!

Regards,
Andreas

#1153978#36
Date:
2026-11-17 10:48:38 UTC
From:
To:
As announced, the recently uploaded 1:8.0.8-1~bpo13+2 for
trixie-backports is now switched back to libhyperscan on amd64 and x32.
It is now co-installable again with rspamd/3.12.1-1 from trixie, which
fixes the bug for trixie-backports.

The long-term fix is under way by Konstantinos setting a versioned
'Provides', which should take effect on testing/forky as well as
unstable, so no change from the Suricata package side is needed anymore
for that.

Further tracking about that is done in https://bugs.debian.org/1154186,
which is why I will close this bug now.

Regards,
Andreas

#1153978#45
Date:
2026-11-17 10:48:38 UTC
From:
To:
As announced, the recently uploaded 1:8.0.8-1~bpo13+2 for
trixie-backports is now switched back to libhyperscan on amd64 and x32.
It is now co-installable again with rspamd/3.12.1-1 from trixie, which
fixes the bug for trixie-backports.

The long-term fix is under way by Konstantinos setting a versioned
'Provides', which should take effect on testing/forky as well as
unstable, so no change from the Suricata package side is needed anymore
for that.

Further tracking about that is done in https://bugs.debian.org/1154186,
which is why I will close this bug now.

Regards,
Andreas

#1153978#52
Date:
2026-11-17 12:32:26 UTC
From:
To: