Skip to content

Tracking: Migrate from PCRE to PCRE2 #356387

Closed

Description

@emilazy

PCRE2 was released in 2015. The original PCRE is end‐of‐life and will not receive further bug fixes. Debian decided to remove it years ago (they called their original‐PCRE package pcre3 for historical reasons), filed mass bug reports against packages still using it, and it has been gone entirely since the release of Bookworm last year. We should follow suit, upgrading packages to PCRE2 where possible and considering dropping obsolete software that won’t get updated to a supported version, especially if it processes untrusted input.

Issues and PRs

Action items

Blocked on upstream

Resolved items

Activity

  1. added
    0.kind: bug
    1.severity: security
    3.skill: sprintable
    5.scope: tracking
    on Nov 16, 2024
  2. changed the title [-]Migrate away from PCRE[/-] [+]Migrate from PCRE to PCRE2[/+] on Nov 16, 2024
  3. moved this from To do to In progress in Picking up garbageon Nov 17, 2024
  4. SuperSandro2000 commented on Nov 28, 2024

    @SuperSandro2000
    Member

    We need to be careful with services that have systemd hardening because they can block the PCRE2 jit like eg #179444

  5. pluiedev commented on Nov 30, 2024

    @pluiedev
  6. Sigmanificient commented on Jan 5, 2025

    @Sigmanificient
    Member

    @pluiedev I tried to gather a more complete list of the packages. Here the command I have used:

    grep -Pr "(,|\s)pcre($|\s|,)" $(find . -name "*.nix") | nix run nixpkgs\#filterpath | uniq

    It reports a total of 235 path: https://gist.github.com/Sigmanificient/ddeb121b250c6d8ac79ec604a3c54640

  7. added a commit that references this issue on Apr 29, 2025
  8. 132 remaining items

  9. Scrumplex commented on Oct 11, 2026

    @Scrumplex
    Member
  10. Skyb0rg007 commented on Oct 11, 2026

    @Skyb0rg007
    Contributor

    Perhaps we could add a meta.problem to pcre? That would avoid needing to drop popular packages like Kodi while also giving warning to the other packages listed here.

  11. aanderse commented on Oct 12, 2026

    @aanderse
    Member

    they just released rc1 for kodi... 🫠

  12. fliiiix commented on Oct 12, 2026

    @fliiiix
    Contributor

    In general I think we need to do something during/right after this release. Otherwise I fear we will still be looking at this when we are releasing 27.05.

    100% agree I also think a lot is really close but I personally would feel better breaking it just after the release and give people time to fix the few remaining issues instead of forcing this into the current release.

  13. Scrumplex commented on Oct 20, 2026

    @Scrumplex
    Member

    Now that Kodi has been taken care of (and pcre-cpp is being dropped as we speak). I am a little more optimistic for getting this done before next Monday

  14. removed this from the 26.11 milestone on Oct 24, 2026
  15. moved this to Backlog in 26.11 Blockerson Oct 25, 2026
  16. mweinelt commented on Oct 25, 2026

    @mweinelt
    Member

    The pcre attribute will become a throw. Every remaining dependency will either be removed or get marked broken.

  17. moved this from Backlog to In progress in 26.11 Blockerson Oct 25, 2026
  18. moved this from In progress to Done in 26.11 Blockerson Oct 26, 2026
  19. moved this from In progress to Done in Picking up garbageon Oct 26, 2026
  20. patka-123 commented on Oct 26, 2026

    @patka-123
    Contributor

    Great work everyone, and thanks @mweinelt for getting it over the finish line! Much appreciated :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug1.severity: security3.skill: good-first-bug3.skill: sprintable5.scope: tracking6.topic: old-versions9.needs: clean-up

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions